| Author |
Can anybody help me?
|
kishore chitturi
Ranch Hand
Joined: Nov 28, 2004
Posts: 50
|
|
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
Joined: Mar 17, 2005
Posts: 15
|
|
|
Try to add .(dot) to classpath variable.
|
 |
John Wolf
Ranch Hand
Joined: Feb 18, 2002
Posts: 64
|
|
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 ]
|
SCJP 1.2, SCJP 1.4, SCJA, SCWCD 1.4<br /> <br />------------------------------<br />
|
 |
 |
|
|
subject: Can anybody help me?
|
|
|