The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here
Installation on ubuntu crashes with XML parser class loading issues
aleksandar_jovanov
Member Posts: 11 Contributor II
Hello fellow forum members.
I have tried following the previous guides but downgrading from OpenJDK 11 to OpenJDK 8 did not help and neither did --add-modules help with the dreaded XML parsing errors.
Here is my uname:
5.3.0-51-generic #44-Ubuntu SMP Wed Apr 22 21:09:44 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
Here is my OpenJDK version
openjdk version "1.8.0_252"
OpenJDK Runtime Environment (build 1.8.0_252-8u252-b09-1~19.10-b09)
OpenJDK 64-Bit Server VM (build 25.252-b09, mixed mode)
Here is the crash log
Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/bind/DatatypeConverter
at com.rapidminer.license.verification.JarVerifier.createPublicKey(JarVerifier.java:267)
at com.rapidminer.license.verification.JarVerifier.<clinit>(JarVerifier.java:137)
at com.rapidminer.launcher.GUILauncher.main(GUILauncher.java:286)
Caused by: java.lang.ClassNotFoundException: javax.xml.bind.DatatypeConverter
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
... 3 more
at com.rapidminer.license.verification.JarVerifier.createPublicKey(JarVerifier.java:267)
at com.rapidminer.license.verification.JarVerifier.<clinit>(JarVerifier.java:137)
at com.rapidminer.launcher.GUILauncher.main(GUILauncher.java:286)
Caused by: java.lang.ClassNotFoundException: javax.xml.bind.DatatypeConverter
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
... 3 more
This is newest version downloaded a few days ago, on an academic license.
As I need RapidMiner to do my homeworks I would be very glad if this were solved on a shorter notice.
Anyone has any idea how to fix?
Thank you all.
Stay healthy.
Tagged:
0
Best Answer
-
aleksandar_jovanov Member Posts: 11 Contributor IIFixed it by the followingAt line 49 I've addedJAVA=/usr/lib/jvm/java-8-openjdk-amd64/bin/javaAnd now it launches correctly.I assume my initial issue was due to having both fish and bash installed on my system so there was some mixup with global variables and configs between the two.I had one other problem that it causes my system RAM to overload on first run so I had to do a restart. On second start it offered to start without extensions, and without them it works correctly now.Thank you Marco for your help.0
Answers
I'm afraid you're still running it with a higher Java version than 8. That is the single one cause of that error.
When you type in java -version in the same shell you're starting the RapidMiner-Studio.sh with, what do you get? And what do you get when calling echo $JAVA_HOME?
Regards,
Marco
Selection Path Priority Status
------------------------------------------------------------
0 /usr/lib/jvm/java-11-openjdk-amd64/bin/java 1111 auto mode
1 /usr/lib/jvm/java-11-openjdk-amd64/bin/java 1111 manual mode
* 2 /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java 1081 manual mode
openjdk version "1.8.0_252"
OpenJDK Runtime Environment (build 1.8.0_252-8u252-b09-1~19.10-b09)
OpenJDK 64-Bit Server VM (build 25.252-b09, mixed mode)
/usr/lib/jvm/java-1.11.0-openjdk-amd64//bin/java (comes from echo $JAVA I've added)