|
From: Lindsay S. <ls...@ii...> - 2004-09-28 02:33:36
|
I am getting a little frustrated with trying to get an application to
run.
My application happily runs with the following batch file:
java -cp
".;lib/comm.jar;lib/log4j-1.2.8.jar;lib/mysql-connector-java-3.0.14-prod
uction-bin.jar;lib/wrapper.jar" dcm.DipperDCM
When I run it with the wrapper I get the following. This seems be what
is always stopping it from running.
java.lang.NoClassDefFoundError: dcm/DipperDCM
my Wrapper properties are below.
It seems to find the conf file, and logs to the correct place but
cannot find the java class files to start the app.
root
+---conf
+---dcm
+---lib
L---log
The batch files and wrapper exe are in the root directory - dcm contains
the class files and conf contains the conf files.
I have searched the archives, FAQ's .. and read and read docs. I have
also tried many things, including.
* Setting the full path to the java executable - tried many variations
on this.
* Setting a working directory - same result
* Running the app in different modes - method 1 - and then I wrote a
wrapper class and tried to use method 3 - everything falls down when it
will not find the class to start things.
* Changing all sorts of settings in the conf file.
I am using Windows XP for development, wrapper 3.11 and Sun's JDK 1.4.2
Any ideas .. I am a loss.
Thanks,
Lindsay
#********************************************************************
# Wrapper Properties
#********************************************************************
# Java Application
wrapper.java.command=C:\j2sdk1.4.2\bin\java
# Java Main class. This class must implement the WrapperListener
interface
# or guarantee that the WrapperManager class is initialized. Helper
# classes are provided to do this for you. See the Integration section
# of the documentation for details.
#wrapper.java.mainclass=org.tanukisoftware.wrapper.WrapperSimpleApp
wrapper.java.mainclass=dcm.DipperDCM
# Java Classpath (include wrapper.jar) Add class path elements as
# needed starting from 1
wrapper.java.classpath.1=lib/wrapper.jar
wrapper.java.classpath.2=lib/comm.jar
wrapper.java.classpath.3=lib/log4j-1.2.8.jar
wrapper.java.classpath.4=lib/mysql-connector-java-3.0.14-production-bin.
jar
wrapper.debug=true
wrapper.working.dir=\temp\run-win\
# Java Library Path (location of Wrapper.DLL or libwrapper.so)
wrapper.java.library.path.1=lib
# Java Additional Parameters
#wrapper.java.additional.1=
# Initial Java Heap Size (in MB)
#wrapper.java.initmemory=3
# Maximum Java Heap Size (in MB)
#wrapper.java.maxmemory=64
# Application parameters. Add parameters as needed starting from 1
wrapper.app.parameter.1=
|