D
Daniel Schneller
Hi!
I have to build an application into a self-running jar file (let the
users double-click it on Windows). No problem there. However the
application requires a system property to be set. Is it possible to add
the definition of this property to the manifest?
Example:
java -Djava.security.auth.login.config==theconfig.config -jar myapp.jar
I would like to get rid of the -D.... part by somehow specifying the
default in the manifest, because that would require me to have a
separate launcher. The config file can easily be packed into the jar
file, be placed next to it or whereever, as long as I don't have to
specify it directly.
Any ideas? Perhaps I am just missing something plain stupid, but I
really seem to be stuck here.
Thanks in advance,
Daniel
I have to build an application into a self-running jar file (let the
users double-click it on Windows). No problem there. However the
application requires a system property to be set. Is it possible to add
the definition of this property to the manifest?
Example:
java -Djava.security.auth.login.config==theconfig.config -jar myapp.jar
I would like to get rid of the -D.... part by somehow specifying the
default in the manifest, because that would require me to have a
separate launcher. The config file can easily be packed into the jar
file, be placed next to it or whereever, as long as I don't have to
specify it directly.
Any ideas? Perhaps I am just missing something plain stupid, but I
really seem to be stuck here.
Thanks in advance,
Daniel