[eclipse-clp-users] OutOfProcessEclipse and Linux

From: Christian Wirth <tyrion_at_...215...>
Date: Mon, 28 Jun 2010 16:23:18 +0200
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)

called by

         System.setProperty("eclipse.directory", ECLIPSE_DIR);

         eclipseEngineOptions = new EclipseEngineOptions();

         // Initialise Eclipse
         try {
             eclipse = new OutOfProcessEclipse(eclipseEngineOptions); 
             System.out.println("Compiling \""+ECLIPSE_SOURCE_DIR+"\"");
             eclipse.compile(new File(ECLIPSE_SOURCE_DIR));

         } catch (EclipseException e) {
             // TODO Auto-generated catch block
         } catch (IOException e) {
             // TODO Auto-generated catch block

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 Wirth
Received on Mon Jun 28 2010 - 14:23:10 CEST

This archive was generated by hypermail 2.2.0 : Mon Jul 09 2018 - 02:05:29 CEST