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
Java Run Error
Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard
Re: Java Run Error
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
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
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
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