Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / October 2005

Tip: Looking for answers? Try searching our database.

JavaService: Use classpath from manifest?

Thread view: 
allancady@yahoo.com - 28 Oct 2005 20:46 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
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.



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.