Java does not update after changing PATH on AIX system

I am trying to upgrade java 1.6 to java 1.7 on my aix system.

I already installed java 1.7, but when I run java -version it appears as java 1.6.

I changed PATH using export PATH = $ PATH: / usr / java71 / jre / bin: / usr / java71 / bin but still does not work.

Does anyone know what I should do?

Thanks.

+4
source share
1 answer

PATH entries on the left take precedence over the right (they are searched first). Change

PATH=$PATH:/usr/java71/jre/bin:/usr/java71/bin

to something like

PATH=/usr/java71/jre/bin:/usr/java71/bin:$PATH
+2
source

Source: https://habr.com/ru/post/1625535/


All Articles