Can't build RapidMiner Studio Core from Source

klaus_freibergeklaus_freiberge Member Posts: 2 Newbie
edited December 2018 in Help
I need to set the rapid miner studio version to -SNAPSHOT to give my extension the necessary rights. 

I downloaded the source code from github and changed the version in gradle.properties.

I build the studio like it's recommended on github:
Build RapidMiner Studio Core from Source
  1. Clone rapidminer-studio using git into a folder named rapidminer-studio-core
  2. Execute gradlew jar
  3. The jar file is located in build/libs
Please have in mind that the jar file still require all dependencies listed in the build.gradle file.

But i when i try to execute the generated jar with:

java -jar rapidminer-studio-core-9.0.0-SNAPSHOT.jar
i get the following message:

no main manifest attribute, in rapidminer-studio-core-9.0.0-SNAPSHOT.jar
In the MANIFEST.MF is no Main-Class defined, but which do i need to add and how?


I also tried to import it into my IDE like it's recommended on github:

Import RapidMiner Studio Core into your IDE
  1. Your IDE has to support Gradle projects.
  2. Install Gradle 2.3+
  3. Install and configure a Gradle plugin for your IDE
  4. Import rapidminer-studio-core as a Gradle project
Start the RapidMiner Studio Core GUI
To start the graphical user interface of RapidMiner Studio Core create a new GuiLauncher.java file in src/main/java and run it with your IDE. If you want to use the generated jar, add the jar and all dependencies to the Java class path java -cp "all;required;jars" GuiLauncher. You can list the runtime dependencies by executing gradlew dependencies --configuration runtime.

But when i try to add the jar and all the dependencies to the java class path i get the error:

Could not find or load main class GuiLauncher
How can i solve at least one of these errors?

Tagged:

Comments

  • rfuentealbarfuentealba Moderator, RapidMiner Certified Analyst, Member Posts: 283   Unicorn
    Hello @klaus_freiberge,

    Have you created the GuiLauncher.java file in src/main/java? That file should contain something like this:
    import com.rapidminer.gui.RapidMinerGUI;

    public class GuiLauncher {
    public static void main(String args[]) throws Exception {
    System.setProperty(PlatformUtilities.PROPERTY_RAPIDMINER_HOME, Paths.get("").toAbsolutePath().toString());
    RapidMinerGUI.registerStartupListener(new ToolbarGUIStartupListener());
    RapidMinerGUI.main(args);
    }
    }
    Hope this helps,

    Rodrigo.
    jczogallamschmitz
  • klaus_freibergeklaus_freiberge Member Posts: 2 Newbie
    Yes i created exactly this class, but like i said i get the error "Could not find or load main class GuiLauncher".

Sign In or Register to comment.