On 11/02/2011 11:09, Joris Van den Broeck wrote: > Hi, > > When I use the Java/ECLiPSe interface, I get > a java.lang.NumberFormatException > > java.lang.NumberFormatException: null > java.lang.NumberFormatException: null > at java.lang.Integer.parseInt(Integer.java:443) > at java.lang.Integer.parseInt(Integer.java:514) > at > com.parctechnologies.eclipse.OutOfProcessEclipse.<init>(OutOfProcessEclipse.java:82) > > OutOfProcessEclipse.java > > // Read the port number from the eclipseProcess' stdout > String portString = eclipseProcessStdout.readLine(); > > // Read the password from the eclipseProcess' stdout > String passwd = eclipseProcessStdout.readLine(); > > // make port string into an int > int port = Integer.parseInt(portString); > > > The java program I'm trying to run came with a windows version of ECLiPSe, I > changed that to the linux version (I'm using ubuntu) and it worked as it was > supposed to 2 days ago but now it suddenly throws an error. (while I didn't > changed anything to the code) Has anyone an idea what might be wrong? > Hi Joris, I am not that familiar with the Java interface, but the problem you are seeing is most likely because your Java program failed to start the ECLiPSe process -- in OutOfProcessEclipse, Java should start a new ECLiPSe, running as an separate process, and Java then establish communication with it -- the error you are seeing is showing that Java is not able to read the expected data from the ECLiPSe process, and the most likely reason is because the ECLiPSe process did not start correctly. This is obviously the problem when you tried to run the Windows version of ECLiPSe under Linux. Are you seeing the same error with your current problem? If you are, then try and figure out why Java might be unable to run ECLiPSe -- did you change anything in your environment? Cheers, Kish -- This e-mail may contain confidential and privileged material for the sole use of the intended recipient. Any review, use, distribution or disclosure by others is strictly prohibited. If you are not the intended recipient (or authorized to receive for the recipient), please contact the sender by reply e-mail and delete all copies of this message. Cisco Systems Limited (Company Number: 02558939), is registered in England and Wales with its registered office at 1 Callaghan Square, Cardiff, South Glamorgan CF10 5BT.Received on Fri Feb 11 2011 - 12:48:53 CET
This archive was generated by hypermail 2.3.0 : Wed Sep 25 2024 - 15:13:20 CEST