This is the mail archive of the mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Java NoClassDefFoundError

Having a problem executing a java program in a .sh file when running the .sh
in Cygwin.  The following code snip is part of a larger .sh file that was
written for the Solaris env.  I am trying to get it functioning on Windows
NT.  Before calling "java", the script cd's to the directory where the java
program is.  However, the call throws a "NoClassDefFoundError" exception.
It can not find the class being called, (.org.jboss.Main).  I can execute
this call on the command line and it works fine.  When the code is called
inside of the .sh, it does not.  I have tried specifying the paths in
-classpath as both full and relative paths.  Still no luck.  Has anyone else
encountered a similar problem?

I have installed Cygwin in e:\cygwin, and have not mounted a new root or any
other directories.  The web application, this script starts, includes Tomcat
and Jboss.  The application environment is installed in e:\cygwin, under
/usr/local/.......  So, when at the bash commend prompt I can type cd /usr
and It brings me to the root of the application.  


       cd /usr/local/idexx/prod/jboss/bin

       java \
           -server \
           -Xbootclasspath/a:${PJA_HOME}/lib/pja.jar \
           -Dawt.toolkit=com.eteks.awt.PJAToolkit \
           -Djava.awt.graphicsenv=com.eteks.java2d.PJAGraphicsEnvironment \
           -Djava2d.font.usePlatformFont=false \
           -Duser.home=${PJA_HOME} \
$CLASSPATH:.:run.jar:../lib/xerces.jar:../lib/crimson.jar org.jboss.Main


Unsubscribe info:
Bug reporting:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]