Solved

unable to start jboss - Java error

Posted on 2010-09-04
4
600 Views
Last Modified: 2013-12-02
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
0
Comment
Question by:atigris
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 40

Expert Comment

by:gurvinder372
ID: 33603663
can you post the contents of run.sh? especially where java home is specified.
Also please post the java_home env variable contents.
0
 
LVL 23

Accepted Solution

by:
Ajay-Singh earned 250 total points
ID: 33603784
>   JAVA: /opt/jdk1.6.0_16/bin/bin/java

You JAVA_HOME is pointing to wrong location. It should be /opt/jdk1.6.0_16
0
 
LVL 10

Assisted Solution

by:Hegemon
Hegemon earned 250 total points
ID: 33603805
/opt/jdk1.6.0_16/bin/bin/java - the path does not look correct. Perhaps the correct path is /opt/jdk1.6.0_16/. Set JAVA_HOME to this value, then run

set | grep JAVA_HOME

to make sure it is set correctly, then it should work.

0
 
LVL 6

Expert Comment

by:__geof__
ID: 33603823
may also be an error in run.conf. Can you post it too?
0

Featured Post

Easy, flexible multimedia distribution & control

Coming soon!  Ideal for large-scale A/V applications, ATEN's VM3200 Modular Matrix Switch is an all-in-one solution that simplifies video wall integration. Easily customize display layouts to see what you want, how you want it in 4k.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

756 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question