Error when trying to execute .class file.
Hello,
I downloaded jdk 1.5 from the official java website and have installed it properly. I tried compyling my java program and it gets compilde. But when I try to execute it I keep getting the error "Exception in thread "main" java.lang.NoClassDef Found Error". Please help me .........
[301 byte] By [
colea] at [2007-10-2 20:30:58]

It's because java can't find one (or more) of your .class files. You have to tell it by passing the correct classpath to java.exe.
Read about the classpath and java launcher here:
[url]
http://java.sun.com/j2se/1.5.0/docs/tooldocs/index.html
[/url]
[url]
http://java.sun.com/j2se/1.5.0/docs/tooldocs/windows/java.html
[/url]
Message was edited by:
Loko
Because:
Something is definitely wrong with the formatting
Lokoa at 2007-7-13 23:14:06 >

Hello,
Im also getting the same problem(NoClassDef.Found Error) .
i executed my program in this version j2sdk1.4.2_04 that time my program is working fine .. after that i installed j2sdk1.4.2_12 .. then executes only class file (java program) that time im facing this problem ..
i dont know why ?i set the class path also ..i have one doubt that i need to compilie my program in that verion j2sdk1.4.2_12 and then i have execute or what ?
can anybody help me