🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.api
Article #379

getClassLoader() again

#379
From: Guy Perron
Date: Tue, 21 Oct 2003 18:21
15 lines
1516 bytes
With JBuilder7,
I try to do
URL url = getClass().getClassLoader().getResource("a file that is in the
same directory as the.jpx file");
I also tried to put the file in the bin directory of JBuilder, in the root
of the classPath
It always return a null pointer for url.
What is amasing is that the same code is working with
Eclipse, and BlueJ but it does'nt work in Jbuilder.
Anybody as an idea what to do with JBuilder to automatically find where the
user have put his personnal Read-Write data file just by knowing the name of
that file, without asking user?.
Thanks ,

Guy Perron.
Technical Details
Message-ID: <3f95791f@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1089d0,d379ca67d2f73828,start
X-Google-Attributes: gid1089d0,public
X-Google-ArrivalTime: 2003-10-21 11:44:24 PST
From: "Guy Perron" <guyperron1@netscape.net>
Newsgroups: borland.public.jbuilder.java.api
Subject: getClassLoader() again
Date: Tue, 21 Oct 2003 14:21:18 -0400
Lines: 17
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 24.202.119.126
Message-ID: <3f95791f@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1066760479 24.202.119.126 (21 Oct 2003 11:21:19 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail