launching from web url, onn x32 linux

The public knowledge pool and discussion forum of the OWS community. Do not post confidential information here!
ddyer
Posts: 9
Joined: 10 Jan 2021, 10:28

launching from web url, onn x32 linux

Post by ddyer »

similarly, launching directly form a web url doesn't work, but in a different way.

ddyer@kali:~/Downloads$ javaws https://boardspace.net/java/boardspace7.jnlp
Picked up _JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=on -Dswing.aatext=true
[ITW-CORE][2021-01-10 01:32:53.331 PST][INFO ][com.openwebstart.launcher.OpenWebStartLauncher] OWS main args [https://boardspace.net/java/boardspace7.jnlp].
[ITW-CORE][2021-01-10 01:32:53.581 PST][INFO ][com.openwebstart.launcher.PhaseTwoWebStartLauncher] Starting OpenWebStart 1.3.1
[ITW-CORE][2021-01-10 01:32:53.710 PST][INFO ][net.sourceforge.jnlp.config.DeploymentConfiguration] Ico provider registered correctly.
[ITW-CORE][2021-01-10 01:32:53.833 PST][INFO ][net.sourceforge.jnlp.config.DeploymentConfiguration] Ico provider registered correctly.
[ITW-CORE][2021-01-10 01:32:53.842 PST][INFO ][net.sourceforge.jnlp.config.DeploymentConfiguration] Loading USER level properties from: file:/home/ddyer/.config/icedtea-web/deployment.properties
[ITW-CORE][2021-01-10 01:32:53.862 PST][INFO ][net.sourceforge.jnlp.config.DeploymentConfiguration] Property 'ows.install4j.propertyUpdate' is unknown.
[ITW-CORE][2021-01-10 01:32:54.142 PST][INFO ][net.sourceforge.jnlp.config.DeploymentConfiguration] Loading USER level properties from: file:/home/ddyer/.config/icedtea-web/deployment.properties
[ITW-CORE][2021-01-10 01:32:54.153 PST][INFO ][net.sourceforge.jnlp.config.DeploymentConfiguration] Property 'ows.install4j.propertyUpdate' is unknown.
[ITW-CORE][2021-01-10 01:32:54.260 PST][INFO ][net.sourceforge.jnlp.config.DeploymentConfiguration] Saving properties into /home/ddyer/.config/icedtea-web/deployment.properties
[ITW-CORE][2021-01-10 01:32:54.374 PST][INFO ][net.sourceforge.jnlp.config.DeploymentConfiguration] Loading USER level properties from: file:/home/ddyer/.config/icedtea-web/deployment.properties
[ITW-CORE][2021-01-10 01:32:54.377 PST][INFO ][net.sourceforge.jnlp.config.DeploymentConfiguration] Property 'ows.install4j.propertyUpdate' is unknown.
[ITW-CORE][2021-01-10 01:32:54.388 PST][INFO ][com.openwebstart.launcher.PhaseTwoWebStartLauncher] Calling ITW Boot with args [https://boardspace.net/java/boardspace7.jnlp].
[ITW-CORE][2021-01-10 01:32:54.398 PST][INFO ][net.sourceforge.jnlp.runtime.EnvironmentPrinter] OpenWebStartLauncher called with args: [https://boardspace.net/java/boardspace7.jnlp].
[ITW-CORE][2021-01-10 01:32:54.403 PST][INFO ][net.sourceforge.jnlp.runtime.EnvironmentPrinter] OS: Linux
[ITW-CORE][2021-01-10 01:32:54.404 PST][INFO ][net.sourceforge.jnlp.runtime.EnvironmentPrinter] Java Runtime Oracle Corporation-1.8.0_212
[ITW-CORE][2021-01-10 01:32:55.554 PST][INFO ][net.sourceforge.jnlp.runtime.Boot] Proceeding with jnlp
[ITW-CORE][2021-01-10 01:32:55.566 PST][INFO ][net.sourceforge.jnlp.runtime.Boot] JNLP file location: https://boardspace.net/java/boardspace7.jnlp
[ITW-CORE][2021-01-10 01:32:55.940 PST][INFO ][net.adoptopenjdk.icedteaweb.resources.cache.LeastRecentlyUsedCache] isCached: https://boardspace.net/java/boardspace7.jnlp - (v: null) = true
[ITW-CORE][2021-01-10 01:32:57.650 PST][INFO ][net.adoptopenjdk.icedteaweb.resources.cache.LeastRecentlyUsedCache] isUpToDate: https://boardspace.net/java/boardspace7.jnlp - (v: null) = false
[ITW-CORE][2021-01-10 01:32:58.185 PST][INFO ][net.adoptopenjdk.icedteaweb.resources.cache.LeastRecentlyUsedCache] isUpToDate: https://boardspace.net/java/boardspace7.jnlp - (v: null) = false
[ITW-CORE][2021-01-10 01:32:58.589 PST][INFO ][net.adoptopenjdk.icedteaweb.xmlparser.MalformedXMLParser] Using MalformedXMLParser
[ITW-CORE][2021-01-10 01:32:59.798 PST][INFO ][net.sourceforge.jnlp.Parser] Homepage: null
[ITW-CORE][2021-01-10 01:32:59.799 PST][INFO ][net.sourceforge.jnlp.Parser] Description: Boardpace launcher using Java Web Start
[ITW-CORE][2021-01-10 01:32:59.805 PST][INFO ][net.sourceforge.jnlp.JNLPFile] Acceptable vendor tag found, contains: Boardspace.net
[ITW-CORE][2021-01-10 01:32:59.816 PST][INFO ][net.sourceforge.jnlp.Parser] good - your JRE - 1.8.0_212 - match requested JRE - 1.5+
[ITW-CORE][2021-01-10 01:33:01.208 PST][INFO ][com.openwebstart.launcher.OwsJvmLauncher] using java runtime at '/home/ddyer/.cache/icedtea-web/jvm-cache/azul_11.0.7' for launching managed application
[ITW-CORE][2021-01-10 01:33:01.252 PST][INFO ][com.openwebstart.launcher.OwsJvmLauncher] About to launch external with commands: '[/home/ddyer/.cache/icedtea-web/jvm-cache/azul_11.0.7/bin/java, -Xbootclasspath/a:/opt/OpenWebStart/openwebstart.jar, --add-exports=java.base/sun.net.www.protocol.jar=ALL-UNNAMED,java.desktop, --add-exports=java.base/jdk.internal.util.jar=ALL-UNNAMED,java.desktop, --add-exports=java.base/com.sun.net.ssl.internal.ssl=ALL-UNNAMED,java.desktop, --add-reads=java.naming=ALL-UNNAMED,java.desktop, --add-exports=java.desktop/sun.awt.X11=ALL-UNNAMED,java.desktop, --add-exports=java.desktop/sun.applet=ALL-UNNAMED,java.desktop,jdk.jsobject, --add-exports=java.base/sun.security.action=ALL-UNNAMED,java.desktop, --add-reads=java.base=ALL-UNNAMED,java.desktop, --add-exports=java.base/sun.net.www.protocol.http=ALL-UNNAMED,java.desktop, --add-exports=java.naming/com.sun.jndi.toolkit.url=ALL-UNNAMED,java.desktop, --add-exports=java.base/sun.security.util=ALL-UNNAMED,java.desktop, --add-reads=java.desktop=ALL-UNNAMED,java.naming, --add-exports=java.desktop/sun.awt=ALL-UNNAMED,java.desktop, --add-exports=java.base/sun.security.x509=ALL-UNNAMED,java.desktop, --add-exports=java.desktop/javax.jnlp=ALL-UNNAMED,java.desktop, --add-exports=java.base/sun.security.provider=ALL-UNNAMED,java.desktop, --add-exports=java.base/sun.security.validator=ALL-UNNAMED,java.desktop, net.sourceforge.jnlp.runtime.Boot, -Xnofork, https://boardspace.net/java/boardspace7.jnlp]'
Unrecognized option: --add-exports=java.base/sun.net.www.protocol.jar=ALL-UNNAMED,java.desktop
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
[ITW-CORE][2021-01-10 01:33:01.378 PST][INFO ][net.adoptopenjdk.icedteaweb.resources.cache.LeastRecentlyUsedCache] No other instances of javaws are running
ddyer@kali:~/Downloads$

Stephan Classen
Posts: 232
Joined: 27 Mar 2020, 09:55

Re: launching from web url, onn x32 linux

Post by Stephan Classen »

Ok this is a little bit confusing. The error claims that --add-export=... is not a valid option to a 11.0.7 JVM.

Can you please try and run the following command in a terminal:

/home/ddyer/.cache/icedtea-web/jvm-cache/azul_11.0.7/bin/java -Xbootclasspath/a:/opt/OpenWebStart/openwebstart.jar --add-exports=java.base/sun.net.www.protocol.jar=ALL-UNNAMED,java.desktop --add-exports=java.base/jdk.internal.util.jar=ALL-UNNAMED,java.desktop --add-exports=java.base/com.sun.net.ssl.internal.ssl=ALL-UNNAMED,java.desktop --add-reads=java.naming=ALL-UNNAMED,java.desktop --add-exports=java.desktop/sun.awt.X11=ALL-UNNAMED,java.desktop --add-exports=java.desktop/sun.applet=ALL-UNNAMED,java.desktop,jdk.jsobject --add-exports=java.base/sun.security.action=ALL-UNNAMED,java.desktop --add-reads=java.base=ALL-UNNAMED,java.desktop --add-exports=java.base/sun.net.www.protocol.http=ALL-UNNAMED,java.desktop --add-exports=java.naming/com.sun.jndi.toolkit.url=ALL-UNNAMED,java.desktop --add-exports=java.base/sun.security.util=ALL-UNNAMED,java.desktop --add-reads=java.desktop=ALL-UNNAMED,java.naming --add-exports=java.desktop/sun.awt=ALL-UNNAMED,java.desktop --add-exports=java.base/sun.security.x509=ALL-UNNAMED,java.desktop --add-exports=java.desktop/javax.jnlp=ALL-UNNAMED,java.desktop --add-exports=java.base/sun.security.provider=ALL-UNNAMED,java.desktop --add-exports=java.base/sun.security.validator=ALL-UNNAMED,java.desktop net.sourceforge.jnlp.runtime.Boot -Xnofork https://boardspace.net/java/boardspace7.jnlp

This is the same command that OpenWebStart tried to launch

ddyer
Posts: 9
Joined: 10 Jan 2021, 10:28

Re: launching from web url, onn x32 linux

Post by ddyer »

same result

Janak Mulani
Posts: 726
Joined: 24 Mar 2020, 13:37

Re: launching from web url, onn x32 linux

Post by Janak Mulani »

Just for information the app works with Java 11 on Windows 64.

Code: Select all

javaws https://boardspace.net/java/boardspace7.jnlp
Just to confirm you are using 32 bit linux and JVM is 32 bit azul_11.0.7, is this correct?

Thanks

Janak

ddyer
Posts: 9
Joined: 10 Jan 2021, 10:28

Re: launching from web url, onn x32 linux

Post by ddyer »

Yes.

I have a suspicion the problem is a "command line too long" type - not in java but somewhere
in the connective tissue..

Stephan Classen
Posts: 232
Joined: 27 Mar 2020, 09:55

Re: launching from web url, onn x32 linux

Post by Stephan Classen »

As a workaround you could limit the usage of a JVM less than 9.
You can do this by changing the JNLP:

<j2se version="1.8* 1.7* 1.6* 1.5*"/>

This will select the highest JVM version in the range 1.5 - 1.8

ddyer
Posts: 9
Joined: 10 Jan 2021, 10:28

Re: launching from web url, onn x32 linux

Post by ddyer »

That wouldn't be very satisfactory even if it worked, which it doesn't. Not satisfactory
because it's a public URL, and it would exclude people who are running newer versions
of java. But it doesn't work:

~/Desktop $ javaws https://boardspace.net/java/boardspacepi.jnlp
No suitable Java Virtual Machine could be found on your system.
The version of the JVM must be 1.8.
Please define INSTALL4J_JAVA_HOME to point to a suitable JVM.

Stephan Classen
Posts: 232
Joined: 27 Mar 2020, 09:55

Re: launching from web url, onn x32 linux

Post by Stephan Classen »

On my (64bit) machine it will pick a 1.8 instead of a 11 JVM with the above version string.

Stephan Classen
Posts: 232
Joined: 27 Mar 2020, 09:55

Re: launching from web url, onn x32 linux

Post by Stephan Classen »

Just out of curiosity. The OWS installer comes with a bundled 64bit JRE. How are you running this on a 32bit Linux??

ddyer
Posts: 9
Joined: 10 Jan 2021, 10:28

Re: launching from web url, onn x32 linux

Post by ddyer »

Stephan Classen wrote: 18 Jan 2021, 12:24 Just out of curiosity. The OWS installer comes with a bundled 64bit JRE. How are you running this on a 32bit Linux??
Beats me how it runs at all, but it turns out that the 32bit aspect is irrelevant. It does the same in a 64b environment

pi@pi:~/Desktop $ javaws https://boardspace.net/java/boardspace7.jnlp
No suitable Java Virtual Machine could be found on your system.
The version of the JVM must be 1.8.
Please define INSTALL4J_JAVA_HOME to point to a suitable JVM.
pi@pi:~/Desktop $

Stephan Classen
Posts: 232
Joined: 27 Mar 2020, 09:55

Re: launching from web url, onn x32 linux

Post by Stephan Classen »

From looking at all the log output you posted here. I have the very strong suspicion that your linux is not using openwebstart to launch the application.
Rather it finds some other javaws on the path (most likely an existing oracle java installation).

Can you make absolutely sure that it uses OWS by providing the full path to the executable in the console:

/opt/OpenWebStart/javaws https://boardspace.net/java/boardspace7.jnlp

ddyer
Posts: 9
Joined: 10 Jan 2021, 10:28

Re: launching from web url, onn x32 linux

Post by ddyer »

pi@pi:~ $ which javaws
/usr/local/bin/javaws
pi@pi:~ $ ls -al /usr/local/bin/javaws
lrwxrwxrwx 1 root root 24 Feb 11 11:32 /usr/local/bin/javaws -> /opt/OpenWebStart/javaws
pi@pi:~ $ javaws -version
No suitable Java Virtual Machine could be found on your system.
The version of the JVM must be 1.8.
Please define INSTALL4J_JAVA_HOME to point to a suitable JVM.
pi@pi:~ $ echo $INSTALL4J_JAVA_HOME
/usr/lib/jvm/java-11-openjdk-arm64/bin
pi@pi:~ $ export INSTALL4J_JAVA_HOME=/usr/lib/jvm/java-11-openjdk-arm64/
pi@pi:~ $ echo $INSTALL4J_JAVA_HOME
/usr/lib/jvm/java-11-openjdk-arm64/
pi@pi:~ $ javaws -version
No suitable Java Virtual Machine could be found on your system.
The version of the JVM must be 1.8.
Please define INSTALL4J_JAVA_HOME to point to a suitable JVM.

Stephan Classen
Posts: 232
Joined: 27 Mar 2020, 09:55

Re: launching from web url, onn x32 linux

Post by Stephan Classen »

There is a dedicated JVM with OpenWebStart. It is located in "/opt/OpenWebStart/jre"
Is it missing on your machine?

Post Reply