Link to home
Start Free TrialLog in
Avatar of atigris
atigris

asked on

unable to start jboss - Java error

I'm having an issue with starting jboss, when I start .run.sh script it gives me the following error

When I execute run.sh script found in  /root/downloads/jboss-4.2.2.GA/bin

[root@markt bin]# ./run.sh
=========================================================================

  JBoss Bootstrap Environment

  JBOSS_HOME: /root/downloads/jboss-4.2.2.GA

  JAVA: /opt/jdk1.6.0_16/bin/bin/java

  JAVA_OPTS: -Dprogram.name=run.sh -Xms128m -Xmx512m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Djava.net.preferIPv4Stack=true

  CLASSPATH: /root/downloads/jboss-4.2.2.GA/bin/run.jar

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

./run.sh: line 213: /opt/jdk1.6.0_16/bin/bin/java: No such file or directory

Open in new window


Java version

[root@markt bin]# java -version
java version "1.6.0"
OpenJDK  Runtime Environment (build 1.6.0-b09)
OpenJDK Client VM (build 1.6.0-b09, mixed mode)

Open in new window


which Java command
[root@markt bin]# which java
/usr/bin/java

Open in new window



I tired setting JAVA_HOME variable within ./run.sh script but I'm still getting the same error
Avatar of Gurvinder Pal Singh
Gurvinder Pal Singh
Flag of India image

can you post the contents of run.sh? especially where java home is specified.
Also please post the java_home env variable contents.
ASKER CERTIFIED SOLUTION
Avatar of Ajay-Singh
Ajay-Singh

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
may also be an error in run.conf. Can you post it too?