This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Pls help me, so basic question! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Pls help me, so basic question!" Watch "Pls help me, so basic question!" New topic
Author

Pls help me, so basic question!

long sun
Greenhorn

Joined: Feb 24, 2001
Posts: 18
I installed jdk1.2.2 in Windows2000,it can compile ,but when i run,it gave me an error "Exception in thread "main" java.lang.NoClassDefFoundError:ClassName",i've already try a lot of programms,but the result is the same,i am very confusing,i can not
find the reason ,i'm anscious to hear for someone to help me,thanks!
huiying li
Ranch Hand

Joined: Feb 12, 2001
Posts: 68
check your classpath to include the current directory
CLASSPATH=.;

SCJP
Cindy Glass
"The Hood"
Sheriff

Joined: Sep 29, 2000
Posts: 8521
We answered this in Beginner.


"JavaRanch, where the deer and the Certified play" - David O'Meara
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Pls help me, so basic question!
 
Similar Threads
No suitable driver?
add user
Text Editor?
To all people looking in New York City !
web.xml, java.io.ByteArrayInputStream