rapidminer-batch.sh on mac error

User: "Ryanda"
New Altair Community Member
Updated by Jocelyn
Hi, i need some help to fix this. i've searched for possible solution but still getting the same error.

i want to run a process using script in terminal, i opened a terminal from script folder directly and input this code:
sh rapidminer-batch.sh -f /Users/ryanda/Documents/Rapidminer/Alfa/test_write_from_database.rm
and then i got this error message:

<p>RAPIDMINER_HOME is not set. Trying the directory '/Applications/RapidMiner Studio.app/Contents/Resources/RapidMiner-Studio'...</p>
<p>Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/bind/DatatypeConverter</p>
<p><span>	at com.rapidminer.security.PluginSandboxPolicy.createPublicKey(PluginSandboxPolicy.java:161)</span></p>
<p><span>	at com.rapidminer.security.PluginSandboxPolicy.<clinit>(PluginSandboxPolicy.java:111)</span></p>
<p><span>	at com.rapidminer.launcher.CommandLineLauncher.main(CommandLineLauncher.java:309)</span></p>
<p>Caused by: java.lang.ClassNotFoundException: javax.xml.bind.DatatypeConverter</p>
<p><span>	at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:602)</span></p>
<p><span>	at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)</span></p>
<p><span>	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)</span></p>
<p><span>	... 3 more</span></p>

i found another post saying you need JDK 8 for rapidminer.
my rapidminer is version 9.6 and this is the java version i'm using:

<p>java version "1.8.0_241"</p>
<p>Java(TM) SE Runtime Environment (build 1.8.0_241-b07)</p>
<p>Java HotSpot(TM) 64-Bit Server VM (build 25.241-b07, mixed mode)</p>


Thanks,

Find more posts tagged with

Sort by:
1 - 1 of 11
    User: "rfuentealba"
    New Altair Community Member
    Accepted Answer
    Hello.

    What does the JAVA_HOME environment look like? That might be pointing to another version of Java.

    Perhaps if instead of using sh, you just give permissions to the rapidminer-batch.sh?

    All.the best,

    Rod.