Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Are there special requirements for invoking Java in a script controlled by launchd?




On Jul 24, 2007, at 1:23 AM, Mark Leone wrote:

I had some trouble with the classpath arguments in the plist above, however. I originally had two classpaths in the third string element, separated by a ":", but the second classpath was not processed, as I got a NoClassDefFound error. Then I tried specifying each classpath as a separate element, and also tried putting an element with a ":" in between them, but none of these would work. I finally got it to work by putting the second classpath in the jar file rcbClient.jar. I should have done this to begin with, since it's an external library used by the code in the jar file, but I wonder why I wasn't able to get two classpaths working in the plist file. If I weren't launching the app from a jar file, I don't know how I would have made it work. Can someone post an example using two classpaths?

On OS X : should be the correct path.separator character. Since you say it seemed to find the first path I would have to guess that it did in fact parse the paths correctly. So, most likely the second path was just bad? Hard to say for sure since you don't show us what didn't work. It might still be hard to say because I don't know what might be where on your machine.


Mike Hall        hallmike at att dot net
http://www.geocities.com/mik3hall
http://sourceforge.net/projects/macnative



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden

This email sent to email@hidden
References: 
 >Re: Are there special requirements for invoking Java in a script controlled by launchd? (From: Greg Guerin <email@hidden>)
 >Re: Are there special requirements for invoking Java in a script controlled by launchd? (From: Mark Leone <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.