• Post Reply Bookmark Topic Watch Topic
  • New Topic

Problem Runnig Ist example HFEJB

murthy bala
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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......
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!