Hi,
I actually have two questions:
1) I want to install my TextPad so it will execute the java.exe + javac.exe found in c:\...\jdk1.3.1\, instead of c:\jdk1.2.2.
How do I configure the TextPad to do so?
I tried to uninstall the JDK1.2.2 and then install TextPad again, but now it just informs me that "File cannot be found - javac.exe"...
2) How do I set up environment variables in windows 98?
Thank you.
How to run different java application
Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard
Re: How to run different java application
1) The JDK actually writes some stuff into the registry, and often makes a great big sh!##y mess of things as a result. As a consequence, the easiest solution is to explicitly set the PATH variable for windows to include, at the beginning:
C:\...jdk1.3.1\bin\
This will force windows to search that directory before all others to look for java.exer and javac.exe. If this doesn't work, you can always modify in the registry the actual commands executed by TextPad for Compile Java, Run Java Application, and Run Java Applet. This requires you to find in the registry keys:
My Computer\HKEY_CURRENT_USER\Software\Helios\TextPad4\Tools\0
My Computer\HKEY_CURRENT_USER\Software\Helios\TextPad4\Tools\1
My Computer\HKEY_CURRENT_USER\Software\Helios\TextPad4\Tools\2
And then modify the "Command" name-value pairs to explicitly write out the path to jdk 1.3.1. Now, this is registry hacking, and you should be damn sure you know what you're doing before trying it, but that's what I've done to get around TextPad inadequacies in this matter.
2) As for Windows 98, to set environment variables, edit the:
autoexec.bat
file, and add/alter the command to set the variable you want. For example:
SET CLASSPATH=.;C:\Java\classfiles\
Please note that in this example, there are actually two semicolon-delimited values: the first '.' character denotes whatever the current directory happens to be. You should also be aware of the fact that Win 98 often has trouble wrapping it's head around paths with spaces in them, such as:
"C:\Program Files\TextPad\"
I run Win2K, so I really have no idea how to deal with that issue, but I know windows often deals with it like:
"C:\PROGRA~1\TEXTPAD\"
Hope this helps...
C:\...jdk1.3.1\bin\
This will force windows to search that directory before all others to look for java.exer and javac.exe. If this doesn't work, you can always modify in the registry the actual commands executed by TextPad for Compile Java, Run Java Application, and Run Java Applet. This requires you to find in the registry keys:
My Computer\HKEY_CURRENT_USER\Software\Helios\TextPad4\Tools\0
My Computer\HKEY_CURRENT_USER\Software\Helios\TextPad4\Tools\1
My Computer\HKEY_CURRENT_USER\Software\Helios\TextPad4\Tools\2
And then modify the "Command" name-value pairs to explicitly write out the path to jdk 1.3.1. Now, this is registry hacking, and you should be damn sure you know what you're doing before trying it, but that's what I've done to get around TextPad inadequacies in this matter.
2) As for Windows 98, to set environment variables, edit the:
autoexec.bat
file, and add/alter the command to set the variable you want. For example:
SET CLASSPATH=.;C:\Java\classfiles\
Please note that in this example, there are actually two semicolon-delimited values: the first '.' character denotes whatever the current directory happens to be. You should also be aware of the fact that Win 98 often has trouble wrapping it's head around paths with spaces in them, such as:
"C:\Program Files\TextPad\"
I run Win2K, so I really have no idea how to deal with that issue, but I know windows often deals with it like:
"C:\PROGRA~1\TEXTPAD\"
Hope this helps...
Re: How to run different java application
I had a similar problem.
I couldn't start java or javac from textpad.
The modification of the registry key Command in the path specified fixed the problem for me...
For me the entry was changed to "C:\j2sdk1.4.0_03\bin\javac.exe"
Thanks!
/M
I couldn't start java or javac from textpad.
The modification of the registry key Command in the path specified fixed the problem for me...
For me the entry was changed to "C:\j2sdk1.4.0_03\bin\javac.exe"
Thanks!
/M