Home > Java > I need to install jdk 1.4 for legacy program in linux ubuntu

I need to install jdk 1.4 for legacy program in linux ubuntu

PHPz
Release: 2024-02-09 20:15:44
forward
744 people have browsed it

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!

Question content

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?

Workaround

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!

source:stackoverflow.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template