【发布时间】:2018-05-03 19:38:33
【问题描述】:
我需要帮助从 NetBeans 内部运行进程
你好。我想我有一个典型的问题,如何从 NetBeans 内部运行我的 RapidMiner 进程
我知道这里的问题出在路径上,因为我阅读了很多关于它的内容,但没有答案能让我真正理解解决方案
我的代码是
try {
RapidMiner.setExecutionMode(RapidMiner.ExecutionMode.COMMAND_LINE);
RapidMiner.init();
Process process = new Process (new File("C:\Users\SAR\.RapidMiner\repositories\Local Repository\processes"));//the problem is here and i can't access the repository
process.run();
} catch (IOException | XMLException | OperatorException ex) {
ex.printStackTrace();
}
我应该在这里使用或使用其他方法的确切路径是什么
RepositoryLocation loc = new RepositoryLocation("//Local Repository/Users/SAR/.RapidMiner/repositories/Local Repository/processesKNN2.rmp");//i know the path here is not working right too
Process process = new RepositoryProcessLocation(loc).load(null);
process.run()
提前谢谢你
【问题讨论】:
标签: java netbeans rapidminer