cannot access /usr/bin/java
Hi,
I hope you can help me with the following java problem that I have. I am running Linux MInt 17. I remove defualt openjdk installed and I put manually in /opt/java/jdk1.7.0_71 the oracle jdk1.7.
I run the following commands:
sudo update-alternatives --install "/usr/bin/java" "java" "/opt/java/jdk1.7.0_71/bin/java" 1
sudo update-alternatives --set java /opt/java/jdk1.7.0_71/bin/java
after that I run also for jdk1.6 to have these two options.
If I am runnig:
sudo update-alternatives --config java
I can see correclty installed alternatives above.
The problem apears after I want to run: java -version
I get the results as this command cannot be found. If I run: sudo java -version it runs correctly.
In the $PATH variable I can see the path: /usr/bin where the java symlink is.
All the above problem is also for javac. Could you please to clarify me what I am missing to understand the issue?
|