🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

loading a resource bundle

#1332
From: Fernando Racca
Date: Sun, 10 Mar 2002 19:47
28 lines
1725 bytes
its quite a simple problem.. but i cant find the problem...

i�m trying to load a property file with the resource bundle...
but my property file is not in the package where the class is...
its in another completly different package...

os i don�t know what name to use for ladoing it...

im trying this at the moment and is not working

----------------------------------------------------------

resourceBundle = ResourceBundle.getBundle(
                             LANGUAGES_DIR +
                             resBundleName, new Locale("ES"),
                            ClassLoader.getSystemClassLoader());
----------------------------------------------------------

i suppose that the code is self-explanatory...

should I use a Class.gerResourceAsStream instead?

i don�t understand.. please.. if some1 can help me i�ll greatly
appreciate it

tnks anyway

Fernando Racca
Technical Details
Message-ID: <3c8bb859_1@dnews>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!news-x2.support.nl!psinet-eu-nl!unlisys!news.snafu.de!newsfeed01.sul.t-online.de!t-online.de!dnews

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 1089d0,8dd7fd1125fb6e76,start
X-Google-Attributes: gid1089d0,public
X-Google-ArrivalTime: 2002-03-10 12:09:23 PST
From: "Fernando Racca" <lord_ice@speedy.com.ar>
Newsgroups: borland.public.jbuilder.java.api
Subject: loading a resource bundle
Date: Sun, 10 Mar 2002 16:47:33 -0300
Lines: 30
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
NNTP-Posting-Host: 168.226.65.18
Message-ID: <3c8bb859_1@dnews>
X-Trace: dnews 1015789657 168.226.65.18 (10 Mar 2002 11:47:37 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!news-x2.support.nl!psinet-eu-nl!unlisys!news.snafu.de!newsfeed01.sul.t-online.de!t-online.de!dnews