Menu

#9 Fix "No such file or directory" error on Mac OSX with Java 1.7

Any
closed
nobody
None
5
2015-04-18
2014-07-23
No
--- MacOsXService.java.orig 2014-07-23 16:26:46.000000000 -0700
+++ MacOsXService.java  2014-07-23 16:26:55.000000000 -0700
@@ -107,7 +107,7 @@
            e.printStackTrace();
        }
        JavaHome javaHome = OperatingSystem.instance().getJavaHome(_config);
-       String java = System.clearProperty("java.home") + "/bin/java";
+       String java = System.getProperty("java.home") + "/bin/java";
        try
        {
            java = new File(java).getCanonicalPath();
1 Attachments

Discussion

  • rzo

    rzo - 2015-04-18

    thanks

     
  • rzo

    rzo - 2015-04-18
    • status: open --> closed
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.