本文为原创文章,转载请注明出处,谢谢你……
配置步骤如下:
1.Ubuntu16.04安装最新版jdk8最新64位版本(请参阅http://www.cnblogs.com/wwyz/p/5560023.html);
2.安装好后设置jdk,执行语句如下:
命令说明:update-alternatives: --install needs <link> <name> <path> <priority>
update-alternatives --set <name> <path>
3. ubuntu:/$ sudo update-alternatives --set java /usr/jvm/jdk1815264/bin/java
4. ubuntu:/$ sudo update-alternatives --set javac /usr/jvm/jdk1815264/bin/javac
5. ubuntu:/$ sudo update-alternatives --set javaws /usr/jvm/jdk1815264/bin/javaws
6. ubuntu:/$ sudo update-alternatives --set jar /usr/jvm/jdk1815264/bin/jar
7. ubuntu:/$ sudo update-alternatives --set javah /usr/jvm/jdk1815264/bin/javah
8. ubuntu:/$ sudo update-alternatives --set javap /usr/jvm/jdk1815264/bin/javap
9.ubuntu:/$ sudo update-alternatives --install "/usr/bin/java" "java" "/usr/jvm/jdk1815264/bin/java" 300
10.ubuntu:/$ sudo update-alternatives --install "/usr/bin/javac" "javac" "/usr/jvm/jdk1815264/bin/javac" 300
11.ubuntu:/$ sudo update-alternatives --install "/usr/bin/javaws" "javaws" "/usr/jvm/jdk1815264/bin/javaws" 300
12.ubuntu:/$ sudo update-alternatives --install "/usr/bin/jar" "jar" "/usr/jvm/jdk1815264/bin/jar" 300
13.ubuntu:/$ sudo update-alternatives --install "/usr/bin/javap" "javap" "/usr/jvm/jdk1815264/bin/javap" 300
14.ubuntu:/$ sudo update-alternatives --install "/usr/bin/javah" "javah" "/usr/jvm/jdk1815264/bin/javah" 300
这个问题主要由于本人太蠢,自己的idea看java源码时候都是反编译的,哈哈
所有自己动手搞了一下
九江
本文为原创文章,转载请注明出处,谢谢你……
谢谢你
网友评论