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.
No Javac.exe in C:\Windows\
Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard
Re: No Javac.exe in C:\Windows\
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?
Double-check your PATH variable
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 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 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.
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 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 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.
2 more things you can try...
There are two more things you can try before you run regedit:
First you can try to remove the java commands under:
Configure Preferences Tools
And then delete all 3 of the java-related commands.
Then choose:
Add Java Commands.
Finally, if nothing else works, you should try reinstalling TextPad when you've got the JDK installed. That might work.
First you can try to remove the java commands under:
Configure Preferences Tools
And then delete all 3 of the java-related commands.
Then choose:
Add Java Commands.
Finally, if nothing else works, you should try reinstalling TextPad when you've got the JDK installed. That might work.
My (positive) experience
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!
Thank you for your advises, folks!
C:\Windows\javac.exe "System cant find file specified
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****
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****
Re: My (positive) experience
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
Fidzo