34
Views
4
Comments
error in running configurationtool.sh
Question

When I am running configurationtool.sh file I am getting error JAVA_HOME does not exist as a valid directory:/etc/alternatives/java_sdk_1.8.0

But I configured JAVA_HOME correctly

error.PNG
2023-02-10 19-42-59
João Melo
 
MVP

How have you configured java_home?

What do you get when you run echo $JAVA_HOME? 

UserImage.jpg
Balaji Boda

João Melo wrote:

How have you configured java_home?

What do you get when you run echo $JAVA_HOME? 



error1.PNG
UserImage.jpg
Balaji Boda

/usr/java/jdk1.8.0_171-amd64/

2018-11-09 21-28-38
Ricardo Cristino
Staff

Hi,

In my case, the problem was in the last step of 'Install Oracle's Java SDK' (from the checklist). 

After running: > sudo alternatives --config java, I didn't select the right path (/usr/java/jdk1.8.0_*/bin/java).

I hope this helps in future cases.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.