From: mooseydoom <moo...@gm...> - 2008-05-20 04:01:54
|
Index: /home/kristi/eclipse-3.3/plugin/src/org/vimplugin/VimServer.java =================================================================== --- /home/kristi/eclipse-3.3/plugin/src/org/vimplugin/VimServer.java (revision 239) +++ /home/kristi/eclipse-3.3/plugin/src/org/vimplugin/VimServer.java (working copy) @@ -37,7 +37,7 @@ private HashSet<AbstractVimEditor> editors = new HashSet<AbstractVimEditor>(); /** - * Initialise the class. + * Initialize the class. * * @param instanceID The ID for this VimServer. */ @@ -158,7 +158,12 @@ // starting gvim with Netbeans interface try { System.out.println("Trying to start vim"); - p = new ProcessBuilder(args).start(); + //p = new ProcessBuilder(args).start(); + // The ProcessBuilder doesn't seem to work for + // GCJ Java (v4.2.3-2ubuntu6) + // The Runtime.exec() function should work for all + // Java platforms + p = Runtime.getRuntime().exec(args); System.out.println("Started vim"); } catch (IOException e) { e.printStackTrace(); |