This week's book giveaway is in the Cloud/Virtualization forum.
We're giving away four copies of Learning OpenStack Networking: Build a solid foundation in virtual networking technologies for OpenStack-based clouds and have James Denton on-line!
See this thread for details.
Win a copy of Learning OpenStack Networking: Build a solid foundation in virtual networking technologies for OpenStack-based clouds this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

Problem Runnig Ist example HFEJB  RSS feed

 
Greenhorn
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:
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......
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!