No Javac.exe in C:\Windows\

Using the Java SDK with TextPad

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

Post Reply
tedder
Posts: 2
Joined: Wed Mar 12, 2003 3:21 am

No Javac.exe in C:\Windows\

Post by tedder »

I cannot get TextPad to compile my work because it claims that my Javac.exe should be in C:\Windows, and TextPad cannot find it (of course because it is in C:\j2sdk... . I have edited the path variable as suggested in previous posts to no avail. One strange thing is that from the command line, java -version gives correct information in every directory I tried but Windows. I can also compile .java files from the command line.

My other java editor/compiler, BlueJay, works fine, but I like the IDE of TextPad and I hope to get it working. I would appreciate any help here.
Guest

Re: No Javac.exe in C:\Windows\

Post by Guest »

tedder wrote:I cannot get TextPad to compile my work because it claims that my Javac.exe should be in C:\Windows, and TextPad cannot find it (of course because it is in C:\j2sdk... .

Isn`t there a classpath setting that you have to make in the Environemtn tab of the systems settings of the COntrol Panel?
Garrett

Double-check your PATH variable

Post by Garrett »

OK, again:

You need to make sure the PATH system variable includes your

C:\j2sdk1.4.1\bin

directory. Do _not_ point it at:

C;\j2sdk1.4.1\bin\javac.exe,

or any other executable. Just point it at the directory, itself. Also, make sure it appears BEFORE C:\Windows\ in the semicolon-delimited list of directories.

Finally, if all that fails, edit the registry like this:

1. RUN :arrow: regedit

2. Go to: HKEY_USERS\S-1-5-21-1844237615-1993962763-854245398-1002\Software\Helios\TextPad 4\Tools\0

Or something like that. The S-1-5-21... section might be different. Doing a search for "TextPad" might help.

3. Change the key: Command from "javac.exe" to "C:\j2sdk1.4.1\bin\javac.exe"

4. Repeat for ...TextPad 4\Tools\1 and ...TextPad 4\Tools\2. You need to point the key explicitly at the executable, instead of relying on your system path.

NOTES:

A) This assumes that your jdk is installed at C:\j2sdk1.4.1. If it's installed elsewhere, modify the paths to reflect that.

B) Modifying your registry is NOT for the faint of heart. Before you do anything, you should back up your registry by going to:

File :arrow: Export Registry File... And make sure that you're exporting the "All" export range, not just the "Selected Range." Then name the file and note it's location. Messing with your registry can be VERY dangerous and can completely FUBAR the computer if you're not careful.
Garrett

2 more things you can try...

Post by Garrett »

There are two more things you can try before you run regedit:

First you can try to remove the java commands under:

:arrow: Configure :arrow: Preferences :arrow: Tools

And then delete all 3 of the java-related commands.

Then choose:

:arrow: Add :arrow: Java Commands.

Finally, if nothing else works, you should try reinstalling TextPad when you've got the JDK installed. That might work.
alexei

My (positive) experience

Post by alexei »

As recommended, I modified the registry for both 0 and 1 folders to C:\jdk.1.2\bin\javac.exe ( I didn't have 2). I was happy that the compilation worked at last but the run started to call javac.exe instead of java.exe! I removed both compile and run commands from Textpad and aded them back, nothing at all worked after that. I removed and installed Textpad, same javac.exe Not Found message again! I modified the registry FOR 0 ONLY (0 stands for Compile, 1 is Run, 2 is Applet Viewer), everything works!

Thank you for your advises, folks!
tld6557
Posts: 1
Joined: Sat May 31, 2003 8:01 pm

C:\Windows\javac.exe "System cant find file specified

Post by tld6557 »

Click on the associated Download J2SETM v 1.4.0_01 link and the Sun Java Download site is displayed.


4. Download the SDK file to your hard drive. Save the file to your drive and make sure you know the directory where the file is saved

"""Make sure that you download the SDK not that other option, then after install is complete find the downloaded file and install it****
Westpark21
Posts: 1
Joined: Sat Jun 07, 2003 2:28 pm

Post by Westpark21 »

how do I change the environment variable?
Fidzo
Posts: 1
Joined: Wed Jun 11, 2003 5:57 pm

Re: My (positive) experience

Post by Fidzo »

alexei wrote:As recommended, I modified the registry for both 0 and 1 folders to C:\jdk.1.2\bin\javac.exe ( I didn't have 2). I was happy that the compilation worked at last but the run started to call javac.exe instead of java.exe! I removed both compile and run commands from Textpad and aded them back, nothing at all worked after that. I removed and installed Textpad, same javac.exe Not Found message again! I modified the registry FOR 0 ONLY (0 stands for Compile, 1 is Run, 2 is Applet Viewer), everything works!

Thank you for your advises, folks!

Hi Alexei,
what did you change in the register to 0,1,2 exactly ?? (value not set ) or ..?
thank You
Fidzo
Post Reply