TextPad using wrong jdk
Posted: Fri May 24, 2002 2:16 pm
The situation:
1. I have two (2) jdk's installed on my Win2K system: 1.1.8 and 1.2.2, (I'm forced to work with legacy code that's not compatible with newer versions.) I installed and worked with 1.1.8 first.
2. They are installed in C:\jdk1.1.8\ and C:\jdk1.2.2\
3. My PATH variable points to the C:\jdk1.2.2\bin\ directory, and it's the first entry in the list of directories.
4. When I attempt to use the preset jdk commands in TextPad 4.5.0, (Compile Java, Run Java Application, and Run Java Applet,) somehow TextPad insists on using the jdk 1.1.8 executables. I'm sure of this because it fails to compile Swing code that's available in 1.2.2, but not 1.1.8.
5. When I manually add the executables using the Add-->DOS Command..., it works fine, using the 1.2.2 jdk! I don't even need to explicitly write out the paths to the \bin\ directory, just call the .exe directly since it's in the System PATH. I even added the DOS Command: "java -version", and, true to form, saying that the version is 1.2.2.
What's happening here? Is there some sort of record that TextPad keeps of the location of the jdk? Is it looking there for the jdk executables? This is very confusing.
1. I have two (2) jdk's installed on my Win2K system: 1.1.8 and 1.2.2, (I'm forced to work with legacy code that's not compatible with newer versions.) I installed and worked with 1.1.8 first.
2. They are installed in C:\jdk1.1.8\ and C:\jdk1.2.2\
3. My PATH variable points to the C:\jdk1.2.2\bin\ directory, and it's the first entry in the list of directories.
4. When I attempt to use the preset jdk commands in TextPad 4.5.0, (Compile Java, Run Java Application, and Run Java Applet,) somehow TextPad insists on using the jdk 1.1.8 executables. I'm sure of this because it fails to compile Swing code that's available in 1.2.2, but not 1.1.8.
5. When I manually add the executables using the Add-->DOS Command..., it works fine, using the 1.2.2 jdk! I don't even need to explicitly write out the paths to the \bin\ directory, just call the .exe directly since it's in the System PATH. I even added the DOS Command: "java -version", and, true to form, saying that the version is 1.2.2.
What's happening here? Is there some sort of record that TextPad keeps of the location of the jdk? Is it looking there for the jdk executables? This is very confusing.