troubleshooting Question

jsvc.exec error: Cannot found Daemon Loader "version" entry point

Avatar of Sarge516
Sarge516 asked on
LinuxJava
15 Comments1 Solution2637 ViewsLast Modified:
OS Centos 6
commons-daemon-1.0.7.jar

I'm trying to use jsvc for the first time to help auto run a java program.  My program has the required methods (start(), etc. listed in the jsvc home web page.
I run as -debug and get the error listed in the title.

This is not related to running Tomcat, although I do have tomcat 6 installed and running. My classpath is auto created based on what jars are in my dir so I have not forced any jar ordering yet.


My Script is something like this :

JAVA_HOME=/usr/lib/jvm/jre-1.6.0-openjdk.x86_64
export JAVA_HOME
appdir=/opt/YOYO

myJars=`find $appdir *.jar`
for i in $myJars; do
    echo $i
    clp=$clp:$i
done

echo $clp

/usr/bin/jsvc  -cp $clp -version -debug  org.yoyol.v01_02.Server.Run.RunMe

So my question is what is needed to fix the missing "version" entry point ?

Thanks,
Sarge
ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 1 Answer and 15 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 15 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros