Questions tagged [openjdk]

Is a free and open source implementation of the Java programming language. It may be installed from the software centre.

OpenJDK is a free and open source implementation of the Java programming language.

The package that provides the Java Runtime Environment is openjdk-?-jre Where ? is a number that depends which version of Ubuntu you are using. In 16.10, for example, it is openjdk-9-jre To see which version is available for your distribution, use apt search openjdk to see all packages matching the name. To install the full Java Development Kit, install the openjdk-?-jdk package, which includes the JRE.

To be able to use OpenJDK in browsers, the package icedtea-?-plugin (where ? is a number that depends which version of Ubuntu you are running, 8 in 16.10) needs to be installed.

590 questions
322
votes
12 answers

How to install OpenJDK 8 on 14.04 LTS?

Java 8 is now available according to http://openjdk.java.net/projects/jdk8/, but http://openjdk.java.net/install/ does not yet mention how to install OpenJDK 8 (not Oracle Java) on Ubuntu 14.04 Long Term Support. (For 14.10 and later just run…
Thorbjørn Ravn Andersen
  • 4,412
  • 4
  • 21
  • 32
201
votes
9 answers

How to completely uninstall Java?

How can I completely remove all traces of Java on my system? I already know how to install it in case I need it again.
CaldwellYSR
  • 2,177
  • 3
  • 13
  • 9
186
votes
15 answers

How do I install Java?

How do I install Java, including in my browser, so websites with Java work?
Jay
  • 1,025
  • 4
  • 10
  • 13
167
votes
6 answers

Switch between multiple java versions

While installing Android Studio on Ubuntu 14.04 I get the message that my Java version (javac 1.7.0_79) is causing problems. I found a solution of how to install a newer Oracle version of Java: sudo apt-add-repository ppa:webupd8team/java sudo…
mcExchange
  • 2,928
  • 9
  • 23
  • 33
133
votes
8 answers

How do I install openjdk 7 on Ubuntu 16.04 or higher?

I would like to upgrade my main system to 16.04, but I work on projects that require OpenJDK 7. Apparently it is not available from a trivial apt-get install openjdk-7-jdk. Only versions 8 and 9 are listed in the repository. Can anyone point me to…
onairda
  • 3,035
  • 3
  • 11
  • 8
104
votes
4 answers

How can I tell what version of Java I have installed?

I want to start toying around with java (eventually getting to the point where I can write basic little programs for android or web), but I've managed to have java messed up on my computer (from past experiments). I'm not sure which version of java…
Stramato
  • 1,467
  • 2
  • 12
  • 16
92
votes
2 answers

Can not install 'openjdk-9-jdk' because it tries to overwrite file aready included in 'openjdk-9-jdk-headless'

I'm running Ubuntu 16.04 Xenial desktop, 64 bit, and wanted to install openjdk-9-jdk (Java 9 development kit). The version available from the universe repository is 9~b114-0ubuntu1. Running the installation command successfully installs the…
Byte Commander
  • 105,631
  • 46
  • 284
  • 425
85
votes
4 answers

Setting JDK 7 as default

four@twenty:~$ file /etc/alternatives/java /etc/alternatives/javac /etc/alternatives/java:symbolic link to `/usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java' /etc/alternatives/javac:symbolic link to…
Wingsuit
  • 969
  • 1
  • 7
  • 6
83
votes
3 answers

How to install JDK sources?

How can I download the source code of Java on my local machine, so I can reference it in an IDE?
AlikElzin-kilaka
  • 5,017
  • 3
  • 33
  • 48
72
votes
2 answers

Why is OpenJDK 10 packaged as openjdk-11-*?

While looking to compile OpenJDK from source, the newest General Availability version (OpenJDK 10.0.1) insists on OpenJDK 9 or 10. JDK 11, however, is not due to be released until September 2018. However, to my surprise, when I do apt search…
tudor -Reinstate Monica-
  • 7,098
  • 7
  • 34
  • 63
59
votes
4 answers

Replace openjdk with oracle-jdk on Ubuntu

I have an ubuntu system and I want to replace my openjdk with oracle-jdk. However if I remove my open-jdk and then install oracle-jdk, when I try to install some packages they want to install openjdk and I don't want this. Is there any way to…
littleali
  • 717
  • 1
  • 6
  • 10
56
votes
7 answers

How to uninstall OpenJDK?

I don't want OpenJDK installed on my Ubuntu 13.04 system, but trying to uninstall the openjdk-7-jre yields the following message: $ sudo apt-get purge openjdk-7-jre Reading package lists... Done Building dependency tree Reading state…
Sandra
  • 663
  • 1
  • 5
  • 5
54
votes
7 answers

Installing Chrome Java Plugin

I've been trying to install the Java plugin for Chrome for a couple hours now, and I figured it was time to ask people with more experience. I can't seem to get it working. My current Java version is the 64-bit OpenJDK 1.6.0_24. I tried installing…
kyleskool
  • 641
  • 1
  • 5
  • 5
53
votes
8 answers

Problems with Eclipse and Android SDK

I installed Eclipse, openjdk6 and downloaded and extracted the sdk manager file. Now, When I created an Android project I got the following error: 2012-06-06 18:44:40 - contactManager] /home/catia/android-sdks/platform-tools/aapt: error while…
csbl
  • 691
  • 1
  • 7
  • 10
47
votes
8 answers

How to set the JDK for Android Studio?

I can't compile a default new project for Android 2.1 because(?) the JDK used by Android Studio is JDK 1.7 but it should be JDK 1.6. To change it I go to File -> Project Structure and try to find the JDK 1.6 location. But when I select its directory…
Lucio
  • 18,648
  • 31
  • 107
  • 190
1
2 3
39 40