Article View: borland.public.jbuilder.java.api
Article #359Re: getClassLoader does'nt find the file
From: Lori M Olson (TeamB)
Date: Thu, 09 Oct 2003 04:51
Date: Thu, 09 Oct 2003 04:51
35 lines
2071 bytes
2071 bytes
Guy Perron wrote:
> With JBuilder7,
> I try do
> URL url = getClass().getClassLoader().getResource("a file that is in the
> same directory as the.jpx file");
> and I always get a null pointer for url. The same code is working with
> Eclipse, and BlueJ but it does'nt work in Jbuilder.
> Anybody as an idea why and what am I missing with JBuilder.
> THanks ,
>
> Guy Perron.
>
>
Because the file needs to be in the same directory as the jbuilder
executable for that kind of call to work.
--
Regards,
Lori Olson (TeamB)
------------
Save yourself, and everyone else, some time and search the
newsgroups and the FAQ-O-Matic before posting your next
question.
Google Advanced Newsgroup Search
http://www.google.ca/advanced_group_search
Other Newsgroup Searches:
http://www.borland.com/newsgroups/ngsearch.html
Joi Ellis's FAQ-O-Matic:
http://www.visi.com/~gyles19/fom-serve/cache/1.html
Technical Details
Message-ID:
<3f84e93a$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-08!supernews.com!pln-e!extra.newsguy.com!lotsanews.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<3f848d66@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1089d0,dbe4c80eee321a10 X-Google-Attributes: gid1089d0,public X-Google-ArrivalTime: 2003-10-08 22:14:21 PST Date: Wed, 08 Oct 2003 22:51:08 -0600 From: "Lori M Olson (TeamB)" <javadragon@techie.com> User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 X-Accept-Language: en-ca, en-us, en MIME-Version: 1.0 Newsgroups: borland.public.jbuilder.java.api Subject: Re: getClassLoader does'nt find the file References: <3f848d66@newsgroups.borland.com> In-Reply-To: <3f848d66@newsgroups.borland.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 142.179.181.200 Message-ID: <3f84e93a$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1065675066 142.179.181.200 (8 Oct 2003 21:51:06 -0700) Lines: 36 Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-08!supernews.com!pln-e!extra.newsguy.com!lotsanews.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail