Page 1 of 1

Compiling Java Program...

Posted: Tue Jan 28, 2003 11:32 pm
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

Re: Compiling Java Program...

Posted: Wed Jan 29, 2003 6:38 pm
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.

Re: Compiling Java Program...

Posted: Wed Jan 29, 2003 6:40 pm
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.

Re: Compiling Java Program...

Posted: Wed Jan 29, 2003 7:56 pm
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;

Re: Compiling Java Program...

Posted: Thu Jan 30, 2003 11:20 pm
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