1 Reply Latest reply on Aug 14, 2013 5:30 AM by wdfink

    Unable to locate an executable at "/usr/bin/java/bin/java" (-1)

    joenicora

      After recently installing Grails for a new project, my jboss install will not run. I get the following after running ./run.sh

       

      Workhog:bin joenicora$ =========================================================================

       

       

        JBoss Bootstrap Environment

       

       

        JBOSS_HOME: /opt/jboss

       

       

        JAVA: /usr/bin/java

       

       

        JAVA_OPTS: -Dprogram.name=run.sh -Xms1024m -Xmx3072m -XX:MaxPermSize=1024m -Dorg.jboss.resolver.warning=true -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000

       

       

        CLASSPATH: /opt/jboss/bin/run.jar

       

       

      =========================================================================

       

       

      Unable to locate an executable at "/usr/bin/java/bin/java" (-1)

       

       

      OSX 10.7.5

       

      java version "1.6.0_51"

       

      my bash_profile:

      export  JAVA_HOME=/Library/Java/Home

       

       

      The path in this part of the message doesn't look right: "Unable to locate an executable at "/usr/bin/java/bin/java" (-1)". But changes to my bash_profile never update that path. Any idea what is causing this issue?

        • 1. Re: Unable to locate an executable at "/usr/bin/java/bin/java" (-1)
          wdfink

          Hello Joe,

           

          welcome to the forum.

           

          It looks like that the JAVA or JAVA_HOME is set to /usr/bin/java and there is no installation. Might be that the Grails installation remove it or set a wrong environment.

          You should logout and see whether it works with a new login.

          If not you should check the profiles where the wrong path for Java is set.