This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.



Only 44 hours left in the trailboss' kickstarter!

New rewards and stretch goals. CLICK HERE!



Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Can anybody help me?  RSS feed

 
kishore chitturi
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I installed jdk1.5 and i set classpath and path also.If i run a sample program , following exception occured.Can any body suggest me,why this exception is coming?



Exception in thread "main" java.lang.NoClassDefFoundError: Example
 
Roman Tomach
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try to add .(dot) to classpath variable.
 
John Wolf
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In Wintel command prompt, type

echo %CLASSPATH%

in UNIX prompt, type

echo $CLASSPATH

to make sure your classpath is setup correctly.

Or as suggested by Roman type

java -cp . classname

Good Luck!
Sumit
[ June 01, 2005: Message edited by: Sumit Sadana ]
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!