reloc>j2se>bin folder and another folder SUNJ3rt>reloc>j2se>jre>bin, and the SDK is obviously located in SUN"/> reloc>j2se>bin folder and another folder SUNJ3rt>reloc>j2se>jre>bin, and the SDK is obviously located in SUN">
php editor Yuzai provides you with a solution. To install JDK 1.4 version for legacy programs in Linux Ubuntu system, you can follow the steps below. First, make sure your system is connected to the internet. Then, open a terminal and execute the following command: sudo apt-get update to update the package list. Next, run the command sudo apt-get install openjdk-7-jdk to install the OpenJDK 7 version. After the installation is complete, you can enter the java -version command in the terminal to confirm whether the JDK version is installed correctly. If you need to install JDK 1.4, you can download the applicable installation package by searching and follow the installation guide provided. After completion, you can enter the java -version command in the terminal to verify whether the JDK 1.4 version is successfully installed. Hope the above solutions are helpful to you!
I tried to install java 1.4 for an old program and downloaded it from Oracle official website. But the content directory structure of the tar.Z file is a bit messed up and I tried putting it into Eclipse (via >Window>Preferences>Installed JRE> ) without success. Directory within jdk 1.4:
This is the folder structure of the downloaded version, which is very different from the original version. For example, in "SUNWj3rt", there is a java exec in the SUNJ3rt>reloc>j2se>bin folder and another folder SUNJ3rt>reloc>j2se>jre>bin, and the SDK is obviously located in SUNWj3dev>reloc/j2se/bin (javac, etc. ), but I've tried a lot of ways to get it into Eclipse but it's not recognized via the "JRE_home" or "External JAR" options. Does anyone else know how to deal with it or is there any other way to install jdk 1.4 instead of ORACLE website?
I suspect that the tar you downloaded contains the JDK 1.4 version for Solaris rather than Linux.
Please note that it depends on your testing whether older Java 1.4 distributions will run correctly in newer Linux distributions.
The above is the detailed content of I need to install jdk 1.4 for legacy program in linux ubuntu. For more information, please follow other related articles on the PHP Chinese website!