Skip to main content

developerWorks >  Open Source  >  Forums  >  IBM WebSphere Application Server Community Edition and Apache Geronimo  >  developerWorks

gserviceReg.sh unable to find Java on PATH    Point your RSS reader here for a feed of the latest messages in this thread


Tags for this thread: 

     

 
 

My developerWorks
 Welcome, Guest
Sign in or register
This question is not answered.

Permlink Replies: 1 - Pages: 1 - Last Post: Oct 29, 2009 10:49 PM Last Post By: viola.lu
David_Frahm

Posts: 32
Registered: Sep 28, 2005 01:48:37 PM
gserviceReg.sh unable to find Java on PATH
Posted: Oct 29, 2009 11:30:18 AM
 
Click to report abuse...   Click to reply to this thread Reply
I installed WASCE v2.1.1.3 after setting the included IBM Java 6 SDK on the PATH. Then I tried running gserviceReg.sh to install as a service.

That script failed, but the error message returned says, in part: "A Java implementation could not be found on the system PATH".

Anybody know if this should work, or if I'm just misinterpreting the documentation (again)?

As you can see by the output below, Java is set on the PATH, and it can be found:

login as: root
root@wasce01.teamhuber.com's password:
Last login: Thu Oct 29 09:20:17 2009 from 10.1.1.127
[root@wasce01 ~]# echo $PATH
/opt/ibm/java-i386-60/bin:/opt/ibm/java-i386-60/jre/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin
[root@wasce01 ~]# java -version
java version "1.6.0"
Java(TM) SE Runtime Environment (build pxi3260sr5-20090529_04(SR5))
IBM J9 VM (build 2.4, J2RE 1.6.0 IBM J9 2.4 Linux x86-32 jvmxi3260sr5-20090519_35743 (JIT enabled, AOT enabled)
J9VM - 20090519_035743_lHdSMr
JIT  - r9_20090518_2017
GC   - 20090417_AA)
JCL  - 20090529_01
[root@wasce01 ~]# cd /opt/IBM/WebSphere/AppServerCommunityEdition/bin/ 
[root@wasce01 bin]# ./gserviceReg.sh add wasce
ERROR:  Could not find a Java runtime.
 - Neither the JAVA_HOME nor the JRE_HOME environment variable is defined
 - A Java implementation could not be found on the system PATH
At least one of these is required for this program to execute.


After setting Java on the PATH for WASCE installer, its kinda kludgy if I have to set something else for the service installer.

Also, I'd really like to know what the script does with the Java it finds. Is that what it sets the service to use when running WASCE?

All this JRE scavenger hunt is really frustrating, so I'm taking the time to work out the most simple way to do this for a fresh WASCE install.
viola.lu

Posts: 51
Registered: Apr 29, 2008 10:19:22 PM
Re: gserviceReg.sh unable to find Java on PATH
Posted: Oct 29, 2009 10:49:01 PM   in response to: David_Frahm in response to: David_Frahm's post
 
Click to report abuse...   Click to reply to this thread Reply
Pls export JAVA_HOME=/opt/ibm/java-i386-60/, then it will work.thanks.
 Tags
Help

Use the search field to find all types of content in My developerWorks with that tag.

Use the slider bar to see more or fewer tags.

Popular tags shows the top tags for this particular type of content or application that you're viewing.

My tags shows your tags for this particular type of content or application that you're viewing.

 

MoreLess 


Point your RSS reader here for a feed of the latest messages in all forums