HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Apache Software Foundation\Procrun 2.0\Tomcat\Parameters\Java
Now you uncompress and move the whole uncompressed folder to /opt (optional) directory.
tar -xzvf /root/jdk-7u79-linux-x64.tar.gz
mv jdk1.7.0_79 /opt
Install and register binaries
This step registers the downloaded version of Java as an alternative, and switches it to be used as the default:
update-alternatives --install /usr/bin/java java /opt/jdk1.7.0_79/bin/java 1
update-alternatives --install /usr/bin/javac javac /opt/jdk1.7.0_79/bin/javac 1
update-alternatives --install /usr/lib/mozilla/plugins/libjavaplugin.so mozilla-javaplugin.so /opt/jdk1.7.0_79/jre/lib/amd64/libnpjp2.so 1
update-alternatives --set java /opt/jdk1.7.0_79/bin/java
update-alternatives --set javac /opt/jdk1.7.0_79/bin/javac
update-alternatives --set mozilla-javaplugin.so /opt/jdk1.7.0_79/jre/lib/amd64/libnpjp2.so
Testing your installation
First of all, close your browser and re-open. You won’t believe how many users actually forgets to do this step and later complains Java ain’t working. I’d advise to bookmark this site to be able to reopen these instructions quickly, or simply copy these into a leafpad / vi / text-editor.
To check the version of Java you are now running
To check the browser plugin just click Do I have Java?
This should take you to Oracles Java website and you will see a confirmation message.
Hats off to original author “arschloch”.
Feature of my release:
1.Fixed a bug which makes all popup menu transparent.
2.Add cookie inject feature.
Thx to original author again.
Documentation: http://docs.kali.org/ (Offline PDF version)
Bugs Reporting & Tool Requests: https://bugs.kali.org/
Kali Tool List, Versions & Man Pages: http://tools.kali.org/
What you are experiencing is common on systems in the wild (I see it more often in VM environments). Basically, the process you’re exploiting is not stable enough to keep a shell open, and as you seem to already know, you need to migrate into another process ASAP in order to keep your shell. Instead of set PrependMigrate true try:
set InitialAutoRunScript migrate -f
I have had better experiences with this method than with the PrependMigrate method.
执行下列命令：chmod +x uninstall.sh
sh uninstall.sh (Debian为./uninstall.sh)
安骑士 ->设置 ->安装安骑士