我需要在 Ubuntu 18.04 64 位操作系统上运行仅支持 jdk 1.5 32 位的基于 Web 的软件。如何在 Ubuntu 18.04 64 位上运行 jdk-1_5_0_06-linux-i586.bin?我需要使用 javaws 打开 JNLP 文件才能运行该软件。javaws 无法打开。
我已经尝试过以下方法,
sudo apt-get install lib32z1
sudo dpkg --add-architecture i386
sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386
sudo apt-get install multiarch-support
sudo apt-get install libx11-6:i386
当我从终端执行 javaws 时,它会停留在“java 加载”状态一段时间,然后失败
itadmin@MT-MRD:~/Desktop/java/jdk1.5.0_06/jre/bin$ ./javaws
itadmin@MT-MRD:~/Desktop/java/jdk1.5.0_06/jre/bin$ Exception in thread "main" java.lang.UnsatisfiedLinkError: /home/itadmin/Desktop/java/jdk1.5.0_06/jre/lib/i386/xawt/libmawt.so: libXext.so.6: cannot open shared object file: No such file or directory
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1647)
at java.lang.Runtime.load0(Runtime.java:769)
at java.lang.System.load(System.java:967)
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1668)
at java.lang.Runtime.loadLibrary0(Runtime.java:822)
at java.lang.System.loadLibrary(System.java:992)
at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:50)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Toolkit.loadLibraries(Toolkit.java:1509)
at java.awt.Toolkit.<clinit>(Toolkit.java:1530)
at com.sun.javaws.Main.main(Main.java:76)