• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Problem Runnig Ist example HFEJB

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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......
 
Without subsidies, chem-ag food costs four times more than organic. Or this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic