Seadas java problems (openjdk11 and oracle 12)

Use this Forum to find information on, or ask a question about, NASA Earth Science data.
Post Reply
cortivo
Posts: 20
Joined: Thu Mar 20, 2014 9:42 am America/New_York
Answers: 0

Seadas java problems (openjdk11 and oracle 12)

by cortivo » Thu Sep 05, 2019 9:14 am America/New_York

Hi,
Last version of Seadas (7.5.3) does not open using java openjdk11 or oracle 12. I'm using Debian Buster.
Java 8 from oracle is no longer available to download publically.
Using Java openjdk11 when I try to open Seadas by comand line I get this error and Seadas start to open but close soon

cortivo@cortivo:~$ seadas
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.thoughtworks.xstream.converters.collections.TreeMapConverter (file:/opt/seadas-7.5.3/lib/xstream-1.4.2.jar) to field java.util.TreeMap.comparator
WARNING: Please consider reporting this to the maintainers of com.thoughtworks.xstream.converters.collections.TreeMapConverter
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
2019/09/05 10:11:01
server ocssw root path: /opt/seadas-7.5.3/ocssw/scripts
Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: com/sun/java/swing/plaf/windows/WindowsLookAndFeel
  at com.jidesoft.plaf.LookAndFeelFactory.installJideExtension(Unknown Source)
  at com.jidesoft.plaf.LookAndFeelFactory.installJideExtension(Unknown Source)
  at com.jidesoft.plaf.LookAndFeelFactory.installJideExtension(Unknown Source)
  at com.jidesoft.swing.JideTabbedPane.updateUI(Unknown Source)
  at java.desktop/javax.swing.JTabbedPane.<init>(JTabbedPane.java:207)
  at com.jidesoft.swing.JideTabbedPane.<init>(Unknown Source)
  at com.bc.swing.desktop.TabbedDesktopPane.<init>(TabbedDesktopPane.java:64)
  at org.esa.beam.visat.VisatApp.createDesktop(VisatApp.java:405)
  at org.esa.beam.visat.VisatApp.initClient(VisatApp.java:374)
  at org.esa.beam.framework.ui.BasicApp.startUp(BasicApp.java:336)
  at gov.nasa.gsfc.seadas.SeadasMain$2.run(SeadasMain.java:137)
  at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:313)
  at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:770)
  at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
  at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:715)
  at java.base/java.security.AccessController.doPrivileged(Native Method)
  at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
  at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:740)
  at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
  at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
  at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
  at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
  at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
  at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)

Tags:

OB SeaDAS - knowles
Subject Matter Expert
Subject Matter Expert
Posts: 277
Joined: Mon Apr 07, 2008 4:40 pm America/New_York
Answers: 0

Seadas java problems (openjdk11 and oracle 12)

by OB SeaDAS - knowles » Thu Sep 05, 2019 10:15 am America/New_York

You can download java 8 here:
https://www.oracle.com/technetwork/java/javase/downloads/index.html

SeaDAS 7 does not support java versions later than java 8.  

Danny

gnwiii
Posts: 713
Joined: Fri Jan 29, 2021 5:51 pm America/New_York
Answers: 2
Has thanked: 1 time

Seadas java problems (openjdk11 and oracle 12)

by gnwiii » Thu Sep 05, 2019 1:38 pm America/New_York

Debian does not provide non-free software, but there are efforts to provide supported free JDK options, mainly but not exclusively based on openJDK: Java is still free.   If your site policy requires current support,
IBM's Java might be a suitable replacement.   SeaDAS 7.5.3 does run under the IBM jre:
java -version
java version "1.8.0_221"
Java(TM) SE Runtime Environment (build xx.xxx.xx.xx - pxa6480sr5fp40-20190807_01(SR5 FP40))
IBM J9 VM (build 2.9, JRE 1.8.0 Linux amd64-64-Bit Compressed References 20190802_424001 (JIT enabled, AOT enabled)
OpenJ9   - 106f6ce
OMR      - fe07f6f
IBM      - af2a365)
JCL - 20190712_01 based on Oracle jdk8u221-b11
 

ESA SNAP provides an Oracle Java runtime.   You can switch to the SNAP jre by editing the seadas script in the SeaDAS bin directory.
With SNAP installed in a user's home directory, the following change allows the jre to be shared between SNAP and SeaDAS-7:

$ diff seadas seadas-snapjre
4c4
< # INSTALL4J_JAVA_HOME_OVERRIDE=
---


> INSTALL4J_JAVA_HOME_OVERRIDE=$HOME/snap/jre


Post Reply