经网上查阅资料,是jdk版本过高导致的,我这里用的是jdk-8u121
下载地址:http://www.oracle.com/technetwork/java/javase/downloads/java-archive-javase8-2177648.html?ssSourceSiteId=otncn
java网盘地址:https://pan.baidu.com/s/1hs6clrm
cobaltstrike3.6破解版(后门自测):https://pan.baidu.com/s/1c2i3SNu
然后在kali上安装
解压安装包
tar -zxvf jdk-8u121-linux-x64.tar.gz
配置java环境
update-alternatives --install /usr/bin/java java /opt/jdk1.8.0_121/bin/java 1
update-alternatives --install /usr/bin/javac javac /opt/jdk1.8.0_121/bin/javac 1
update-alternatives --install /usr/lib/mozilla/plugins/libjavaplugin.so mozilla-javaplugin.so /opt/jdk1.8.0_121/jre/lib/amd64/libnpjp2.so 1
update-alternatives --set java /opt/jdk1.8.0_121/bin/java
update-alternatives --set javac /opt/jdk1.8.0_121/bin/javac
update-alternatives --set mozilla-javaplugin.so /opt/jdk1.8.0_121/jre/lib/amd64/libnpjp2.so
查看java版本
java -version