Hello,
a friend just showed me an example where to load a given set of
RessourceBoundles he prefixed the baseName of the boundle with a (relative)
path...
now this astonished me a lot since i never managed to get my programs to load
their ressources from elsewhere as the current directory (which is a really
big problem in most cases, since it isn't possible to call the program from
any place except the source location...)
Now he works with a windows JDK...
Now i ran back to my computer and made some tests and <HATE> it doesn't work
for me...... i am using jdk1.2pre2 on linux....
i tryed using an absolute path:
(in the ~/.javarc is:
msgEditor.RESPATH = /home/bboett/java/AngeBrun/utils/msgEditor)
String appPath = base.getProperty("msgEditor.RESPATH");
msg = ResourceBundle.getBundle(appPath+"/Messages",currentLocale);
the same thing in relative:
/** make the path realtive */
String FileSep = System.getProperty("file.separator");
char fS = FileSep.charAt(0);
String uD = System.getProperty("user.dir");
String deAbsolutizer = "";
for(int i =0; i < uD.length(); i++)
if(uD.charAt(i) == fS) deAbsolutizer += "../";
if(appPath == null) appPath = "";
else appPath = deAbsolutizer+appPath;
but nothing helps..... i only get a :
erm7:~/java/AngeBrun/utils$ java Ed
#searching ressources at
../../../../..//home/bboett/java/AngeBrun/utils/msgEditorMessages
Couldn't find ressources:java.util.MissingResourceException: can't find
resource for
../../../../..//home/bboett/java/AngeBrun/utils/msgEditor/Messages_en_EN
so what's going wrong??? didn't i understand something, is this a known bug of
the linux implementation or what's happening?
--
ciao bboett
==============================================================
[EMAIL PROTECTED]
http://inforezo.u-strasbg.fr/~bboett http://erm1.u-strasbg.fr/~bboett
===============================================================
the total amount of intelligence on earth is constant.
human population is growing....
----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]