11.2.0 Client on macOS with different Java versions

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

11.2.0 Client on macOS with different Java versions

TheQL
Hi,

I am coming from a working setup with OpenJDK8 and SwiftMQ client 11.1.0 running Explorer just fine.

I played around with my Java installations, removing OpenJDK8 and installing OpenJDK11, updated SwiftMQ client to 11.2.0.
I noticed the optional "java9" commandline parameter, but funny enough, it makes no obvious difference.

# bash -x ./explorer
+ OPENS=
+ '[' '' = java9 ']'
+ java -Xmx512M -cp ../../jars/jide.jar:../../jars/swiftmq.jar:../../jars/jndi.jar:../../jars/jms.jar:../../jars/dom4j-full.jar:../../jars/xstream.jar com.swiftmq.admin.explorer.Explorer
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.jidesoft.swing.JideTabbedPane (file:/Users/.../swiftmq_11_2_0_client/jars/jide.jar) to field javax.swing.JTabbedPane.visComp
WARNING: Please consider reporting this to the maintainers of com.jidesoft.swing.JideTabbedPane
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release

# bash -x ./explorer java9
+ OPENS=
+ '[' java9 = java9 ']'
+ OPENS='--add-opens=java.desktop/java.awt.font=ALL-UNNAMED --add-exports=java.desktop/com.sun.awt=ALL-UNNAMED --add-opens=java.base/java.text=ALL-UNNAMED --add-opens=java.base/java.lang.reflect=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED'
+ shift
+ java --add-opens=java.desktop/java.awt.font=ALL-UNNAMED --add-exports=java.desktop/com.sun.awt=ALL-UNNAMED --add-opens=java.base/java.text=ALL-UNNAMED --add-opens=java.base/java.lang.reflect=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED -Xmx512M -cp ../../jars/jide.jar:../../jars/swiftmq.jar:../../jars/jndi.jar:../../jars/jms.jar:../../jars/dom4j-full.jar:../../jars/xstream.jar com.swiftmq.admin.explorer.Explorer
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.jidesoft.swing.JideTabbedPane (file:/Users/.../swiftmq_11_2_0_client/jars/jide.jar) to field javax.swing.JTabbedPane.visComp
WARNING: Please consider reporting this to the maintainers of com.jidesoft.swing.JideTabbedPane
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release

The Explorer does appear to be working with both calls, nevertheless.

Additional info:
# /usr/libexec/java_home -V
Matching Java Virtual Machines (1):
    11, x86_64:	"AdoptOpenJDK 11"	/Library/Java/JavaVirtualMachines/adoptopenjdk-11.jdk/Contents/Home

/Library/Java/JavaVirtualMachines/adoptopenjdk-11.jdk/Contents/Home
Reply | Threaded
Open this post in threaded view
|

Re: 11.2.0 Client on macOS with different Java versions

IIT Software
Administrator
Did you update the jide.jar in your client? It has been updated in 11.2.0.

Works fine here.
Reply | Threaded
Open this post in threaded view
|

Re: 11.2.0 Client on macOS with different Java versions

TheQL
Just tried again with a fresh download of the .tar.gz from your website. Same issue. Maybe my OpenJDK version causes this? It's installed via "brew cask" from adoptopenjdk.

~/Downloads # stat swiftmq_11_2_0_client.tar.gz
16777220 23431601 -rw-r--r-- 1 user staff 0 21730988 "Oct 24 15:08:39 2018" "Oct 24 15:08:14 2018" "Oct 24 15:08:14 2018" "Oct 24 15:08:08 2018" 4096 43560 0 swiftmq_11_2_0_client.tar.gz
~/Downloads # tar xzf swiftmq_11_2_0_client.tar.gz
~/Downloads # cd swiftmq_11_2_0_client/scripts/unix
~/Downloads/swiftmq_11_2_0_client/scripts/unix # ./explorer
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.jidesoft.swing.JideTabbedPane (file:~/Downloads/swiftmq_11_2_0_client/jars/jide.jar) to field javax.swing.JTabbedPane.visComp
WARNING: Please consider reporting this to the maintainers of com.jidesoft.swing.JideTabbedPane
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
Reply | Threaded
Open this post in threaded view
|

Re: 11.2.0 Client on macOS with different Java versions

IIT Software
Administrator
./explorer java9
Reply | Threaded
Open this post in threaded view
|

Re: 11.2.0 Client on macOS with different Java versions

TheQL
Same result.

# ./explorer java9
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.jidesoft.swing.JideTabbedPane (file:~/Downloads/swiftmq_11_2_0_client/jars/jide.jar) to field javax.swing.JTabbedPane.visComp
WARNING: Please consider reporting this to the maintainers of com.jidesoft.swing.JideTabbedPane
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
Reply | Threaded
Open this post in threaded view
|

Re: 11.2.0 Client on macOS with different Java versions

IIT Software
Administrator
Strange, indeed as I don't get that.

Can you edit the explorer script and add this in front of the OPENS?

--add-opens=java.desktop/javax.swing=ALL-UNNAMED

We need to update our scripts for the next release then.
Reply | Threaded
Open this post in threaded view
|

Re: 11.2.0 Client on macOS with different Java versions

TheQL
That fixed it! Thanks!