简体   繁体   English

是否可以将java 1.4放在64位Ubuntu上?

[英]Is it possible to put java 1.4 on 64 bit Ubuntu?

I need to set up a legacy app that uses Tomcat 4 and runs using the 1.4 JDK. 我需要设置一个使用Tomcat 4并使用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. 我试图从Ubuntu 9.04上的sun下载站点安装linux JDK 1.4,但它不会安装。

Is it possible to install JDK 1.4 on the 64 bit version of Ubuntu? 是否可以在64位版本的Ubuntu上安装JDK 1.4?

When I try and install the j2sdk-1_4_2_19-linux-ia64.bin version i get the following error 当我尝试安装j2sdk-1_4_2_19-linux-ia64.bin版本时,我收到以下错误

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

Are you particular about 64bit Java 1.4 ? 您是否特别关注64位Java 1.4? I have tried with 32 bit Java 1.4 and it works. 我尝试使用32位Java 1.4并且它可以工作。 I clustered the web app to make use of more than 2GB memory. 我将Web应用程序集群化以使用超过2GB的内存。

SAP is paying extra to get just such a setup supported , so I assume that there is no technical limitation preventing it. SAP正在支付额外费用以获得支持这样的设置,因此我认为没有技术限制阻止它。 However, there may be licensing restrictions preventing it. 但是,可能存在阻止它的许可限制。

However, I'd recommend running it on a later JDK if possible. 但是,如果可能的话,我建议在以后的JDK上运行它。 Just because the code was compiled for an earlier version doesn't mean it won't run on the more recent JRE. 仅仅因为代码是为早期版本编译的,并不意味着它不会在更新的JRE上运行。

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). 如果安装了32位库,则可以在64位Linux上运行32位JVM没问题(当然,由于32位,最大进程大小有限)。 You don't need a VM, and possibly not even a chroot. 您不需要VM,甚至可能不需要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. 至少在Debian中,有一些包含32位libc和一些其他库的ia32-libs包,并且只需要运行JVM就不需要很多共享库。

j2sdk-1_4_2_19-linux-ia64.bin is for IA64, not AMD64 (x86_64)- they're completely different. j2sdk-1_4_2_19-linux-ia64.bin适用于IA64,而非AMD64(x86_64) - 它们完全不同。

Looks like this is launched in an incorrect manner. 看起来这是以不正确的方式启动。 The ELF string indicates an executable, but it's being launched as a shell script, ie sh xxxx.bin instead if ./xxxx.bin ; ELF字符串表示可执行文件,但它是作为shell脚本启动的,即sh xxxx.bin而不是./xxxx.bin ;

yeah 32 bit binaries are not going to work on a 64 bit system. 是的32位二进制文​​件不能在64位系统上工作。 You can put a 32 bit vm on the 64 bit ubuntu server (vmware player?) . 您可以在64位ubuntu服务器(vmware播放器?)上放置32位vm。 Then run tomcat inside of that. 然后在里面运行tomcat。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM