Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

I installed java and set java_home to the new version but still pointing to the old version

ramani_chandran
Contributor
April 10, 2019

Java home variable was set to the new version 1.8 for jira and bitbucket, but after restart when looking for java -version it still points to the old version of 1.6

1 answer

1 accepted

0 votes
Answer accepted
Sloan
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 10, 2019

Hi @ramani_chandran 

Can you give us a few more info? Are you on Windows or Linux?

Generally this guide for Jira can help you: https://confluence.atlassian.com/adminjiraserver/installing-java-938846828.html

Cheers
Niklas

ramani_chandran
Contributor
April 10, 2019

Hi @Sloan N_ B_ ,

This is a linux server running on tomcat.

PFB details.

[jiraadmin@vvsl50579 ~]$ java -version
java version "1.6.0_41"
OpenJDK Runtime Environment (IcedTea6 1.13.13) (rhel-1.13.13.1.el6_8-x86_64)
OpenJDK 64-Bit Server VM (build 23.41-b41, mixed mode)

[jiraadmin@vvsl50579 ~]$ echo $JAVA_HOME
/vha/app/jdk1.8.0_74

PATH=/usr/lib64/qt-3.3/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/vha/home/jiraadmin/bin:/vha/app/jdk1.8.0_74/bin

JAVA_HOME=/vha/app/jdk1.8.0_74

Sloan
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 10, 2019

Have you refreshed profile after making changes to the java_home? 

source ~/.profile

ramani_chandran
Contributor
April 12, 2019

thanks @Sloan N_ B_ now its working fine.

Like Sloan likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events