[Logo]
Forums Register Login
Problem Runnig Ist example HFEJB
I have compiled the first example in HFEJB suceessfully and the class file has been (AdviceClient.class) has been created.But iam unable to run the client successfully. It throws "Exception in thread "main" java.lang.NoClassDefFound error" is thrown.

My jar file AdviceAppclient.jar is in folder: d:\02bala\projects\advice\AdviceAppclient.jar.

Class file AdviceClient.class is in the same dir:
d:\02 bala\projects\advice\AdviceClient.class

I have set CLASSPATH=C:\j2sdkee1.3\lib\j2ee.jar

and path to:
Path=C:\WINDOWS\System32;C:\jdk1.3.1_19\bin;C:\j2sdkee1.3\bin
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH

i have set JAVA_HOME and J2EE_HOME to appropriate values.

I used the following command to run the client.

d:\02 bala\projects\advice>java -cp -classpath c:\j2sdkee1.3\lib\j2ee.jar
;"d:\02 bala\projects\advice\AdviceAppClient.jar" AdviceClient
Exception in thread "main" java.lang.NoClassDefFoundError: c:\j2sdkee1/3\lib\j2ee/jar;d:\02 bala\projects\advice\AdviceAppClient/jar


Can anyone help me to run this example ?? iam stuck with this for the past 5 days......

This thread has been viewed 699 times.

All times above are in ranch (not your local) time.
The current ranch time is
Sep 26, 2018 04:41:22.