A
allancady
I have an application packaged in a jar file, and I specify the
classpath for all of the application's dependencies in the jar file's
manifest.mf:
Main-Class: com.us.ourapp.Main
Class-Path: ../lib/commons-beanutils.jar
../lib/commons-collections-3.1.jar
../lib/commons-configuration-1.1.jar
etc.
This makes it very handy to run the app from the command line:
java -jar dist\ourapp.jar
Now I'm trying to deploy the app as a service, using JavaService. I've
used JavaService before, but I specified the full classpath explicitly
on the JavaService install command
(using -Djava.class.path...) Now I'm trying to figure out if it's
possible to use the -jar approach with JavaService, such that it uses
the classpath from the manifest. So far no luck.
Can anyone tell me if this is something that JavaService supports, and
if so, how to do it? Or am I out of luck?
Thanks,
Allan
classpath for all of the application's dependencies in the jar file's
manifest.mf:
Main-Class: com.us.ourapp.Main
Class-Path: ../lib/commons-beanutils.jar
../lib/commons-collections-3.1.jar
../lib/commons-configuration-1.1.jar
etc.
This makes it very handy to run the app from the command line:
java -jar dist\ourapp.jar
Now I'm trying to deploy the app as a service, using JavaService. I've
used JavaService before, but I specified the full classpath explicitly
on the JavaService install command
(using -Djava.class.path...) Now I'm trying to figure out if it's
possible to use the -jar approach with JavaService, such that it uses
the classpath from the manifest. So far no luck.
Can anyone tell me if this is something that JavaService supports, and
if so, how to do it? Or am I out of luck?
Thanks,
Allan