This content has been marked as final. Show 5 replies
If I'm not mistaken, you wouldn't put the properties file on the classpath. You'd put a directory containing it (or containing a path down to the file) in your classpath.
So if "i18n" is in your classpath, you'd open the bundle with "ui_demo".
I have added the "i18n" in MANIFEST.MF Class-Path entry. Is there the way I set the classpath?
Actually I have no idea whether that's a valid classpath as defined in a manifest file.
You might want to forget that for now and just specify the classpath on the command line until you get it working. Fix one thing at a time.
It seems doesn't work. I use java -jar command which will ignore the classpath environment variable. It uses the classpath defined in the manifest file.
java -classpath yourJarFile.jar:otherstuff package.ClassWithMainInIt