?
=?iso-8859-1?B?UulnaXMgROljYW1wcw==?=
Hi,
I am building a simple Java application packaged as a JAR.
The application relies on some libraries that are referenced in the
JAR Manifest entry, like this:
Class-Path: lib/webservices-api.jar lib/webservices-extra-api.jar lib/
webservices-extra.jar lib/webservices-rt.jar lib/webservices-tools.ja
r lib/junit-3.8.1.jar
Now, I'd like the application to read a property file with
ResourceBundle.getBundle().
It works pretty well if I change the Class-Path entry like this
Class-Path: lib/webservices-api.jar lib/webservices-extra-api.jar lib/
webservices-extra.jar lib/webservices-rt.jar lib/webservices-tools.ja
r lib/junit-3.8.1.jar .
(note the "." at the end)
But I wonder if it is "legal". The specs only say (http://java.sun.com/
javase/6/docs/technotes/guides/jar/jar.html)
"The value of this attribute specifies the relative URLs of the
extensions or libraries that this application or extension needs. URLs
are separated by one or more spaces. The application or extension
class loader uses the value of this attribute to construct its
internal search path. "
Extra questions: how to change the Netbeans project to add this "." in
the generated manifest?
Thanks,
I am building a simple Java application packaged as a JAR.
The application relies on some libraries that are referenced in the
JAR Manifest entry, like this:
Class-Path: lib/webservices-api.jar lib/webservices-extra-api.jar lib/
webservices-extra.jar lib/webservices-rt.jar lib/webservices-tools.ja
r lib/junit-3.8.1.jar
Now, I'd like the application to read a property file with
ResourceBundle.getBundle().
It works pretty well if I change the Class-Path entry like this
Class-Path: lib/webservices-api.jar lib/webservices-extra-api.jar lib/
webservices-extra.jar lib/webservices-rt.jar lib/webservices-tools.ja
r lib/junit-3.8.1.jar .
(note the "." at the end)
But I wonder if it is "legal". The specs only say (http://java.sun.com/
javase/6/docs/technotes/guides/jar/jar.html)
"The value of this attribute specifies the relative URLs of the
extensions or libraries that this application or extension needs. URLs
are separated by one or more spaces. The application or extension
class loader uses the value of this attribute to construct its
internal search path. "
Extra questions: how to change the Netbeans project to add this "." in
the generated manifest?
Thanks,