I have a model with GMS extension. When I run that model with Gams studio, it run perfectly and I obtain the expected results. I have tried to run the GMS model with Gams IDE but I obtain a lot of errors, so, I have tried something different. I Have opened a file with GPR extension and after of that I have imported the GMS model and everything works perfectly when I run the project. I think I need to do same thing usinge Gams Java API, but I don't know how to import to my workspace a GPR file. In this moment I just have the next code:
GAMSWorkspace workspace = new GAMSWorkspace();
workspace.setDebugLevel(DebugLevel.KEEP_FILES);
GAMSJob jobGams = workspace.addJobFromFile("fileModelGms");
jobGams.run();
When I run that code, I obtain an error:
GAMS process returns unsuccessfully with return code : 2 [there was a compilation error]. Check \_gams_java_gjo1.lst] for more details.