 |
AppletTalk.com Java discussions newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Theo Guest
|
Posted: Tue Nov 30, 2004 12:08 am Post subject: NoClassDefFoundError-JDK1.5.0 |
|
|
Hello people,
i installed few hours ago the JDK 1.5.0 .i am using Win98SE ,I tried to
compile some simple programs and the javac command works fine and i get
the *.class files.Although when i do java filename.class i get the
message :
exception in thread "main" java.lang.NoClassDefFoundError . The JDK is
installed in C:Program FilesJavajdk1.5.0 ,and here is my autoexec.bat
file :
SET BLASTER=A220 I7 D1 H5 P330 T6
SET CTSYN=C:WINDOWS
C:PROGRA~1CREATIVESBLIVEDOSDRVSBEINIT.COM
mode con codepage prepare=((737) C:WINDOWSCOMMANDega2.cpi)
mode con codepage select=737
keyb gk,,C:WINDOWSCOMMANDkeybrd4.sys
PATH=C:WINDOWS;C:WINDOWSCOMMAND;C:PROGRA~1Javajdk1.5.0bin
SET CLASSPATH=%CLASSPATH%;C:PROGRA~1Javajdk1.5.0include
@if exist C:PROGRA~1PTDDCTMOUSE.EXE C:PROGRA~1PTDDCTMOUSE.EXE
as far as i know some modification of the autoexec.bat will fix the
ploblem but i have no idea what modification i must do.
thanks
|
|
| Back to top |
|
 |
???? Guest
|
Posted: Tue Nov 30, 2004 6:16 am Post subject: Re: NoClassDefFoundError-JDK1.5.0 |
|
|
| Quote: | SET CLASSPATH=%CLASSPATH%;C:PROGRA~1Javajdk1.5.0include
|
you may try put ";,", a semicolon[;] and a dot [.] after the classpath, like
follow
SET CLASSPATH=%CLASSPATH%;C:PROGRA~1Javajdk1.5.0include;.
|
|
| Back to top |
|
 |
PerfectDayToChaseTornados Guest
|
Posted: Tue Nov 30, 2004 9:05 pm Post subject: Re: NoClassDefFoundError-JDK1.5.0 |
|
|
"Theo" <grithe (AT) ieee (DOT) org> wrote
| Quote: | Hello people,
i installed few hours ago the JDK 1.5.0 .i am using Win98SE ,I tried to
compile some simple programs and the javac command works fine and i get
the *.class files.Although when i do java filename.class i get the
message :
exception in thread "main" java.lang.NoClassDefFoundError . The JDK is
installed in C:Program FilesJavajdk1.5.0 ,and here is my autoexec.bat
file :
SET BLASTER=A220 I7 D1 H5 P330 T6
SET CTSYN=C:WINDOWS
C:PROGRA~1CREATIVESBLIVEDOSDRVSBEINIT.COM
mode con codepage prepare=((737) C:WINDOWSCOMMANDega2.cpi)
mode con codepage select=737
keyb gk,,C:WINDOWSCOMMANDkeybrd4.sys
PATH=C:WINDOWS;C:WINDOWSCOMMAND;C:PROGRA~1Javajdk1.5.0bin
SET CLASSPATH=%CLASSPATH%;C:PROGRA~1Javajdk1.5.0include
@if exist C:PROGRA~1PTDDCTMOUSE.EXE C:PROGRA~1PTDDCTMOUSE.EXE
as far as i know some modification of the autoexec.bat will fix the
ploblem but i have no idea what modification i must do.
thanks
|
Have you got . on your classpath?
--
-P
"Programs that are hard to read are hard to modify.
Programs that have duplicated logic are hard to modify.
Programs with complex conditional logic are hard to modify"
( Kent Beck)
|
|
| Back to top |
|
 |
Hal Rosser Guest
|
Posted: Wed Dec 01, 2004 2:08 am Post subject: Re: NoClassDefFoundError-JDK1.5.0 |
|
|
"Theo" <grithe (AT) ieee (DOT) org> wrote
| Quote: | Hello people,
i installed few hours ago the JDK 1.5.0 .i am using Win98SE ,I tried to
compile some simple programs and the javac command works fine and i get
the *.class files.Although when i do java filename.class i get the
message :
exception in thread "main" java.lang.NoClassDefFoundError . The JDK is
installed in C:Program FilesJavajdk1.5.0 ,and here is my autoexec.bat
file :
|
When you call the program - leave off the ".class" extension
java ClassName
(not "java ClassName.class")
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system ([url]http://www.grisoft.com)[/url].
Version: 6.0.799 / Virus Database: 543 - Release Date: 11/19/2004
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|