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
Getting Rapidminer studio license details from Java program
I am running rapidminer studio from java file and want to get the license information of currently installed Rapidminer Studio like license type, constraints and to whom the license is registered.
Here is the initial code. I need some help to get these information.
package rapidminer;
import com.lowagie.text.Annotation;
import com.rapidminer.Process;
import com.rapidminer.RapidMiner;
import com.rapidminer.operator.Operator;
import com.rapidminer.operator.OperatorException;
import com.rapidminer.operator.nio.ExcelExampleSource;
import com.rapidminer.tools.XMLException;
import java.io.File;
import java.io.IOException;
import com.rapidminer.license.License;
public class rapid {
public static void main(String[] args) {
try {
RapidMiner.setExecutionMode(RapidMiner.ExecutionMode.COMMAND_LINE);
RapidMiner.init();
} catch(Exception ex) {
ex.printStackTrace();
}
}
}
Tagged:
0
Answers
I did some research and got the license details using this java program
Output:-
license: com.rapidminer.core.license.OpenSourceLicense@2d801d8
Product Edition: Free (uninitialized)
Version: 8.1.000
rapidminer-studio
starter
limit: 10000
Number of logical processors: 1
But I am using an educational license and the output is clearly for free(uninitialized) version. Why is the output like this?
Hi @lplenka,
Have you started RapidMiner Studio once in GUI mode and checked if your license has been correctly identified there?
Hint: It is always displayed above the menu bar.
At least on Windows in your personal .RapidMiner\licenses\rapidminer-studio folder are all licenses stored which have ever been installed.
Is your educational license available there?
Best,
Edin
yes @Edin_Klapic I am using Linux and can find the license in "home/.Rapidminer/licenses/rapidminer-studio/" folder. It contains both my free license and educational license.
And yes I have started the GUI mode earlier. I always see "Educational License registered to xyz" in the splash screen.
It seems through java program "Rapidminer.init()" always opens the "Free (uninitialized)" version.
I tried the other way using "Rapidminer.init(Product product, LicenseLocation licenselocation)", that also didn't work.
Here is the extra part of code.
I might be doing something wrong here, but can't find it.
Hi,
this is how i get the active license in my word2vec extension:
where ProductContraintManager comes from
See: https://github.com/rapidminer/rapidminer-studio/blob/master/src/main/java/com/rapidminer/core/license/ProductConstraintManager.java
I guess that's what you need
Best,
Martin
Dortmund, Germany
Hi,
sadly I have to correct @mschmitz a little here. Since this is in an extension, this uses the fully initialized RapidMinerGUI, which uses a closed source license manager. If you simply integrate RM in your Java application, there will only be the OpenSource license manager which will always return the free license. You need to have an OEM license to use the closed source features.
What exactly is your use case for this if I may ask?
Cheers
Jan
@mschmitz thanks for your suggestion but incase you missed the first part of post, I have already used
and got OpenSource license.
Exactly! @jczogalla, I am getting the uninitialized i.e.OpenSource license everytime.
Is there any way to get the actual license whether Free, Educational or Large?
@jczogalla since you are asking about the use case, I actually wanted to check whoever using my app should atleast have a licensed version of rapidminer studio.
One workaround I can think of is checking the presence of valid licenses in "home/.Rapidminer/licenses/rapidminer-studio/" folder but there must be some robust way of doing this.
Any help would be appreciated