Newbie issue: nothing on the console

drago
drago New Altair Community Member
edited November 5 in Community Q&A
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
Tagged:

Answers

  • land
    land New Altair Community Member
    Hi,
    don't know why this happens. What happens if you start RapidMiner itself by starting RapidMinerGUI.main() `?

    Greetings,
      Sebastian