Kali linux java ide

How to Install Oracle JDK 9 on Kali Linux Easy Guide

Install Oracle JDK 9 Kali Linux

You are Welcome! The Tutorial Shows You Step-by-Step How to Install Oracle JDK 9 on Kali GNU/Linux Desktop.

And to SetUp Oracle JDK for Kali Linux you will need to Use the update-alternatives Tool to Update your System Java to 1.9 JDK9.

Furthermore, Java SE 9 includes much awaited New Features like the Modularization of the Java Platform, Better Performance, Support for New Standards, and many other improvements.

  • Java REPL Shell jshell
  • Full support for HTTP 2.0, new HTTP client that implement HTTP 2.0 and websockets
  • Java Microbenchmarking Harness
  • Java Process API Boost
  • Debugging in Production

Furthermore, to Make the Process Easier to Visualize the Post Includes the Basic Screenshots of the Steps Involved.

The Contents and Details of How to Install Oracle JDK 9 on Kali are Expressly Minimal to Give Focus Only to the Essentials Instructions and Commands and Make the Tut Easier to Understand 😉

Open a Terminal Shell emulator window
(Press “Enter” to Execute Commands)

Download Oracle Java SE JDK 9 for Linux

Double-Click on the tar.gz Archive and Extract into /tmp
Or from Shell:

Relocate Java JDK 9

If Got “User is Not in Sudoers file” then see: How to Enable sudo
Make a jvm Directory if Not already there with

Set the root SuperUser as Owner:

Reiterate the Execution Permission over the Java binaries:

Finally, Shift the Java contents with:

Installing Oracle Java JDK 9
You can directly Copy & Paste the Commands into Terminal..

Checking or Setting the System Java Version in Use with

And for the Java Compiler instead:

To Switch of Java Version Just Enter the Selection Number on First, Column. 🙂

(Optional) Setting JAVA_HOME User Environment Variable.

And Edit the Bash environment Configuration file

Possibly to Check the JDK 9 exact PATH use in another window:

Ctr+x to Save & Exit from nano Editor 🙂
Next to Load the New Bash Environment:

Test New Java JDK 9 Installation

How to Install Netbeans IDE for Java on Kali:
Setup NetBeans Java for Linux.

Now Thanks to Oracle-Sun Corporation You are Able to Successfully Start Up with Java 9 Development.

Welcome to Java 9 New Dev Env! 😉

How to Install Eclipse IDE for Java on Kali:
Setup Eclipse Java for Linux.

Читайте также:  Windows xtreme edition sp3 2009

How to Install IntelliJ IDEA for Java on Kali:
Setup IntelliJ Java for Linux.

Источник

How to Install Java JDK in Kali Linux

POST UPDATED with latest version of Java: 18/12/2013.

This is a small guide with instructions that users can copy paste and make Java work in their Kali Linux. Thanks to purehate for providing original instructions. I’ve modified his instruction to suit my needs and I hope this will benefit users as well.

So lets get on with this guide…

Instructions on How to Install Java JDK in Kali Linux:

Download the latest Java SE SDK version

Go to the following link and download jdk7. At the time of writing this guide the jdk version was jdk-7u45-linux-x64. Note that I’m using x64 which is 64-bit. 32-bit users should choose their versions accordingly. Not that tough really!

Following is what I’ve used.

Again, at the time of writing this guide the available version was jdk-7u45-linux-x64.tar.gz

Download and save the file in /root directory.

UnTar the Archive and move to /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:

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 file.

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.

Thanks for reading.

Check Also

Install, setup, configure and run OpenVAS on Kali Linux

Vulnerability scanning is a crucial phase of a penetration test and having an updated vulnerability …

How to install VirtualBox Guest Additions in Kali Linux (Kali Rolling / Kali Linux 2016.2 / Kali 2017)

Since Kali Linux 2016 came out (also known as Kali Rolling), it seems that Official …

36 comments

You’re welcome Phelipe.

Thank you. Great tutorial. 🙂

Thanks. Glad it helped you.

thank you very much

