Hello. I had the JDK 1.3.1_01 installed on Win 98 laptop. I, uninstalled, the JDK 1.3.1_01 (along with the same JRE) through control panel-> add/remove programs.
I, then, upgraded Win98 to Windows 2000 Professional and installed the
Java 2 SDK 1.4.1_01 from
http://java.sun.com/j2se. I, also, installed the Java Runtime Environment (1.4.1_01) onto my Windows 2000 Professional operating system. I, then, went, into Control Panel, System/Advanced/Environment Variables, and created a JAVA_HOME user environmental variable pointing to:
c:\j2sdk1.4.1_01
and a PATH user environmental variable, in which, I put:
%JAVA_HOME%\bin
Now it works for "java" command from the command line, but "appletviewer" and "javac" give the following error:
C:\Java Programs>javac
Registry key 'Software\JavaSoft\Java Runtime Environment\CurrentVersion'
has value '1.4', but '1.3' is required.
Error: could not find java.dll
Error: could not find Java 2 Runtime Environment.
I fixed it by creating a "SET PATH=c:\j2sdk1.4.1_01\bin" in my autoexec.bat, but I am forced to run autoexec.bat, everytime I invoke the command prompt (which is very annoying).
If anyone can help me with this, I would be very grateful.
Sincerely yours,
Unnsse