IcedTea-Web
IcedTea-Web copied to clipboard
failure without JAVA_HOME env var
In OS X, portable, works great with JAVA_HOME set, without it:
% ./javaws.sh /Users/packrd/Downloads/roll-gen.jnlp
warning, using portable itw from /Users/packrd/Downloads/188/icedtea-web-image: -Xbootclasspath/a:/Users/packrd/Downloads/188/icedtea-web-image/share/icedtea-web/javaws.jar:/Users/packrd/Downloads/188/icedtea-web-image/share/icedtea-web/plugin.jar:/Users/packrd/Downloads/188/icedtea-web-image/share/icedtea-web/jsobject.jar:/Users/packrd/Downloads/188/icedtea-web-image/linux-deps-runtime/tagsoup.jar:/Users/packrd/Downloads/188/icedtea-web-image/linux-deps-runtime/js.jar /Users/packrd/Downloads/188/icedtea-web-image/bin/javaws.sh /Users/packrd/Downloads/188/icedtea-web-image/share/icedtea-web/javaws_splash.png
./javaws.sh: line 101: [: : integer expression expected
./javaws.sh: line 104: [: : integer expression expected
./javaws.sh: line 200: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.302.b08-0.el7_9.x86_64/jre/bin/java: No such file or directory
./javaws.sh: line 200: exec: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.302.b08-0.el7_9.x86_64/jre/bin/java: cannot execute: No such file or directory
What did you set your JAVA_HOME to start with? What is your reason for not setting JAVA_HOME? It seems ITW looks for jre to run the jnlp app first in JAVA_HOME. If JAVA_HOME is not set it tries to look for the jre in standard installation directories where one would install java. Do you have java installed at /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.302.b08-0.el7_9.x86_64/? Or where have you installed java on your machine?
I hadn't set it. It installs a java into /usr/bin/java so sometimes I don't end up "having" to set the environment variable.
$ ls /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.252.b09-2.el6_10.x86_64/jre/bin/java
ls: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.252.b09-2.el6_10.x86_64/jre/bin/java: No such file or directory
$ find / -name javac 2>/dev/null
/usr/bin/javac
/Library/Java/JavaVirtualMachines/amazon-corretto-8.jdk/Contents/Home/bin/javac
/System/Volumes/Data/Library/Java/JavaVirtualMachines/amazon-corretto-8.jdk/Contents/Home/bin/javac
# and some others from IntelliJ
Thanks!