Can someone please guide me through the JDK installation?

10 Antworten [Letzter Beitrag]
Borysmeister
Offline
Beigetreten: 02/07/2016

I installed Linux on my shitty old laptop because I wanted to learn how to program in Java, and I thought that maybe installing a lightweight Linux would make it easier for me to use this piece of crap. I had no problem installing JDK on Windows, but when I follow the instructions on the Oracle website I can't get it to work. I used [this](https://docs.oracle.com/javase/8/docs/technotes/guides/install/linux_jdk.html#BJFCDAIB) guide and after completion I get my terminal, write java or javac and it doesn't recognize the command. I've been trying to get it working for the past 3 hours so I'm pretty furious with the whole thing. Can someone explain to me how to get it done?

Mzee
Offline
Beigetreten: 07/10/2013

Welcome to freedom!

Does this help: https://www.digitalocean.com/community/tutorials/how-to-install-java-on-ubuntu-with-apt-get ? I hope it does. Basically, all you have to do is to forget about Oracle's java version and install OpenJDK instead.

These commands should do the trick:

sudo apt-get install openjdk-7-jdk
sudo apt-get install openjdk-7-jre

Borysmeister
Offline
Beigetreten: 02/07/2016

I installed Linux on my shitty old laptop because I wanted to learn how to
program in Java, and I thought that maybe installing a lightweight Linux
would make it easier for me to use this piece of crap. I had no problem
installing JDK on Windows, but when I follow the instructions on the Oracle
website I can't get it to work. I used
[this](https://docs.oracle.com/javase/8/docs/technotes/guides/install/linux_jdk.html#BJFCDAIB)
guide and after completion I get my terminal, write java or javac and it
doesn't recognize the command. I've been trying to get it working for the
past 3 hours so I'm pretty furious with the whole thing. Can someone explain
to me how to get it done?

Magic Banana

I am a member!

Offline
Beigetreten: 07/24/2010

They can be installed with the "Synaptic package manager" (in the "System settings") too.

And the operating system is GNU/Linux; Linux only is a kernel: https://www.gnu.org/gnu/linux-and-gnu.html

Magic Banana

I am a member!

Offline
Beigetreten: 07/24/2010

They can be installed with the "Synaptic package manager" (in the "System
settings") too.

And the operating system is GNU/Linux; Linux only is a kernel:
https://www.gnu.org/gnu/linux-and-gnu.html

Mzee
Offline
Beigetreten: 07/10/2013

Welcome to freedom!

Does this help:
https://www.digitalocean.com/community/tutorials/how-to-install-java-on-ubuntu-with-apt-get
? I hope it does. Basically, all you have to do is to forget about Oracle's
java version and install OpenJDK instead.

These commands should do the trick:

sudo apt-get install openjdk-7-jdk
sudo apt-get install openjdk-7-jre

Allanitomwesh
Offline
Beigetreten: 10/24/2015

Simply install openJDK8 as the others have suggested using sudo apt-get or the synaptic app

Allanitomwesh
Offline
Beigetreten: 10/24/2015

Simply install openJDK as the others gave suggested using sudo apt-get or the
synaptic app

moxalt
Offline
Beigetreten: 06/19/2015

apt-get install openjdk-7-jdk

JJGómez
Offline
Beigetreten: 06/24/2015

sudo apt-get install openjdk-7-jdk

JJGómez
Offline
Beigetreten: 06/24/2015

sudo apt-get install openjdk-7-jdk