How To Install Jdk On Kali Linux
-
Installing Java on Kali-Linux
1. Download the latest Coffee SE SDK version.
http://www.oracle.com/technetwork/ja...ads/index.html
At the time of writing the filename and version was jdk-7u17-linux-x64.tar.gz
2. Untar the Archive
tar -xzvf /root/jdk-7u17-linux-x64.tar.gz
mv jdk1.seven.0_17 /opt
cd /opt/jdk1.vii.0_17iii.This step registers the downloaded version of Java as an culling, and switches it to be used as the default:
update-alternatives --install /usr/bin/java coffee /opt/jdk1.7.0_17/bin/coffee 1
update-alternatives --install /usr/bin/javac javac /opt/jdk1.7.0_17/bin/javac 1
update-alternatives --install /usr/lib/mozilla/plugins/libjavaplugin.then mozilla-javaplugin.and so /opt/jdk1.7.0_17/jre/lib/amd64/libnpjp2.so 1
update-alternatives --set java /opt/jdk1.7.0_17/bin/java
update-alternatives --fix javac /opt/jdk1.vii.0_17/bin/javac
update-alternatives --set mozilla-javaplugin.so /opt/jdk1.7.0_17/jre/lib/amd64/libnpjp2.then4. Test
To bank check the version of Coffee y'all are at present running
java -version
To bank check the browser plugin browse to http://www.java.com/ and click "Do I accept Coffee?"
-
i remember footstep 3 dosen't work since when i attempt coffee -version i get
Code:
bash: /usr/bin/coffee: cannot execute binary file
-
Originally Posted by Dark_4ngel
everything works, just download&install 32 bit version instead of 64 bit.And in step iii change /amd64/ to /i386/
-
In the steps above information technology is using 64bit software, Dark_4ngel, are yous running a 64Bit Kali install or 32?
Not certain merely that may be the issue.
-
Confirmed working.
root@localhost:~# tar -xzvf jdk-7u17-linux-x64.tar.gz
jdk1.7.0_17/
jdk1.7.0_17/include/
[..]
root@localhost:~# mv jdk1.seven.0_17 /opt
root@localhost:~# cd /opt/jdk1.7.0_17/
root@localhost:/opt/jdk1.vii.0_17#
root@localhost:/opt/jdk1.7.0_17# update-alternatives --install /usr/bin/java coffee /opt/jdk1.7.0_17/bin/java 1
root@localhost:/opt/jdk1.seven.0_17# update-alternatives --install /usr/bin/javac javac /opt/jdk1.7.0_17/bin/javac ane
root@localhost:/opt/jdk1.vii.0_17# update-alternatives --install /usr/lib/mozilla/plugins/libjavaplugin.so mozilla-javaplugin.and so /opt/jdk1.vii.0_17/jre/lib/amd64/libnpjp2.and so i
update-alternatives: /opt/jdk1.7.0_17/jre/lib/amd64/libnpjp2.then wird verwendet, um /usr/lib/mozilla/plugins/libjavaplugin.so (mozilla-javaplugin.so) im Motorcar-Modus bereitzustellen
root@localhost:/opt/jdk1.7.0_17# update-alternatives --fix java /opt/jdk1.seven.0_17/bin/coffee
update-alternatives: /opt/jdk1.7.0_17/bin/java wird verwendet, um /usr/bin/coffee (java) im manueller Modus bereitzustellen
root@localhost:/opt/jdk1.7.0_17# update-alternatives --set javac /opt/jdk1.7.0_17/bin/javac
update-alternatives: /opt/jdk1.7.0_17/bin/javac wird verwendet, um /usr/bin/javac (javac) im manueller Modus bereitzustellen
root@localhost:/opt/jdk1.seven.0_17# update-alternatives --set up mozilla-javaplugin.so /opt/jdk1.seven.0_17/jre/lib/amd64/libnpjp2.so
root@localhost:/opt/jdk1.7.0_17# java -version
java version "i.7.0_17"
Java(TM) SE Runtime Environment (build i.7.0_17-b02)
Java HotSpot(TM) 64-Bit Server VM (build 23.7-b01, mixed style)
-
everything's working bro...
-
-
it's working....thanks....
If you tin can dream big,than you can backbone yourself to work hard till yous achieve it
-
Give thanks you for your useful information.
-
-
Thanks brah! Worked exactly as described (64bit)
-
thanks bro worked for me
-
-
Not Working With me Pls Help
-
Install the package icedtea-7-plugin control like:
# apt-get install icedtea-7-plugin
Restart your browser and exam.
I promise I helped.
-
Is information technology some major problem to update java after i install information technology
- later on i installed 17 it says update 21 is available and i don't feel similar getting burned correct now
-
Latest commands to install as per in a higher place with i386
tar -xzvf /root/jdk-7u21-linux-i586.tar.gz
mv jdk1.seven.0_21 /opt
cd /opt/jdk1.seven.0_21
update-alternatives --install /usr/bin/javac javac /opt/jdk1.7.0_21/bin/javac 1
update-alternatives --install /usr/lib/mozilla/plugins/libjavaplugin.and then mozilla-javaplugin.then /opt/jdk1.7.0_21/jre/lib/i386/libnpjp2.so ane
update-alternatives --gear up java /opt/jdk1.vii.0_21/bin/coffee
update-alternatives --set javac /opt/jdk1.7.0_21/bin/javac
update-alternatives --set mozilla-javaplugin.and so /opt/jdk1.7.0_21/jre/lib/i386/libnpjp2.and so
-
This tutorial is for 64 bit and 32bit simply it works with some minor changes:
1. Download the latest Java SE SDK version.
At the time of writing the filename and version was jdk-7u21-linux-i586.tar.gz
two. Untar the Archive
tar -xzvf /root/jdk-7u21-linux-i586.tar.gz
mv jdk1.7.0_21 /opt
cd /opt/jdk1.7.0_21three.This stride registers the downloaded version of Java as an culling, and switches it to be used equally the default:
update-alternatives --install /usr/bin/java java /opt/jdk1.7.0_21/bin/java 1
update-alternatives --install /usr/bin/javac javac /opt/jdk1.7.0_21/bin/javac 1
update-alternatives --install /usr/lib/mozilla/plugins/libjavaplugin.so mozilla-javaplugin.and then /opt/jdk1.7.0_21/jre/lib/i384/libnpjp2.and then 1
update-alternatives --set coffee /opt/jdk1.7.0_21/bin/java
update-alternatives --ready javac /opt/jdk1.seven.0_21/bin/javac
update-alternatives --fix mozilla-javaplugin.and then /opt/jdk1.7.0_21/jre/lib/i386/libnpjp2.so4. Test
To check the version of Java you lot are at present running
http://java.com/en/download/testjava.jsp
-
will test later, and give feedback, cheers! ...
-
Concluding edited by samcn; 2022-ten-03 at xviii:11.
-
Code:
sudo apt-go purge openjdk*
"The following packages will exist REMOVED:
android-sdk* emmet* pismire-optional* apktool* armitage* bluepot* burpsuite*
ca-certificates-java* casefile* dbpwaudit* default-jdk* default-jre*
default-jre-headless* dex2jar* dirbuster* icedtea-6-jre-cacao*
icedtea-half dozen-jre-jamvm* icedtea-7-jre-cacao* icedtea-7-jre-jamvm* icedtea-netx*
javasnoop* magictree* maltego* metasploit* openjdk-6-jdk* openjdk-6-jre*
openjdk-half-dozen-jre-headless* openjdk-6-jre-lib* openjdk-7-jdk* openjdk-7-jre*
openjdk-7-jre-headless* openjdk-7-jre-lib* oscanner* paros* patator*
protos-sip* smali* vega* webscarab* xmind* zaproxy*The post-obit NEW packages will exist installed:
gcj-4.vii-base gcj-4.7-jre gcj-4.7-jre-headless gcj-iv.7-jre-lib gcj-jre
gcj-jre-headless libgcj-common libgcj13 libgcj13-awt
0 upgraded, 9 newly installed, 41 to remove and 0 not upgraded.
Need to go 24.v MB of archives.
After this functioning, 996 MB disk space will exist freed.
"
Think twice before say YES.
-
Originally Posted by r3ng4f
-
Information technology seems like Java breaks for me every time there'due south a new update or something available. I'yard not sure what the deal is. 1 infinitesimal it works, the next minute information technology doesn't. I ever discover myself having to come dorsum to this thread, downloading a newer version of Java, and and then executing those commands again.
Is there any way I could get some assist diagnosing this? Pretty annoying to take it finish working all of a sudden.
-
UPDATED THIS POST FOR versions x86
java version (jdk-7u25-linux-i586)1. Download the latest Java SE SDK version.
http://www.oracle.com/technetwork/ja...ads/index.html
The version at the time i did the postal service jdk-7u25-linux-i586.tar.gz
2. Untar the Archive
tar -xzvf /root/jdk-7u17-linux-x64.tar.gz
mv jdk1.7.0_17 /opt
cd /opt/jdk1.7.0_17iii.This footstep registers the downloaded version of Java as an culling, and switches it to be used as the default:
update-alternatives --install /usr/bin/java java /opt/jdk1.7.0_25/bin/java one
update-alternatives --install /usr/bin/javac javac /opt/jdk1.7.0_25/bin/javac 1
update-alternatives --install /usr/lib/mozilla/plugins/libjavaplugin.so mozilla-javaplugin.so /opt/jdk1.seven.0_25/jre/lib/i386/libnpjp2.and then 1
update-alternatives --set java /opt/jdk1.vii.0_25/bin/java
update-alternatives --fix javac /opt/jdk1.seven.0_25/bin/javac
update-alternatives --set mozilla-javaplugin.then /opt/jdk1.seven.0_25/jre/lib/i386/libnpjp2.and thenfour. Test
To check the version of Java you are at present running
java -version
To check the browser plugin browse to http://www.java.com/ and click "Exercise I accept Java?"
Keep Up
-
I have a problem in the last step , your help plzzz !!!
root@Kali-PC:/opt/jdk1.7.0_25# update-alternatives --install /usr/bin/java coffee /opt/jdk1.vii.0_25/bin/coffee ane
root@Kali-PC:/opt/jdk1.vii.0_25# update-alternatives --install /usr/bin/javac javac /opt/jdk1.vii.0_25/bin/javac one
root@Kali-PC:/opt/jdk1.7.0_25# update-alternatives --install /usr/lib/mozilla/plugins/libjavaplugin.then mozilla-javaplugin.so /opt/jdk1.7.0_25//jre/lib//i386/libnpjp2.and so 1
update-alternatives: using /opt/jdk1.7.0_25//jre/lib//i386/libnpjp2.so to provide /usr/lib/mozilla/plugins/libjavaplugin.so (mozilla-javaplugin.and then) in auto mode
root@Kali-PC:/opt/jdk1.7.0_25# update-alternatives --gear up java /opt/jdk1.7.0_25/bin/java
update-alternatives: using /opt/jdk1.7.0_25/bin/java to provide /usr/bin/java (coffee) in manual mode
root@Kali-PC:/opt/jdk1.seven.0_25# update-alternatives --set javac /opt/jdk1.7.0_25/bin/javac
update-alternatives: using /opt/jdk1.7.0_25/bin/javac to provide /usr/bin/javac (javac) in manual mode
root@Kali-PC:/opt/jdk1.7.0_25# update-alternatives --set mozilla-javaplugin.so /opt/jdk1.7.0_25//jre/lib/i386/libnpjp2.so
update-alternatives: error: alternative /opt/jdk1.vii.0_25//jre/lib/i386/libnpjp2.so for mozilla-javaplugin.so not registered; not setting
-
hurrah its done i have java installed on my kali os
-
-
When I type
update-alternatives --install /usr/lib/mozilla/plugins/libjavaplugin.so mozilla-javaplugin.and then /opt/jdk1.7.0_25/jre/lib/amd64/libnpjp2.and then i
it gives me
update-alternatives: erreur: le chemin alternatif /opt/jdk1.7.0_25/jre/lib/amd64/libnpjp2.and then n'existe pas
which means that that pathway doen't exist, tin can someone help me plz? :/
-
Thanks a lot, works perfectly with jdk1.7.0_40
-
I tried this method and succeeded
after the download from the link
http://world wide web.coffee.com/en/download/index.jsp
#ls
#tar zxvf jre-7u40-linux-x64.tar.gz
#killall -ix /opt/firefox/firefox-bin
#mkdir /opt/java
#update-alternatives --install /usr/bin/java coffee /opt/java/jre1.seven.0_40/bin/coffee ane
#update-alternatives --set coffee /opt/java/jre1.7.0_40/bin/java
#ln -sf /opt/java/jre1.7.0_40/lib/amd64/libnpjp2.so /usr/lib/mozilla/plugins/
#consign JAVA_HOME="/opt/java/jre1.7.0_40/bin/coffee"
#firefox http://java.com/en/download/testjava.jspfor more information
http://www.backtrack-linux.org/wiki/...p/Java_Install
-
After downloading the latest version seven.0-twoscore Java you should change the number 7 in all orders to 40 and Savor
tar -xzvf /root/jdk-7u40-linux-x64.tar.gz
mv jdk1.7.0_40 /opt
cd /opt/jdk1.7.0_40update-alternatives --install /usr/bin/java coffee /opt/jdk1.7.0_40/bin/java 1
update-alternatives --install /usr/bin/javac javac /opt/jdk1.7.0_40/bin/javac i
update-alternatives --install /usr/lib/mozilla/plugins/libjavaplugin.and then mozilla-javaplugin.so /opt/jdk1.seven.0_40/jre/lib/amd64/libnpjp2.so ane
update-alternatives --set java /opt/jdk1.7.0_40/bin/java
update-alternatives --set javac /opt/jdk1.7.0_40/bin/javac
update-alternatives --set mozilla-javaplugin.so /opt/jdk1.seven.0_40/jre/lib/amd64/libnpjp2.thenThe above commands are used for 64-bit Systems
-
whatsoever idea howto install sun jdk 6?
android build system non working with other version
thanks
-
Originally Posted past enoks
Thank you! Followed these steps exactly with 32bit and the newest version of java simply changing the 25 to a 45 and everything worked flawlessly. Much appreciated.
-
Working similar described! THX
-
thxxxxxxxxxxxxxxxxxxxxxxxx
-
-
thanks for the guide.
only calculation, this is for jdk download, for other download like jre, the binder proper name and subfolders will be a bit different and yous have to adjust yourself.
-
Originally Posted by purehate
-
Why am I approched past this fault?
Code:
root@kali:/opt/jdk1.7.0_51# update-alternatives --install /usr/bin/coffee java /opt/jdk1.seven.0_51/bin/java 1 update-alternatives: error: alternative path /opt/jdk1.7.0_51/bin/java doesn't exist
My postal service virtually fixing E0F error(which i presume youre talking most jwg) hasnt been approved nevertheless.
-
i know im just doing asomething stupid just when i do step 3 -
install /usr/bin/java java /opt/jdk1.seven.0_17/bin/java ii get no directory 1 help please
-
And then I become a message while using firefox that I need a java update on my browser. The warning window does not close in spite of having a go out the page push button. Even later restarting and deleting temp files, this window has now airtight. I feel its malware and my norton antivirus has non worked.
I already feel my yahoo mail has been compromised, I am being asked to all of a sudden alter my password.
so i cleared these problems by following few steps over a article mail.
http://www.omgtop5.com/how-to-verify...dows-browsers/i make that per-requirement to browsers under your OS, checking the prefect driver of coffee for both organisation and browsers. verify by mail, updates ....finally problems will be clear, sometimes without update its volition be installs the default version from download heart.
-
Thanks, you saved me many struggles getting java jdk to work.
-
-
"How tin i re-create my already downloaded jdk-7u17-linux-x64.tar.gz file to root folder.? "
-
Works on Kali 2022.1 jdk 8u73, merely supersede the version number, right know I accept an result with Webex just I'm figuring out how to solve
-
In case anyone experience lazy please run across the script yous can utilize to automate information technology - ofcourse based solely on idea published by writer of the thread (thank you for this):
# 1. Download the latest Java SE SDK version.
# http://www.oracle.com/technetwork/ja...ads/alphabetize.html
#
# cd to directory where .gz has been downloaded
#
# 2. pass the archive as an argument to the script -> script.sh jdk-7u17-linux-x64.tar.gz
#
# Default location is /usr/java for me - don't similar information technology simply pass /opt or /opt/java every bit second argument
# For example: script.sh jdk-7u17-linux-x64.tar.gz /opt/coffee
#
# The script heavily based on author's idea, please re-create save it to script.sh of javaAlternatives.sh or else..
##!/bin/bash
#tar -xzvf $1
echo "extracted"JAVA_WHERE_TO=$ii
JAVA_VER=$(ls . | grep 'jdk[[:digit:].[:digit:].[:digit:]]_*')
repeat "Institute java: " $JAVA_VERif [[ ! $JAVA_WHERE_TO ]]; so
JAVA_WHERE_TO="/usr/coffee"
fimkdir -p $JAVA_WHERE_TO
mv $JAVA_VER $JAVA_WHERE_TO/update-alternatives --install /usr/bin/java java $JAVA_WHERE_TO/$JAVA_VER/bin/java 1
update-alternatives --install /usr/bin/javac javac $JAVA_WHERE_TO/$JAVA_VER/bin/javac i
update-alternatives --install /usr/lib/mozilla/plugins/libjavaplugin.and then mozilla-javaplugin.so $JAVA_WHERE_TO/$JAVA_VER/jre/lib/amd64/libnpjp2.so 1
update-alternatives --set up java /usr/coffee/$JAVA_VER/bin/coffee
update-alternatives --prepare javac /usr/java/$JAVA_VER/bin/javac
update-alternatives --set up mozilla-javaplugin.so /usr/coffee/$JAVA_VER/jre/lib/amd64/libnpjp2.so# To check the version of Java you are now running
echo ">----- Testing Java -----<"
java -version# To bank check the browser plugin browse to http://world wide web.java.com/ and click "Do I have Coffee?"
nohup 10-www-browser http://www.java.com/ &
## END of the script## To use the plugin you need to adjust java security settings cause in some cases it won't piece of work.
# Over again give thanks you to the writer for this idea
-
In case anyone feel lazy please see the script you can use to automate it - ofcourse based solely on thought published past author of the thread (give thanks you for this):
# 1. Download the latest Java SE SDK version.
# http://world wide web.oracle.com/technetwork/ja...ads/alphabetize.html
#
# cd to directory where .gz has been downloaded
#
# ii. pass the annal as an argument to the script -> script.sh jdk-7u17-linux-x64.tar.gz
#
# Default location is /usr/java for me - don't like it just pass /opt or /opt/java as 2nd argument
# For case: script.sh jdk-7u17-linux-x64.tar.gz /opt/java
#
# The script heavily based on author'south thought, please copy save it to script.sh of javaAlternatives.sh or else..
##!/bin/fustigate
#tar -xzvf $ane
echo "extracted"JAVA_WHERE_TO=$2
JAVA_VER=$(ls . | grep 'jdk[[:digit:].[:digit:].[:digit:]]_*')
echo "Institute java: " $JAVA_VERif [[ ! $JAVA_WHERE_TO ]]; then
JAVA_WHERE_TO="/usr/coffee"
fimkdir -p $JAVA_WHERE_TO
mv $JAVA_VER $JAVA_WHERE_TO/update-alternatives --install /usr/bin/coffee java $JAVA_WHERE_TO/$JAVA_VER/bin/java 1
update-alternatives --install /usr/bin/javac javac $JAVA_WHERE_TO/$JAVA_VER/bin/javac 1
update-alternatives --install /usr/lib/mozilla/plugins/libjavaplugin.and then mozilla-javaplugin.so $JAVA_WHERE_TO/$JAVA_VER/jre/lib/amd64/libnpjp2.so 1
update-alternatives --fix java $JAVA_WHERE_TO/$JAVA_VER/bin/coffee
update-alternatives --set javac $JAVA_WHERE_TO/$JAVA_VER/bin/javac
update-alternatives --set mozilla-javaplugin.so $JAVA_WHERE_TO/$JAVA_VER/jre/lib/amd64/libnpjp2.so# To check the version of Java you lot are at present running
echo ">----- Testing Java -----<"
coffee -version# To check the browser plugin scan to http://www.coffee.com/ and click "Do I have Java?"
nohup x-world wide web-browser http://www.java.com/ &
## END of the script## To apply the plugin you need to adjust java security settings cause in some cases information technology won't piece of work.
# Again thank you to the author for this idea
-
I have a 32-scrap organisation and yes I fabricated the necessary modifications but I withal go this error upon running java -version
Error occurred during initialization of VM
java/lang/NoClassDefFoundError: java/lang/ObjectI am not sure where the mistake occurred since nada similar this happened when I used the commands.
Here are the actual commands I used:
update-alternatives --install /usr/bin/java java /opt/jdk1.8.0_92/bin/coffee 1
update-alternatives --install /usr/bin/javac javac /opt/jdk1.8.0_92/bin/javac 1
update-aternatives --install /usr/lib/mozilla/plugins/libjavaplugin.so mozilla-javaplugin.so /opt/jdk1.viii.0_92/jre/lib/i386/libjawt.so ane
update-alternatives --set up java /opt/jdk1.eight.0_92/bin/java
update-alternatives --set javac /opt/jdk1.eight.0_92/bin/javac
update-alternatives --set mozilla-javaplugin.so /opt/jdk1.8.0_92/jre/lib/i386/libjawt.and soI executed all of these from the directory:
root@myComputer:/opt/jdk1.8.0_92#
One affair I did is that I extracted the contents to my home directory and then later copied the jdk1.8.0_92 directory and all of its contents to the /opt directory subsequently. I doubt that makes any departure but I'g willing to try anything at this point.
If anybody else had a similar issue please respond.
-
Simple RUn Script given in link and Enjoy..
NEED not to perform this much things... elementary go and download script run and woooha java updated..
https://cyberghosts.wordpress.com/20...-in-kali-linux
-
was looking for this. Cheers! it worked.
Source: https://forums.kali.org/showthread.php?41-Installing-Java-on-Kali-Linux
Posted by: shepherdcousemen.blogspot.com
0 Response to "How To Install Jdk On Kali Linux"
Post a Comment