In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
After Linux modifies jdk, it does not take effect. Here is the solution:
1. Install jdk1.8.
two。 Modify the JAVA_HOME in / etc/profile to the new jdk path and execute source / etc/profile.
3. Execute java-version, which shows that jdk is still version 1.7.
4. Execute:
Which javawhich javac
Delete the java and javac files in the execution results of the above two instructions.
5. Execute:
Ln-s $JAVA_HOME/bin/java / usr/bin/javaln-s $JAVA_HOME/bin/javac / usr/bin/javac
6. Execute:
Source / etc/profile
7. Execute java-version and you can see that jdk is switched to version 1.8.
Note:
If you do not have permission to execute the error report java file, first set the permission to the java file: chmod upright x java.
These are the details of what to do if linux jdk does not take effect. Please pay more attention to other related articles!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 269
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.