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

Newbie issue: nothing on the console

dragodrago Member Posts: 1 Learner III
edited November 2018 in Help
Hello,

I am new to RapidMiner (I work with it since yesterday) and I am trying to integrate it in my bachelor project.

The problem is the following: when I add the RapidMiner project and when I call the init() method, absolutely nothing appears on the console - neither the RapidMiner intialization messages, nor my own output, no matter where I have put it.
public static void main(String[] args) throws Exception {
System.out.println("Hi!");
LogService.getGlobal().setVerbosityLevel(LogService.MAXIMUM);
RapidMiner.init();

String file = "E:\\Java\\workspace\\Diplomarbeit\\ethnicity_query.xml";

RapidMiner.setExecutionMode(RapidMiner.ExecutionMode.COMMAND_LINE);
System.out.println("Hi!");
Set<Example> results = new HashSet<Example>();

File xml = new File(file);

try {
Process process = new Process(xml);

IOContainer container = process.run();
ExampleSet exampleSet = container.get(ExampleSet.class);

Iterator<Example> iteratorExample = exampleSet.iterator();

while (iteratorExample.hasNext()) {
Example example = iteratorExample.next();

results.add(example);
}

} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (XMLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (OperatorException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
System.out.println("Hi!");
System.out.println(results.size());
}
This code prodices a blank console. Any ideas what might be causing it?

Thanks,
Drago

P.S. I am using Eclipse 3.6 Helios

Answers

  • landland RapidMiner Certified Analyst, RapidMiner Certified Expert, Member Posts: 2,531 Unicorn
    Hi,
    don't know why this happens. What happens if you start RapidMiner itself by starting RapidMinerGUI.main() `?

    Greetings,
      Sebastian
Sign In or Register to comment.