Java Run Error

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
Steve

Java Run Error

Post 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
Andreas

Re: Java Run Error

Post 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
moderator

Re: Java Run Error

Post by moderator »

The Java FAQ maybe of help to you:

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

Heidi-Marie
Gregg Wagner

Re: Java Run Error

Post 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
Post Reply