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.

599 questions
324
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…
206
votes
7 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
  • 3,398
205
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,217
187
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
135
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,055
105
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,477
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
  • 110,243
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
84
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?
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…
63
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
  • 733
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
  • 727
55
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
  • 651
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
49
votes
4 answers

How to find path to java?

I needed to update my openJDK to 8 version... And I downloaded the new one this way: sudo add-apt-repository ppa:openjdk-r/ppa sudo apt-get update sudo apt-get install openjdk-8-jdk sudo update-alternatives --config java sudo update-alternatives…
Sirop4ik
  • 859
1
2 3
39 40