Running a process from inside NetBeans

User: "Miritar_6"
New Altair Community Member
Updated by Jocelyn

Hello ^_^

i'm sorry but i guess i have the typical question , how can i run my process from inside the NetBeans

i know the problem here is in the path because i read a lot about this problem but no answer could really make me understand the solution

my code is

 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();

what is the exact path should i use here or using the other method

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()

thank you in advance

 

Find more posts tagged with

Sort by:
1 - 1 of 11
    User: "IngoRM"
    New Altair Community Member
    Accepted Answer

    Actually everything works as expected with the process loading.  But now you have a new problem: since you load the process without a repository connection now, you cannot resolve the path to your data (since the process is built from a string it does not know where it lives...).  Replace the data loading in your process with Read XYZ operator reading the data from a file with an absolute path reference and you should be fine...

     

    Again, you might also be able to load from the repository but then you need to let your program know where the repositories are... I unfortunately do not know how this is done but maybe somebody else does...

     

    Cheers,

    Ingo