Discussion:
[jboss-user] [Beginner's Corner] - Unable to locate an executable at "/usr/bin/java/bin/java" (-1)
Joe Nicora
2013-08-13 16:38:10 UTC
Permalink
Joe Nicora [https://community.jboss.org/people/joenicora] created the discussion

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

To view the discussion, visit: https://community.jboss.org/message/832534#832534

--------------------------------------------------------------
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?
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/832534#832534]

Start a new discussion in Beginner's Corner at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2075]
Wolf-Dieter Fink
2013-08-14 09:30:22 UTC
Permalink
Wolf-Dieter Fink [https://community.jboss.org/people/wdfink] created the discussion

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

To view the discussion, visit: https://community.jboss.org/message/832605#832605

--------------------------------------------------------------
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.
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/832605#832605]

Start a new discussion in Beginner's Corner at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2075]
Loading...