🎉Community Raffle - Win $25

An exclusive raffle opportunity for active members like you! Complete your profile, answer questions and get your first accepted badge to enter the raffle.
Join and Win

Problem distributing a NetBeans application that integrates with RapidMiner

User: "stelman"
New Altair Community Member
Updated by Jocelyn
Hi everyone!

I am trying to integrate rapidminer with java. I use NetBeans.

I load the rapidminer.jar and I can initialize RapidMiner properly by using Rapidminer.init(). Then, I successfuly load and run a process and get the results back.

However, this only runs successfuly in NetBeans. When I do a cleanbuild of the app, the end result is a single .jar for my application, along with a lib folder that contains the rapidminer.jar. When I open the application's jar RapidMiner won't initialize. Therefore, I can run my program only through NetBeans and I can't distribute it.

Any ideas why this might be? I tried setting the home directory and the rc file with the following code (because the wiki recommended something like that), because I thought that maybe the rapidminer.jar tries to look for some folders and libraries relative to the .jar's path. However, this didn't fix the problem. RapidMiner will still not initialize.

<code>
ParameterService.init();
       System.setProperty("rapidminer.home", "C:\\Program Files\\Rapid-I\\RapidMiner5");
       
       System.setProperty(RapidMiner.PROPERTY_RAPIDMINER_RC_FILE,
               "C:\\Program Files\\Rapid-I\\RapidMiner5\\resources\\com\\rapidminer\\resources\\rapidminerrc");
</code>

Thank you in advance for any help/assistance. I tried going through the forum and I also looked at the rapidminer wiki, but I couldn't solve this problem 2 days now. I wonder whether it has something to do with NetBeans and not RapidMiner.

Ideally, I'd like to be able to distribute my app without having to install RapidMiner on a new computer.  I thought that I could simply include the .jar and set the home and the rc file.

Find more posts tagged with