Is it possible to put java 1.4 on 64 bit Ubuntu?
Asked Answered
L

5

6

I need to set up a legacy app that uses Tomcat 4 and runs using the 1.4 JDK.

I tried to install the linux JDK 1.4 from the sun download site on Ubuntu 9.04 but it wouldnt install.

Is it possible to install JDK 1.4 on the 64 bit version of Ubuntu?

When I try and install the j2sdk-1_4_2_19-linux-ia64.bin version i get the following error

./install.sfx.22146: 1: ��: not found
./install.sfx.22146: 1: ELF2�@@H�@8@@@@@@����@�@@@��������P: not found
./install.sfx.22146: 2: Syntax error: "(" unexpected

Leastways answered 4/6, 2009 at 21:15 Comment(4)
Have you tried running the app on a newer version of the JDK to see if it would work?More
Yes works fine in newer JVM but will have to deploy app on legacy server, with tomcat 4 JDK 1.4Leastways
Exactly which download did you use (provide link)? For Ubuntu you need the tar-distribution (if I recall correctly).Terpsichorean
I tried to install the j2sdk-1_4_2_19-linux-ia64.bin, but came up with an error ./install.sfx.22146: 1: ��: not found ./install.sfx.22146: 1: ELF2�@@H�@8@@@@@@����@�@@@��������P: not found ./install.sfx.22146: 2: Syntax error: "(" unexpectedLeastways
F
3

Are you particular about 64bit Java 1.4 ? I have tried with 32 bit Java 1.4 and it works. I clustered the web app to make use of more than 2GB memory.

Firstly answered 5/6, 2009 at 16:22 Comment(0)
A
0

SAP is paying extra to get just such a setup supported, so I assume that there is no technical limitation preventing it. However, there may be licensing restrictions preventing it.

However, I'd recommend running it on a later JDK if possible. Just because the code was compiled for an earlier version doesn't mean it won't run on the more recent JRE.

Ambiguity answered 4/6, 2009 at 21:29 Comment(1)
oh welll, doesnt look likely then. Just trying to duplicate the live environmnet, just neeed to use my windows vm then!Leastways
H
0

If you have 32-bit libraries installed, you can run a 32-bit JVM on a 64-bit Linux no problem (except of course the maximum process size is limited due to being 32-bit). You don't need a VM, and possibly not even a chroot. At least in Debian, there are ia32-libs packages that contain a 32-bit libc and a few other libraries, and you don't need a lot of shared libraries just to run the JVM.

j2sdk-1_4_2_19-linux-ia64.bin is for IA64, not AMD64 (x86_64)- they're completely different.

Heffron answered 11/6, 2009 at 13:5 Comment(0)
B
0

Looks like this is launched in an incorrect manner. The ELF string indicates an executable, but it's being launched as a shell script, i.e. sh xxxx.bin instead if ./xxxx.bin;

Bentham answered 11/6, 2009 at 13:10 Comment(0)
R
-1

yeah 32 bit binaries are not going to work on a 64 bit system. You can put a 32 bit vm on the 64 bit ubuntu server (vmware player?) . Then run tomcat inside of that.

Rechabite answered 11/6, 2009 at 12:38 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.