[arch-general] ibm java installation path environment
Readers, IBM Java was installed into the directory 'usr/local': $ /usr/local/java/jre/bin/java -version java version "1.8.0" Java(TM) SE Runtime Environment (build pxi3280ea-20130422_01) IBM J9 VM (build 2.7, JRE 1.8.0 Linux x86-32 20130419_145797 (JIT enabled, AOT enabled) J9VM - R27_Java827_Beta_3_20130419_2138_B145797 JIT - r13.b02_20130419_36653 GC - R27_Java827_Beta_3_20130419_2138_B145797 J9CL - 20130419_145797) JCL - 20130410_01 based on Oracle jdk8-b80 The file 'bashrc' was edited: GNU nano 2.2.6 File: ./.bashrc # .bashrc # User specific aliases and functions # Source global definitions if [ -f /etc/bashrc ]; then . /etc/bashrc fi export PATH=$PATH:/usr/local/bin export JAVA_HOME=/usr/local/java/jre/bin/java After saving the bashrc file, sign-out and sign-in, the java program is not accessible via command terminal 'java -version', the entire path has to be entered. What is my mistake please?
Am 18.04.2014 14:35 schrieb "message" <letter@openmailbox.org>:
Readers,
IBM Java was installed into the directory 'usr/local':
$ /usr/local/java/jre/bin/java -version java version "1.8.0" Java(TM) SE Runtime Environment (build pxi3280ea-20130422_01) IBM J9 VM (build 2.7, JRE 1.8.0 Linux x86-32 20130419_145797 (JIT
enabled, AOT enabled)
J9VM - R27_Java827_Beta_3_20130419_2138_B145797 JIT - r13.b02_20130419_36653 GC - R27_Java827_Beta_3_20130419_2138_B145797 J9CL - 20130419_145797) JCL - 20130410_01 based on Oracle jdk8-b80
The file 'bashrc' was edited:
GNU nano 2.2.6 File: ./.bashrc
# .bashrc
# User specific aliases and functions
# Source global definitions if [ -f /etc/bashrc ]; then . /etc/bashrc fi export PATH=$PATH:/usr/local/bin export JAVA_HOME=/usr/local/java/jre/bin/java
After saving the bashrc file, sign-out and sign-in, the java program is not accessible via command terminal 'java -version', the entire path has to be entered.
What is my mistake please?
Hey, maybe you should try to also add the path to IBM Java to your path variable. Because only then it can be recognized. Best regards, Heiko Becker
On 2014-04-18 12:35, message wrote:
Readers,
IBM Java was installed into the directory 'usr/local':
$ /usr/local/java/jre/bin/java -version java version "1.8.0" Java(TM) SE Runtime Environment (build pxi3280ea-20130422_01) IBM J9 VM (build 2.7, JRE 1.8.0 Linux x86-32 20130419_145797 (JIT enabled, AOT enabled) J9VM - R27_Java827_Beta_3_20130419_2138_B145797 JIT - r13.b02_20130419_36653 GC - R27_Java827_Beta_3_20130419_2138_B145797 J9CL - 20130419_145797) JCL - 20130410_01 based on Oracle jdk8-b80
The file 'bashrc' was edited:
GNU nano 2.2.6 File: ./.bashrc
# .bashrc
# User specific aliases and functions
# Source global definitions if [ -f /etc/bashrc ]; then . /etc/bashrc fi export PATH=$PATH:/usr/local/bin export JAVA_HOME=/usr/local/java/jre/bin/java
After saving the bashrc file, sign-out and sign-in, the java program is not accessible via command terminal 'java -version', the entire path has to be entered.
What is my mistake please?
The path was changed to: export PATH=$PATH:/usr/local/bin:/usr/local/java/jre/bin/java but the command terminal 'java -version' is not recognised.
On 04/19/2014 04:35 PM, message wrote:
The path was changed to:
export PATH=$PATH:/usr/local/bin:/usr/local/java/jre/bin/java
but the command terminal 'java -version' is not recognised.
export PATH=$PATH:/usr/local/java/jre/bin/
On 19-04-2014 08.35, message wrote:
The path was changed to:
export PATH=$PATH:/usr/local/bin:/usr/local/java/jre/bin/java
but the command terminal 'java -version' is not recognised. ---end quoted text---
Hello, Try this: export PATH=$PATH:/usr/local/bin:/usr/local/java/jre Perhaps you would be more comfortable with another distribution like Ubuntu? HTH, Gavin. -- Gavin Costello gavcos@gmail.com
On 19-04-2014 08.35, message wrote:
The path was changed to:
export PATH=$PATH:/usr/local/bin:/usr/local/java/jre/bin/java
but the command terminal 'java -version' is not recognised. ---end quoted text---
Sorry, what I meant to say was this: export JAVA_HOME=/usr/local/java/jre export PATH=$PATH:$JAVA_HOME/bin Regards, Gavin. -- Gavin Costello gavcos@gmail.com
participants (4)
-
Gavin Costello
-
GSC
-
Heiko Becker
-
message