Friday, May 3, 2024
 Popular · Latest · Hot · Upcoming
7
rated 0 times [  7] [ 0]  / answers: 1 / hits: 14197  / 3 Years ago, fri, october 1, 2021, 9:26:26

I'm tring to install jdk 8 for weeks, but it fails.Following are some outputs,



sudo update-alternatives --config java



There is only one alternative in link group java (providing /usr/bin/java): /opt/java-oracle/jdk1.8.0/bin/java
Nothing to configure.


which java



   /usr/bin/java


java



 bash: /usr/local/java/jdk1.7.0_51/bin/java: No such file or directory


ls -l /usr/bin/java



 /usr/bin/java -> /etc/alternatives/java


ls -l /etc/alternatives/java



/etc/alternatives/java -> /opt/java-oracle/jdk1.8.0/bin/java


sudo update-alternatives --config javac




/opt/java-oracle/jdk1.8.0/bin/javac 1 manual mode




javac



  Error: could not find libjava.so
Error: Could not find Java SE Runtime Environment.


If you can please give me a help to slove this problem.
Thank You


More From » java

 Answers
0

I installed the jdk just fine. Here's what I did.




  1. Get the .rpm file from Oracle's website.


  2. Open up a terminal and type this command:sudo apt-get install alien


  3. Wait for alien to install.


  4. Type: sudo alien -i -c <path to the file>


  5. Wait for that to finish installing. It will look like it's not doing anything for a while, but it is.


  6. Test the installation with: java -version


  7. You're done!



[#24786] Friday, October 1, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
serveeel

Total Points: 347
Total Questions: 106
Total Answers: 117

Location: American Samoa
Member since Fri, Aug 26, 2022
2 Years ago
serveeel questions
;