Re: [arch-general] ibm java installation path environment
On 2014-04-20 12:54, arch-general-requ...@archlinux.org wrote: -- Message: 2 Date: Sat, 19 Apr 2014 20:32:34 +0200 From: Jelle van der Waa je...@vdwaa.nl Why are you using a custom java and not for example aur/jre or the openjdk packages in the normal repo. There is no special reason. IBM Java has been used for many years previously. Some people claim better performance in the past.
Re: [arch-general] ibm java installation path environment
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.
Re: [arch-general] ibm java installation path environment
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/
Re: [arch-general] ibm java installation path environment
On 2014-04-18 12:42, arch-general-requ...@archlinux.org wrote: -- Message: 8 Date: Fri, 18 Apr 2014 14:42:40 +0200 From: Heiko Becker heikobecke...@gmail.com Subject: Re: [arch-general] ibm java installation path environment Am 18.04.2014 14:35 schrieb message let...@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 It is correct to add multiple paths to the export PATH command: export PATH=$PATH:/usr/local/bin:/usr/local/java/jre/bin/java -- digest-mode subscriber; please cc to maintain message thread
Re: [arch-general] ibm java installation path environment
Then you shouldn' t be using archlinux.
Re: [arch-general] ibm java installation path environment
On 2014-04-19 08:35, arch-general-requ...@archlinux.org wrote: -- Message: 7 Date: Sat, 19 Apr 2014 08:35:16 + From: message let...@openmailbox.org Subject: Re: [arch-general] ibm java installation path environment 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. java recognition fails after change of the file and sign-out, sign-in: # .bashrc # User specific aliases and functions # Source global definitions if [ -f /etc/bashrc ]; then . /etc/bashrc fi export PATH=$PATH:/usr/local/java/jre/bin/java export JAVA_HOME=/usr/local/java/jre/bin/java Any other advice please? -- digest-mode subscriber; please cc to maintain message thread
Re: [arch-general] ibm java installation path environment
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 gav...@gmail.com
Re: [arch-general] ibm java installation path environment
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 gav...@gmail.com
Re: [arch-general] ibm java installation path environment
On 2014-04-19 11:47, arch-general-requ...@archlinux.org wrote: -- Message: 8 Date: Sat, 19 Apr 2014 11:47:21 + From: message let...@openmailbox.org Subject: Re: [arch-general] ibm java installation path environment 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. java recognition fails after change of the file and sign-out, sign-in: # .bashrc # User specific aliases and functions # Source global definitions if [ -f /etc/bashrc ]; then . /etc/bashrc fi export PATH=$PATH:/usr/local/java/jre/bin/java export JAVA_HOME=/usr/local/java/jre/bin/java Have also tried: ... export PATH=$PATH:$JAVA_HOME/bin export JAVA_HOME=/usr/local/java/jre but also unsuccessful recognition of the java command.
Re: [arch-general] ibm java installation path environment
On 2014年04月19日 23:02, message wrote: Have also tried: ... export PATH=$PATH:$JAVA_HOME/bin export JAVA_HOME=/usr/local/java/jre but also unsuccessful recognition of the java command. Are you joking?
Re: [arch-general] ibm java installation path environment
On 2014-04-19 11:47, arch-general-requ...@archlinux.org wrote: -- Message: 7 Date: Sat, 19 Apr 2014 08:35:16 + From: message let...@openmailbox.org Subject: Re: [arch-general] ibm java installation path environment 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: No joke; latest bashrc edit: 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:$JAVA_HOME/bin export JAVA_HOME=/usr/local/java/jre In home directory, keyboard 'ja+TAB' (i.e. use unix auto-complete function) shows: $ ja jack_alias jack_monitor_client jack_bufsizejack_netsource jack_connectjack_property jack_disconnect jack_rec jack_evmon jack_samplerate jack_freewheel jack_server_control jack_impulse_grabberjack_session_notify jack_iodelayjack_showtime jack_latent_client jack_simple_client jack_load jack_simple_session_client jack_load_test jack_transport jack_lspjack_transport_client jack_metro jack_unload jack_midi_dump jack_wait jack_midiseqjackd jack_midisine jasper 'Java' does not appear in the list above, but java is installed as shown originally above. -- digest-mode subscriber; please cc to maintain message thread
Re: [arch-general] ibm java installation path environment
export PATH=$PATH:$JAVA_HOME/bin export JAVA_HOME=/usr/local/java/jre This is wrong, you can't use $JAVA_HOME *before* it is set. Also, you can always check $PATH in a shell with echo $PATH What are contents of /usr/local/java/jre/bin ? -- damjan
Re: [arch-general] ibm java installation path environment
On 2014-04-19 11:47, arch-general-requ...@archlinux.org wrote: -- Message: 8 Date: Sat, 19 Apr 2014 11:47:21 + From: message let...@openmailbox.org the bashrc file was changed: ... export JAVA_HOME=/usr/local/java/jre export PATH=$PATH:$JAVA_HOME/bin This solved the problem, my failure to write the export paths in the correct order. $ echo $PATH /usr/local/sbin:/usr/local/bin:/usr/bin:/usr/bin/vendor_perl:/usr/bin/core_perl:/usr/local/java/jre/bin $ ls /usr/local/java/jre/bin ControlPanel j9vm javad.options jdmpview klist rmid classic java javaw jextract ktabrmiregistry ikeycmd java_vm javaws keytool pack200 tnameserv ikeyman javadjcontrol kinit policytool unpack200 Thank you! :)
Re: [arch-general] ibm java installation path environment
On 04/19/14 at 11:23pm, GSC wrote: On 2014年04月19日 23:02, message wrote: Have also tried: ... export PATH=$PATH:$JAVA_HOME/bin export JAVA_HOME=/usr/local/java/jre but also unsuccessful recognition of the java command. Are you joking? Why are you using a custom java and not for example aur/jre or the openjdk packages in the normal repo. -- Jelle van der Waa signature.asc Description: Digital signature
Re: [arch-general] ibm java installation path environment
Am 18.04.2014 14:35 schrieb message let...@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