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
"RM5: Exception when integrating into other Java Application"
Hi there,
I'm stuck in there for a while, trying to get RM run in another Application.
For this I constructed a class that initializes RM.
For testing I tried to start it like
(I can also set the rapidminer.home property by "System.setProperty("rapidminer.home", "C:\\Programme\\Rapid_I\\");" but this takes no visible effect on my problem.)
Are there any other propertys that I need to set?
The Rapidminer Source directiory is set in the classpath of my application.
(It's 5.0.8)
Any ideas here?
Greetings,
Markus
I'm stuck in there for a while, trying to get RM run in another Application.
For this I constructed a class that initializes RM.
For testing I tried to start it like
...When I launch the Application and Rapidminer shall be initialized, RM output is:
RapidMiner.init();
...
But at this point an exception is thrown:
2010-09-16 08:40:20 CONFIG: Locale not specified explicitly. Set default locale to US. (RapidMiner.init())
2010-09-16 08:40:20 CONFIG: Initializing I18N (RapidMiner.splashMessage())
2010-09-16 08:40:20 CONFIG: Ensuring RapidMiner Home is set (RapidMiner.splashMessage())
2010-09-16 08:40:20 INFO: Property rapidminer.home is not set. Guessing. (Launcher.ensureRapidMinerHomeSet())
2010-09-16 08:40:20 INFO: Trying base directory of classes (build) 'C:\Users\biti\workspace\project_home'...gotcha! (Launcher.ensureRapidMinerHomeSet())
2010-09-16 08:40:20 CONFIG: Reading Configuration Files (RapidMiner.splashMessage())
2010-09-16 08:40:20 CONFIG: Reading configuration resource com/rapidminer/resources/rapidminerrc. (ParameterService.loadAllRCFiles())
2010-09-16 08:40:20 CONFIG: Neither system property 'rapidminer.config.dir' nor environment variable 'RAPIDMINER_CONFIG_DIR' not set. Ignored. (ParameterService.getGlobalConfigDir())
The first line is a debugging part of my Application.
ERROR 16-09 08:40:20,923 - RapidMiner Model Applier - java.lang.NumberFormatException: For input string: "${rapidminer"
java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
java.lang.Integer.parseInt(Integer.java:449)
java.lang.Integer.parseInt(Integer.java:499)
com.rapidminer.gui.tools.VersionNumber.<init>(VersionNumber.java:80)
com.rapidminer.tools.ParameterService.getUserConfigFile(ParameterService.java:259)
com.rapidminer.tools.ParameterService.loadAllRCFiles(ParameterService.java:297)
com.rapidminer.tools.ParameterService.init(ParameterService.java:139)
com.rapidminer.tools.ParameterService.init(ParameterService.java:133)
com.rapidminer.RapidMiner.init(RapidMiner.java:384)
kettle.plugin.rm.RMMFA.init(RMMFA.java:90)
(I can also set the rapidminer.home property by "System.setProperty("rapidminer.home", "C:\\Programme\\Rapid_I\\");" but this takes no visible effect on my problem.)
Are there any other propertys that I need to set?
The Rapidminer Source directiory is set in the classpath of my application.
(It's 5.0.8)
Any ideas here?
Greetings,
Markus
Tagged:
0
Answers
after reloading and rebuilding the source and replacing some files, everything works. :-\
...
Close please