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:

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......
Wink, wink, nudge, nudge, say no more ... https://richsoil.com/cards

This thread has been viewed 652 times.

All times above are in ranch (not your local) time.
The current ranch time is
Mar 20, 2018 12:01:30.