AlreadyRegisteredException?!
I was ready to launch my application for the first time and I got a com/rapidminer/license/AlreadyRegisteredException. Now, since I'm developing on the very same machine I've got RapidMiner installed on, what is he complaining for?!? RapidMiner is initialized like in the FAQ post, btw.
Thank you!
- git clone https://github.com/rapidminer/rapidminer-studio.git
- ... played around ...
- git reset --hard ; git clean -fxd
- cd .. ; mv rapidminer-studio rapidminer-studio-core ; cd rapidminer-studio-core
- chmod +x gradlew ; ./gradlew jar
- java -cp build/libs/rapidminer-studio-core-7.4.0.jar com.rapidminer.RapidMiner
-> java.lang.NoClassDefFoundError: com/rapidminer/license/AlreadyRegisteredException

Here is the trace when compiled jar is imported into a new project:
Program fails when setting the execution mode:
Exception in thread "main" java.lang.NoClassDefFoundError: com/rapidminer/license/AlreadyRegisteredException
at Main.main(Main.java:41)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:144)
Caused by: java.lang.ClassNotFoundException: com.rapidminer.license.AlreadyRegisteredException
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 6 more
Same problem is present in RM6.5. Is the error related to a license you mentioned before?
public static void main(String[] args) throws OperatorException, RepositoryException, IOException, XMLException {
// write your code here
System.setProperty("RAPIDMINER_HOME", "C:\\dev\\tools\\rapidminer-studio-master");
RapidMiner.setExecutionMode(RapidMiner.ExecutionMode.COMMAND_LINE);
RapidMiner.init();
...
If the version name consisted of "*-SNAPSHOT" the build proceeded and stucked at task generateGitRevFile with an error that a repository was not found. A quick fix consisted of commenting out the offending lines, manually defining the revision number and creating a file tmp/generateGitRev/gitrev. After that the build was successful.
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':jar'.
> Cannot create signed jar for rapidminer-studio-master. Missing keystore property.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Next step was was to make a process with the compiled rapidminer jar. The problem like described by Sguish was the exception described in the previous post.
Here are some config files:
build.gradle
gradle.properties
props.gradle
ps: I am missing something or there is no option how to attach a pic or file in the forum?

My stacktrace is very similar to Merto's:
If I comment the RapidMiner init() stuff, of course, it works.
Exception in thread "main" java.lang.NoClassDefFoundError: com/rapidminer/license/AlreadyRegisteredException
at rapidminerstuff.modelCore.init(modelCore.java:126)
at rapidminerstuff.TEVTree.init(TEVTree.java:27)
at rapidminerstuff.GUIMinerStuff.<init>(GUIMinerStuff.java:26)
at rapidminerstuff.RapidMinerStuff.main(RapidMinerStuff.java:21)
Caused by: java.lang.ClassNotFoundException: com.rapidminer.license.AlreadyRegisteredException
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 4 more
C:\PATH\executor-snippets\run.xml:53: Java returned: 1
BUILD FAILED (total time: 1 second)
Hi there,
I had the same problem building RapidMiner 7.4.0 on Kubuntu Linux.
After I manually added the files from
https://maven.rapidminer.com/content/groups/public/com/rapidminer/license/rapidminer-license-api/3.1.0/rapidminer-license-api-3.1.0.jar
to the rapidminer-studio-core-7.4.0.jar, the error message changed to
java.lang.NoClassDefFoundError: com/vlsolutions/swing/docking/ui/DockingUISettings
Seems like the required files are not included in the Jar package.
- git clone https://github.com/rapidminer/rapidminer-studio.git
- ... played around ...
- git reset --hard ; git clean -fxd
- cd .. ; mv rapidminer-studio rapidminer-studio-core ; cd rapidminer-studio-core
- chmod +x gradlew ; ./gradlew jar
- java -cp build/libs/rapidminer-studio-core-7.4.0.jar com.rapidminer.RapidMiner
-> java.lang.NoClassDefFoundError: com/rapidminer/license/AlreadyRegisteredException
Hi there,
I had the same problem building RapidMiner 7.4.0 on Kubuntu Linux.
After I manually added the files from
https://maven.rapidminer.com/content/groups/public/com/rapidminer/license/rapidminer-license-api/3.1.0/rapidminer-license-api-3.1.0.jar
to the rapidminer-studio-core-7.4.0.jar, the error message changed to
java.lang.NoClassDefFoundError: com/vlsolutions/swing/docking/ui/DockingUISettings
Seems like the required files are not included in the Jar package.