Cannot use JDK Commands - NOT YOUR NORMAL NEWBIE POST

Using the Java SDK with TextPad

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

Post Reply
mmaccartney
Posts: 2
Joined: Fri Feb 06, 2004 8:09 pm

Cannot use JDK Commands - NOT YOUR NORMAL NEWBIE POST

Post by mmaccartney »

OK, I know there are tons of posts on this issue, but nothing that would resolve my issue.

I am running Windows XP Service Pack 1. I have installed Textpad v4.7.2 I then installed j2eesdk-1_4-dr-windows-eval.exe from java.sun.com Installed it, added the JDK Commands based on the html guide located at http://www.textpad.com/support/faq/java.html and adding the path to the bin directory to environment variable PATH

After that, I could compile java, run java applet, and run java application without an issue. I then went to run an applet in Internet explorer v6...BUT it wouldn't run since the Microsoft VM is out of date. Obviously I can use -target 1.1 on the command line for the javac.exe compiler call, but that isn't the best solution.

Any solutions????

I noticed that j2eesdk1.4 installs what it calls a private jre and that it may or may not register with my browser. It indeed did not register any sun java vm within my browser. So, I downloaded j2re-1_4_2_03-windows-i586-p.exe and installed that. Now I have Sun Java running in my browser and that works just fine.

*****Here is where the problem comes in******

BUT now none of the Java tools in textpad work any longer, I get C:\WINDOWS\SYSTEM32\JAVAC.EXE THE SYSTEM CANNOT FIND THE SPECIFIED FILE. Indeed it cannot, javac.exe is not in the c:\windows\system32 folder....however it is still in my PATH variable and I can run JAVAC.EXE from any command line or a run dialog box. Thinkinhg the issue is that the JRE isntallation modified registry keys that Textpad uses for the locatin of the java executables I checked the write up about How does TextPad locate the JDK programs? located at http://www.textpad.com/support/faq/java.html WELL guess what, I do not have the registry keys that you tell me to check.In fact I have no registry key that contains the text Java Development Kit I have a JavaHome registry key under ...\Javasoft\Java Plug-in\1.4.2_03, under ..\Javasoft\Java Runtime Environment\1.4 AND \1.4.2_03 BUT these weren't there prior to the JRE installation

Obviously I can create my own tool and configure it exactly the same way as the JDK Commands are configured, but I think it would be worthwhile to find out why the native JDK commands in Textpad are getting confused after the JRE installation...
User avatar
talleyrand
Posts: 624
Joined: Mon Jul 21, 2003 6:56 pm
Location: Kansas City, MO, USA
Contact:

Post by talleyrand »

First of all, please pardon me for responding if I haven't completely understood your post (it's a Friday and my brain's mush).

The issue is that you had one version of Java installed and it was all fine and dandy except for applets. You installed a different edition of the JDK and it cleared up the applet issue. The issue is the tools no longer work in TP? If so, have you tried deleting them and recreating them? Ctrl-Q, P -> Tools Select the tools from the list control (not the tree) and delete them. Just to be safe, apply the changes and the close out TextPad (It may be gratuitous but better safe than annoyed). Reopen TP and re-add the java SDK commands in the tool menu. That fix the problem?

Finally, thank you so much for at least doing some legwork before posting!
I choose to fight with a sack of angry cats.
mmaccartney
Posts: 2
Joined: Fri Feb 06, 2004 8:09 pm

Response

Post by mmaccartney »

Well I had the JDK installed. I could run applets just fine using appletviewer from a command line or within jdk tools provided by textpad. I couldn't run those applets within IE 6 sp1. Knowing that microsofts java vm is old, I can use javac.exe -target 1.1 .... to set the bytecode to the proper target vm so that it would run. Since the JDK didn't install a Sun java VM for IE6 to use I opted to d/l the current JRE from Sun. Once that was installed I could run my applets in IE without compiling with the -target option. BUT the JDK tools within textpad no longer work. I tried deleting them and readding them as you suggest, but that doesn't work. i recreated them manually and they work OK.

NOTE: If I uninstall the JRE the JDK tools in textpad begin to work again. Thus the JRE install must be changing something somewhere that textpad uses to locate the JDK tools. I checked the registry sections mentioned in the FAQ for JAVA, but that didn't yield anything helpful....
Post Reply