简体   繁体   English

在Debian Xfce系统上使用install4j安装Java应用程序时出现问题

[英]Problems installing java application with install4j on debian Xfce system

I´m trying to install a commercial java application which comes with a install4j setup on a fresh Debian 9.3 VM (AMD64) running Xfce. 我正在尝试在运行Xfce的全新Debian 9.3 VM(AMD64)上安装带有install4j设置的商业Java应用程序。

# chmod +x setupLinux.sh
# ./setupLinux.sh -J- DJava.awt.headless=true
Unpacking JRE ...
Preparing JRE ...
Starting Installer ...
java.lang.NoClassDefFoundError: java.awt.Container    
at com.install4j.runtime.installer.frontend.headless.AbstractHeadlessScreenExecutor.init(AbstractHeadlessScreenExecutor.java:67)
at com.install4j.runtime.installer.frontend.headless.ConsoleScreenExecutor.<init>(ConsoleScreenExecutor.java:24)
at com.install4j.runtime.installer.frontend.headless.InstallerConsoleScreenExecutor.<init>(InstallerConsoleScreenExecutor.java:6)
at com.install4j.runtime.installer.Installer.getScreenExecutor(Installer.java:92)
at com.install4j.runtime.installer.Installer.runInProcess(Installer.java:58)
at com.install4j.runtime.installer.Installer.main(Installer.java:46)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

According to this post I Installed lib32z1 and lib32ncurses5 as ia32-libs are not available anymore. 根据这篇文章,我安装了lib32z1和lib32ncurses5,因为ia32-libs不再可用。

I´ve installed LibXtst as mentioned in this post. 如本文所述,我已经安装了LibXtst

# locate libXtst
/usr/lib/i386-linux-gnu/libXtst.so.6  
/usr/lib/i386-linux-gnu/libXtst.so.6.1.0  
/usr/lib/x86_64-linux-gnu/libXtst.so.6  
/usr/lib/x86_64-linux-gnu/libXtst.so.6.1.0

but the error persists. 但错误仍然存​​在。

Any help is appreciated. 任何帮助表示赞赏。 Cheers 干杯

Edit 2: 编辑2:
The application comes bundled with Oracle-Java 8.x. 该应用程序与Oracle-Java 8.x捆绑在一起。
The server has: 服务器具有:

java -version
openjdk version "1.8.0_151"
OpenJDK Runtime Environment (build 1.8.0_151-8u151-b12-1~deb9u1-b12)
OpenJDK 64-Bit Server VM (build 25.151-b12, mixed mode)

My dear, sorry 亲爱的,对不起

starting with no parameters brought up 从不带任何参数开始

./setupLinux.sh /?
Unpacking JRE ...
Preparing JRE ...
Starting Installer ...
java.lang.UnsatisfiedLinkError: /home/stefan/Dokumente/Temp/setupLinux.sh.9370.dir/jre/lib/i386/libawt_xawt.so: libXrender.so.1: Kann die Shared-Object-Datei nicht öffnen: Datei oder Verzeichnis nicht gefunden
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1938)

So: 所以:

# apt install install libxrender1

solved my issue. 解决了我的问题。

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

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