The following procedure assumes that JDK 1.3.1 or JDK 1.4 software has been installed to the default location C:\j2sdkversion number, for example, C:\j2sdk1.4.
Edit the file c:\autoexec.bat.
Add the location of the JDK bin directory to the PATH statement.
For example, if the PATH statement in the autoexec.bat file is PATH=c:\windows;c:\windows\command, the new PATH statement would then be PATH=c:\windows;c:\windows\command;c:\j2version-number\bin where version-number is the JDK version.
For example:
PATH=c:\windows;c:\windows\command;C:\j2sdk1.4\bin
Separate each directory in the PATH statement with a semicolon as shown.
Save and close the file.