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
"integrating rapidminer in java application"
simon_knoll
Member Posts: 40 Contributor II
hello @ all.
im trying to integrate rapidminer into a java application.
i have this small code snippet:
but i get this message:
regards
simon
im trying to integrate rapidminer into a java application.
i have this small code snippet:
i have rapidminer.jar and the textplugin within the eclipse buildpath
public static void main(String[] args) throws XMLException, IOException,
InstantiationException, IllegalAccessException,
OperatorCreationException {
RapidMiner.init(false, false, false, true);
Operator Performance = OperatorService
.createOperator(SingleDocumentInputOperator.class);
System.out.println(Performance.getOperatorDescription());
}
but i get this message:
could you please help me?
G Apr 20, 2010 2:53:39 PM: Property rapidminer.home is not set. Guessing.
G Apr 20, 2010 2:53:39 PM: Trying parent directory of '/home/simon/workspace/TestRapid/lib/rapidminer.jar'...gotcha!
G Apr 20, 2010 2:53:39 PM: [Warning] The jar file '/home/simon/workspace/TestRapid/lib/plugins/rapidminer-Text Processing-5.0.jar' does not contain an entry 'RapidMiner-Type' in its manifest and will therefore not be loaded (if this file actually is a plugin updating the plugin file might help).
G Apr 20, 2010 2:53:39 PM: ----------------------------------------------------
G Apr 20, 2010 2:53:39 PM: Initialization Settings
G Apr 20, 2010 2:53:39 PM: ----------------------------------------------------
G Apr 20, 2010 2:53:39 PM: Default system encoding for IO: UTF-8
G Apr 20, 2010 2:53:39 PM: Load core operators...
G Apr 20, 2010 2:53:39 PM: Load Weka operators: weka not found
G Apr 20, 2010 2:53:39 PM: Load JDBC drivers from lib directory: false
G Apr 20, 2010 2:53:39 PM: Load JDBC drivers from classpath: false
G Apr 20, 2010 2:53:39 PM: Load plugins: true
G Apr 20, 2010 2:53:39 PM: Load plugins from '/home/simon/workspace/TestRapid/lib/plugins'
G Apr 20, 2010 2:53:39 PM: ----------------------------------------------------
G Apr 20, 2010 2:53:39 PM: Trying rcfile '/home/simon/workspace/TestRapid/etc/rapidminerrc'...skipped
G Apr 20, 2010 2:53:39 PM: Trying rcfile '/home/simon/workspace/TestRapid/etc/rapidminerrc.Linux'...skipped
G Apr 20, 2010 2:53:39 PM: Trying rcfile '/home/simon/.rapidminer/4_6_0_rapidminerrc'...skipped
G Apr 20, 2010 2:53:39 PM: Trying rcfile '/home/simon/.rapidminer/4_6_0_rapidminerrc.Linux'...skipped
G Apr 20, 2010 2:53:39 PM: Trying rcfile '/home/simon/workspace/TestRapid/rapidminerrc'...skipped
G Apr 20, 2010 2:53:39 PM: Trying rcfile '/home/simon/workspace/TestRapid/rapidminerrc.Linux'...skipped
G Apr 20, 2010 2:53:39 PM: Trying rapidminer.rcfile. Property not specified...skipped
G Apr 20, 2010 2:53:41 PM: Loading operators from 'operators.xml'.
G Apr 20, 2010 2:53:43 PM: [Error] Cannot register 'Script': java.lang.NoClassDefFoundError: groovy/lang/Script
G Apr 20, 2010 2:53:43 PM: [Error] Cannot register 'ExcelExampleSetWriter': java.lang.NoClassDefFoundError: jxl/biff/DisplayFormat
G Apr 20, 2010 2:53:43 PM: [Error] Cannot register 'WekaModelLoader': java.lang.NoClassDefFoundError: weka/core/Instances
G Apr 20, 2010 2:53:44 PM: [Error] Cannot register 'NeuralNet': java.lang.NoClassDefFoundError: org/joone/engine/NeuralNetListener
G Apr 20, 2010 2:53:44 PM: [Error] Cannot register 'NeuralNetSimple': java.lang.NoClassDefFoundError: org/encog/neural/networks/Train
G Apr 20, 2010 2:53:50 PM: Loading JDBC driver information from 'resources:jdbc_properties.xml'.
G Apr 20, 2010 2:53:51 PM: [Error] Cannot initialize XML serialization. Probably the libraries 'xstream.jar' and 'xpp.jar' were not provided. XML serialization will not work!
G Apr 20, 2010 2:53:51 PM: Loading renderers from 'ioobjects.xml'.
G Apr 20, 2010 2:53:51 PM: [Warning] Cannot register renderer: java.lang.NoClassDefFoundError: org/joone/engine/InputPatternListener
G Apr 20, 2010 2:53:51 PM: [Warning] Cannot register renderer: java.lang.NoClassDefFoundError: org/encog/neural/data/NeuralData
Exception in thread "main" com.rapidminer.operator.OperatorCreationException: No operator description object given for 'com.rapidminer.operator.text.io.SingleDocumentInputOperator'
at com.rapidminer.tools.OperatorService.createOperator(OperatorService.java:564)
at Tomatos.main(Tomatos.java:18)
regards
simon
0
Answers
your RapidMiner version and Text Plugin version seem to be incompatible. Are you sure you have the latest Text Plugin from sourceforge?
Cheers,
Simon
but is this the right way how i use it?
i mean, normally i add libraries that i need to a lib folder within my eclipse project and then i add these libs to the classpath.
greetings
simon
this is the right way. RapidMiner does not know about your Eclipse classpath, so that does not matter at all. It searches for plugins in the lib/plugins folder.
Cheers,
Simon