Problems loading additional libraries

steffensteffen Member Posts: 347 Maven
edited November 2018 in Help
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
Tagged:

Answers

  • landland RapidMiner Certified Analyst, RapidMiner Certified Expert, Member Posts: 2,531 Unicorn
    Hi Steffen,
    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
  • steffensteffen Member Posts: 347 Maven
    Hello 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
  • landland RapidMiner Certified Analyst, RapidMiner Certified Expert, Member Posts: 2,531 Unicorn
    Hi,
    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
Sign In or Register to comment.