i get question how about this .
no alternatives for mozilla
when i check my java is 1.6 version
please reply me …. (

what if i have a Iceweasl browser..what changes in command of mozilla??

Just a quick question. Why JDK over JRE? That confused me a little.

Its preference I would assume, but the JDK includes jre when you install it lol

JDK is for developer, for those who develop java applications and it have tools for developing. Note that JDK also include JRE. I develop java software and I find that JDK is needed in my development.

JRE on the other hand, is for the end-user who is using java application, but not developing. JRE doesn’t include JDK.h

There is another JRE for Server. In total, there are 3 packages available. JDK, JRE & JRE Server.

Sorry, one final question. Why extract it to the root folder instead of creating a separate folder for it inside of root?

Читайте также:  Не запускается экранная клавиатура windows 10 сервер возвратил ссылку

I see it actually does go to it’s own folder. I retract my last question. My understanding of all the options of all the programs needs serious work.

I looked the website and there is no 32-bit version?!

(x86) is another name for 32-bit version. Download that one.

How can i install jre java ?
Thanks in advance

Guide needs to be updated in accordance with the latest JDK.

installing jdk 1.8.0_31 but not well confiqured

Dont forget :
apt-get install icedtea-7-plugin

This allows Java to work in your browser (if thats what you want)

help error while installing: tar (child): /root/jdk-7u79-linux-x64.tar.gz: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now

I’m sure you haven’t copy the JDK file into your root as bMO said in the guide.

This still applies. Thanks!

Thanks Robert. Appreciate the feedback.

hey..i used the procedure above but when i opened gparted, i got this error
(gpartedbin:28676): glibmm-ERROR **:
unhandled exception (type std::exception) in signal handler:
what: locale::facet::_S_create_c_locale name not valid

could it have been caused by this procedure?

Thank you blackmoreops for this guide, working on 2015. I even made a video tutorial on this giving credit to blackmoreops himself. Feel free to watch, and thanks again to blackmoreops, really useful guide for me.

i got this error after
update-alternatives –install /usr/bin/java java /opt/jdk1.8.0_73 bin/java 1
update-alternatives: priority must be an integer

I get this error when entering the alternative
root@kali:/opt/jdk1.8.0_60# update-alternatives –install /usr/lib/mozilla/plugins/libjavaplugin.so mozilla-javaplugin.so /opt/jdk1.8.0_60/jre/lib/amd64/libnpjp2.so 1
update-alternatives: error: alternative path /opt/jdk1.8.0_60/jre/lib/amd64/libnpjp2.so doesn’t exist

what about Kali Sana ? , as it seems not to be working .
altought the version terminal shows is
“java version “1.7.0_79″
OpenJDK Runtime Environment (IcedTea 2.5.6) (7u79-2.5.6-1

deb8u1)
OpenJDK 64-Bit Server VM (build 24.79-b02, mixed mode) ”

but i dont get any Java in the list of execute the java file from it , where i am going wrong ?

helpful .. useful and it works … thx for help u save my day

I got this problem when entering this tar -xzvf/ root/jdk-7u79-linux-i586.tar.gz
tar (child): /root/jdk-7u79-linux-i586.tar.gz: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2 tar: Error is not recoverable: exiting now

How could I solve this problem?

Nice Work by admin…
also you can use script i made, simple run script and enjoy….
get script at https://cyberghosts.wordpress.com/2016/11/30/update-java-in-kali-linux/

thanks a lot, admin!

My install: jdk1.8.0_121 for KaliLinux 2017 on Intel 32bit system

Источник

Ethical hacking and penetration testing

InfoSec, IT, Kali Linux, BlackArch

How to install Java 9 (JDK 9, JRE 9) on Linux

Installing JDK 9 in Ubuntu, Linux Mint, Debian, Kali Linux

In Linux repositories (application sources), OpenJDK is usually present — this is a Java implementation from the community. If you prefer a proprietary version from Sun Microsystems (Oracle Corporation), then it must be installed from the official website.

Let’s start with the version check:

The output can be:

As you can understand from the records, OpenJDK is installed.

If Java is not installed at all, it will display:

Читайте также:  Справка по калькулятору windows

To install the JDK, run the following commands in sequence:

Java 9 is only available for 64-bit systems. To install it, run the command:

Extract and rename the archive:

Next, use the update-alternatives command to tell the system where Java and its executable files are installed.

Choose the option with /opt/java/jdk-9/bin/java

Also a message can be displayed:

In this case, everything is all right too, you do not need to customize anything else.

Let’s say the system update the javac (Java compiler) alternatives as follows:

The system can write that there is only one alternative — this is also normal.

In a similar way, we update jar alternatives like this:

Again, there may be only one alternative, if there are several, then again select the one that /opt/java/jdk-9/bin/java.

Configure Java environment variables.

Run in the console:

After a reboot, the environment variables will be reset. To avoid entering these values each time after a reboot, you can edit one of the three files:

$HOME/.bashrc

$HOME/.profile

/etc/profile

It is recommended that you select /etc/profile, because in this case the settings will be available to all users of the system. Open this file:

And add at the very end of the file:

To be sure, we’ll check the Java version again.

Источник

Установка Java JDK на Kali LInux

Distributor ID: Kali Description: Kali GNU/Linux Rolling Release: 2021.1 Codename: kali-rolling

Ситуация такая. Регулярно при работе сталкиваюсь с такой вот картиной:

Чтение списков пакетов… Готово Построение дерева зависимостей… Готово Чтение информации о состоянии… Готово
Вы можете запустить «apt –fix-broken install» для исправления этих ошибок. Следующие пакеты имеют неудовлетворённые зависимости: ipscan : Зависит: openjdk-9-jre но он не может быть установлен или oracle-java9-installer но он не может быть установлен или openjdk-8-jre но он не может быть установлен или oracle-java8-installer но он не может быть установлен или openjdk-7-jre но он не может быть установлен или oracle-java7-installer но он не может быть установлен openvas : Зависит: gvm но он не будет установлен E: Неудовлетворённые зависимости. Попытайтесь выполнить «apt –fix-broken install», не указывая имени пакета (или указав решение).

Вот что выдает java -version: openjdk version «11.0.10» 2021-01-19 OpenJDK Runtime Environment (build 11.0.10+9-post-Debian-1) OpenJDK 64-Bit Server VM (build 11.0.10+9-post-Debian-1, mixed mode, sharing)

Помогите пофиксить, заранее спасибо)

Комбо! До редактирования было лучше.

Вот только не начинай) Я уже почитал форум, видел как вы собачитесь со всеми кто задает вопрос про kali.

Я не начинаю. Я этим как бы тред закончил. /thread

Как чувствовал, что все так будет) Пойду у https://forums.kali.org/ спрашивать. Они может не будут так в штыки встречать…

Кстати, спасибо! Правда) После прочтения данного документа окончательно выяснил, что In particular, there is absolutely no support whatsoever for the apt-add-repository comman in Kali Linux

Рад что смог помочь.

Букварь хотя-бы прочитай.

запустить «apt –fix-broken install» для исправления этих ошибок. Следующие пакеты имеют неудовлетворённые зависимости

Эту «игрушку» ты уже сломал. Тебе написано, как починить.

Они может не будут так в штыки встречать

Почему тебе должны где-то быть рады? Ты поставил кал, а кто-то должен его тебе чинить?

Источник

Оцените статью