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
Problems loading additional libraries
Hello RapidMiner Team
I have developed a small plugin which relies on an external java library. After a checkout of the RapidMinerGui.bat - file I decided it were the easiest way to copy the jar-file to the RAPIDMINER_HOME/libs directory. Using RapidMinerGUI.bat as startup file works perfectly, but executing the RapidMiner.exe from the windows-community edition results (as far as I see) not in the loading of the mentioned library.
Is this possible or am I simply on the wrong track ?
Putting the library on the CLASSPATH manually does not work also, since you are not using the value of CLASSPATH (as far as I see).
Is this a bug or an intended behaviour ? I am just curious...
kind regards,
Steffen
I have developed a small plugin which relies on an external java library. After a checkout of the RapidMinerGui.bat - file I decided it were the easiest way to copy the jar-file to the RAPIDMINER_HOME/libs directory. Using RapidMinerGUI.bat as startup file works perfectly, but executing the RapidMiner.exe from the windows-community edition results (as far as I see) not in the loading of the mentioned library.
Is this possible or am I simply on the wrong track ?
Putting the library on the CLASSPATH manually does not work also, since you are not using the value of CLASSPATH (as far as I see).
Is this a bug or an intended behaviour ? I am just curious...
kind regards,
Steffen
Tagged:
0
Answers
the common way to add external libraries is to include the defalted files into the jar file containing the plugin. We are using special ant targets to achieve this. You might take a look at the ant file of the Text Plugin, where this is done.
Greetings,
Sebastian
Thanks for the quick reply... I checked the Text Plugin ... I have got a bad feeling about this strategy, but I guess it is the easiest way.
Thanks again
kind regards,
Steffen
the problem is, that java does not support jars in jars. And since each plugin has its own class loader, this is not the easiest but the only way around.
But I share your feeling
Greetings,
Sebastian