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
Sharp Tool - 29 Oct 2005 11:06 GMT
> 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
[quoted text clipped - 23 lines]
>
> Allan
NEver heard of JavaService.
You have a link?
Sharp tool
Roedy Green - 31 Oct 2005 04:47 GMT
>Can anyone tell me if this is something that JavaService supports, and
>if so, how to do it? Or am I out of luck
see http://javaservice.objectweb.org/
I suggest an experiment.
Just write a minimal app with the startup, main and shutdown methods
and dump the system properties. Try classForName on some classes in
various jars to see if they are accessible.
See http://mindprod.com/jgloss/properties.html
Please report back with what you find out.

Signature
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.