Solved

unable to start jboss - Java error

Posted on 2010-09-04
4
591 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
4 Comments
 
LVL 40

Expert Comment

by:gurvinder372
Comment Utility
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
Comment Utility
>   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
Comment Utility
/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__
Comment Utility
may also be an error in run.conf. Can you post it too?
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Suggested Solutions

Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

728 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now