JavaInterface: OutOfProcessEclipse creation: java.lang.NumberFormatException: null

From: Cormac J. Gebruers <c.gebruers_at_4c.ucc.ie>
Date: Thu 04 Sep 2003 10:57:08 AM GMT
Message-Id: <1062673028.16009.7.camel@4c9.ucc.ie>
Hi,

Could someone kindly comment on the code below which throws the
following exception:

java.lang.NumberFormatException: null
        at java.lang.Integer.parseInt(Integer.java:436)
        at java.lang.Integer.parseInt(Integer.java:518)
        at com.parctechnologies.eclipse.OutOfProcessEclipse.<init>(OutOf
ProcessEclipse.java:61)
        at Eclipse_Test.<init>(Eclipse_Test.java:24)
        at Eclipse_Test.main(Eclipse_Test.java:37)



and the java code:



public class Eclipse_Test
{

public Eclipse_Test()
{
    try
    {
            File dirEclipse = new File("/usr/eclipse");

            // Create some default Eclipse options
            EclipseEngineOptions eclipseEngineOptions = new
EclipseEngineOptions(dirEclipse);

            // Object representing the Eclipse engine
            EclipseEngine eclipse;

            // Connect the Eclipse's standard streams to the JVM's
            eclipseEngineOptions.setUseQueues(false);

            // Initialise Eclipse LINE 24: POINT OF FAILURE!
            eclipse = new OutOfProcessEclipse(eclipseEngineOptions);

            // Write a message
            eclipse.rpc("write(output, 'hello world'), flush(output)");

            // Destroy the Eclipse engine
            ((OutOfProcessEclipse) eclipse).destroy();
    }
    catch(Exception e){ e.printStackTrace();}

}//constructor

public static void main(String[] args)
{       Eclipse_Test et = new Eclipse_Test();
}//main

}//class

Regards
Cormac
Received on Thu Sep 04 14:49:57 2003

This archive was generated by hypermail 2.1.8 : Wed 16 Nov 2005 06:07:25 PM GMT GMT