https://www.cnblogs.com/suenshuai/p/9805040.html这个上面的完美的解决了我的问题 加入系统中自带了jdk,那么他的位置在/etc/alternatives/java_sdk_1.8.0