My OutOfProcessEclipse parallelisation works now (thanks to Wit Jakuczun and Joachim Schimpf) .. but only in Windows. When porting the program to linux, i get the following error: java.lang.NumberFormatException: null at java.lang.Integer.parseInt(Unknown Source) at java.lang.Integer.parseInt(Unknown Source) at com.parctechnologies.eclipse.OutOfProcessEclipse.<init>(OutOfProcessEclipse.java:82) called by System.setProperty("eclipse.directory", ECLIPSE_DIR); eclipseEngineOptions = new EclipseEngineOptions(); eclipseEngineOptions.setUseQueues(false); eclipseEngineOptions.setGlobalSize(64); eclipseEngineOptions.setLocalSize(64); // Initialise Eclipse try { eclipse = new OutOfProcessEclipse(eclipseEngineOptions); //ERROR System.out.println("Compiling \""+ECLIPSE_SOURCE_DIR+"\""); eclipse.compile(new File(ECLIPSE_SOURCE_DIR)); eclipse.rpc("use_module(prolog_reasoner)"); } catch (EclipseException e) { // TODO Auto-generated catch block e.printStackTrace(); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } When looking into the eclipse clp source code, the relevant lines are: 75 // Read the port number from the eclipseProcess' stdout 76 String portString = eclipseProcessStdout.readLine(); 81 // make port string into an int 82 int port = Integer.parseInt(portString); Exactly the same init with Embedded Eclipse works. I also tried reinstalling eclispe clp and updated it to the latest ftp version (150). best regards Christian WirthReceived on Mon Jun 28 2010 - 14:23:10 CEST
This archive was generated by hypermail 2.3.0 : Wed Sep 25 2024 - 15:13:20 CEST