Page 1 of 1
cannot find javac.exe
Posted: Fri Jan 11, 2002 8:32 am
by Julie
How do I get TextPad to point to the javac??? I installed the newest JAVA2 Platform v.1.4.0Beta and now my TextPad cannot locate javac.exe.
I tried uninstalling TextPad and installing it again. Now under my Tools menu, I no longer have the Ctrl-1 (Compile Java), Ctrl-2 (Run Java Application), and Ctrl-3 (Run Applet Application).....what happened???
Re: cannot find javac.exe
Posted: Fri Jan 11, 2002 9:28 am
by Vidar Vidnes
Hello Julie
When uninstalling TextPad and installing it again you loose all your specified tools since they are part off the registrated information in regedit, and you also loose all your syntax files, changes you made in preference (a.o.) wich not are located in your user folder (located in your Textpad folder), and changes you made in preference and so on.
Under Preference you have the option "Tools" - clik on it - choose Add and "JDK commands" Then gently press Apply. Now you should have Some Java Tools on your Tools menu. Try e'm out too see if they are pointing to your java.exe file. If not you have to go back to the Preferences again, clik on the little (+) beside Tools and choose compile java and check if it points at the right file. If not - change it -
Tip... From now an then take a copy off your TextPad registry entry on a floppy or something, especially hen you are satisfied with your TextPad setup, Search in TextPad Help file for "How to Transfer Preferences between PC's" and save the export file on a disk. When double click on this file it will restore your latest settings. BEAWARE: Do as it says in the help file, regedit can be a pain in the as - (good work Microsoft)....
Good Luck, Julie
Re: cannot find javac.exe
Posted: Fri Jan 11, 2002 10:31 am
by Julie
Thanks for you help!!!
I just have one problem.....I still can't get it to work!!!
Well.....this is what happened. First of all, I do not see a \"JDK Commands\" under the Add drop-down menu. Don't know what happened to it....=(
So, I tried using the \"Program\" option under the Add drop-down menu instead. I selected the directory where TextPad will find my JAVAC.EXE, JAVA.EXE, and APPLETVIEWER.EXE and added those to my Tools option menu.
Right now, when I compile a simple Java program using JAVAC.EXE, it works......but when I try to run the application using JAVA.EXE, it tells me that I have a \"java.lang.NoClassDefFoundError\". I know that there is nothing wrong with this program since I works perfectly fine in FORTE.
So why can't I run my programs in TextPad?