Page 1 of 1

Java Run Error

Posted: Mon Jan 22, 2001 4:46 am
by Steve
Okay, I'm sure this has been answered before, but for some reason I can't find it. I've just started using TextPad, and am particularly interested in using it to write, compile, and run my Java programs. Unfortunately when I attempt to run the programs I get this error: "Exception in thread "main" java.lang.NoClassDefFoundError: Cube
Press any key to continue . . ."

Could anyone tell me how to correct this? I have a feeling it has something to do with my directory settings; in fact, I have even fixed this problem in my Emacs editor; unfortunately I don't know how to do it in TextPad. Any help is appreciated.

-Steve

Re: Java Run Error

Posted: Mon Jan 22, 2001 7:44 am
by Andreas
your CLASSPATH might be wrong. Go to dosbox and type
echo %CLASSPATH%
and check whether it is correct.
Also check your Textpad "java run" tool settings, especially the "Initial Folder" setting - it should point to the dir where your class file is.

Andreas

Re: Java Run Error

Posted: Mon Jan 22, 2001 8:56 am
by moderator
The Java FAQ maybe of help to you:

http://www.textpad.com/support/javafaq.html

Heidi-Marie

Re: Java Run Error

Posted: Fri Feb 23, 2001 3:31 am
by Gregg Wagner
I am also getting this same error. I have gone through the textpad java help and reread the sun article on installation. I have the following:
win2000
c:\jdk1.3 (in folder Folder)
USER VARIABLES
Java JDK1.3 C:\JDK1.3\bin

SYSTEM VARIABLES
Classpath c:\winnt\java\classes\RXAssistant.zip

At the dos prompt when I type SET Classpath is as above

My error is identical to this thread

I have exhausted looking into SUN help files and Textpads

Thanks for your time,
Gregg