- Posted by: Pradyut Bhattacharya
- Posted on: November 08 2004 04:44 EST
i have jdk5 installed in win xp sp2
when i do java <filename>
i get the error on my machine
Exception in thread "main" java.lang.NoClassDefFoundError: <filename>
i correct it by doing
java -cp . <filename>
then it runs fine.
but on running a client ejb program on the command line
AppClient -client <filename>
i again get the error
WARNING: ACC003: Application threw an exception.
where converter.ConverterHome is contained in the jar file
i do not get a solution to this problem
how can i correct the above problem or the overall problem such that
when i give the command
i get the output simply
Include ur current direcory(set CLASSPATH=%CLASSPATH%;.) in ur classpath. Sometimes it looks silly but u never know.
I have the same application as well as i have the same error
but when i run the client within Sun Java Application Server 9.1 (JSP) it works great...