I want to install Java JRE 1.4.2 or JDK 1.4.2 on a recent Amazon Linux server. The best option so far seems to install from source. However – where can I download this? I believe 1.4 is still from the Sun era, but I can't find it on the Oracle site, and the sun site is gone. Openjdk has no 1.4 download afaik.
Where can I download Java 1.4.2 source code?
As the goal is to get the installation working, other options are welcome. I tried to install the bin file, but got an error: cannot execute binary file.
Best Answer
This solution works on a 64 bit machine. Download j2sdk-1_4_2_19-linux-i586.bin from Oracle. Run it:
You can move this folder to
/opt/
or where you want it. After installing, you can check if it works:Then you may get the following error message:
Installing
glibc.i686
will fix this:Another try:
Output:
NB: this answer doesn't provide the source code, but gives a solution to installing Java 1.4.2, which was the underlying request.