Hi, I have used TextPad as a Java editor at school and it is GREAT. So don't be discouraged.
Installing on my home machine, I just ran into the same roadblock as you two have. It took me some time to get it right, but I have to admit that in the end I got it going by rereading the
TextPad FAQ > Java > FAQ no. 4
It seems that the version of the Java Development Kit that I used (1.5.0_11) does not set a registry key that TextPad is looking for. In my case I installed the jdk1.5.0_11 (with netbeans) executable right from Sun's website.
I did go into System Properties>Advanced>Environment Vars>System Vars and added this to the end of my Path variable (this may not match your path exactly because you have to use the path to the \bin file YOUR computer -- which may vary from mine):
Code: Select all
;C:\Program Files\Java\jdk1.5.0_11\bin (including the semicolon at the start to separate it from the previous code)
So now I could compile java from any directory using the command line -- e.g.,
and then
... and it worked fine. But TextPad didn't care. When I tried to use Tools>Compile Java, I got a window something to the effect of:
(Title) "C:\Windows\system32\javac.exe" and (alert message) "The system cannot find the file specified."
So I ended up having to do what the FAQ suggested which was to open up regedit (Start>Run... and type in 'regedit' and OK) and navigate to
Code: Select all
HKEY_LOCAL_MACHINE\Software\JavaSoft\Java Development Kit\CurrentVersion
The value in the current version entry was "1.5" so then I navigated to
Code: Select all
HKEY_LOCAL_MACHINE\Software\JavaSoft\Java Development Kit\1.5\JavaHome
And I had to change the JavaHome variable from a value of "1" to the path to my JDK's main directory, which in my case is
NOTE: The first time I did this I messed up and used the same string used to set the path. That didn't work, but when I took off the "\bin" at the end it was fine, which to my chagrin is exactly what the FAQ says that TextPad is looking for.....
Anyway, I hope that helps. Keep trying and don't let anyone discourage you for asking good questions.
Erik
P.S. ONE MORE THING: You always edit the registry at your own risk. It's almost never a smart thing to do unless you are a real geek. Which I am not, alas. So don't do anything except the above. And before you make any changes at all, you really, really should back up the registry -- in regedit, choose file>export and find a safe place to keep your exported registry file. Then you or your geeky friend may be able to fix anything you mess up. I named today';s backup file "20070219 about to change hlm-s-js-jdk-1.5 from 1 to a path.reg" so I can figure out what I was up to. And if Java starts acting flaky, you should consider returning the registry to its previous state, even if it means TextPad is not usable.