Compiling Java Program...

General questions about using TextPad

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

Post Reply
Shan Srivastava

Compiling Java Program...

Post by Shan Srivastava »

Hello,

Trying to compile Java program with the latest version of Texpad. I downloaded the Newest release Java SDK 1.4.1_01 and everything downloaded fine to Programs Folder. (Texpad as well). Now when I go to compile a java program saved with the same class name and everything it give this error:
C:WINDOWS\System32\javac.exe?

I know the file should be located in the \bin directory but Textpad doesn't seem to find the file?

I haven't done anything to the PATH is this the problem? If it is could you give me an example of what to write in there?

Any help.

Thanks
Shan
smhaus_net

Re: Compiling Java Program...

Post by smhaus_net »

The java bin directory must be in your windows PATH (not CLASSPATH). This can be set in different ways for different operating systems.
smhaus_net

Re: Compiling Java Program...

Post by smhaus_net »

The java bin directory must be in your windows PATH (not CLASSPATH). This can be set in different ways for different operating systems.
Shan Srivastava

Re: Compiling Java Program...

Post by Shan Srivastava »

Would you happen to know what to write in the AUTOEXEC.BAT for Windows XP?
Is it an absolute path? This is what I have and it is not responding

PATH=C:\WINDOWS\SYSTEM32\JAVA\J2RE1.4.1_01\BIN;
Sanjay Ramanujan

Re: Compiling Java Program...

Post by Sanjay Ramanujan »

Nope, on NT (and so XP) you would modify the environment variable to adjust the path. Point to Start -> Settings -> Control Panel -> System -> Advanced -> Environment Variables -> System Variable -> path
Post Reply