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

learn more… | top users | synonyms

126
votes
13answers
281k views

How do I install Java?

How do I install Java, including in my browser, so websites with Java work?
28
votes
8answers
56k views

How to install Minecraft (Client)

How to correctly install Minecraft, including setting any needed packages or apps to install it and to troubleshoot the most common problems that Ubuntu users face when trying to user Minecraft. I am ...
74
votes
9answers
246k views

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.
46
votes
7answers
189k views

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 ...
143
votes
11answers
327k views

How to install OpenJDK 8 on 14.04 LTS?

As of 2016-04-23 Ubuntu 16.04 has ben released, with both OpenJDK 8 and 9 in the official repositories. I would recommend upgrading to that. As of 2016-01-11 OpenJDK 8 is still not available in an ...
14
votes
5answers
11k views

Will Sun's Java be available from Canonical's partner repository?

I just discovered that Oracle's (Sun's) Java6 has vanished from the Canonical's partner repository. Before Java was taken from all repositories I had purchased Minecraft for play in Ubuntu. After ...
51
votes
8answers
109k views

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] ...
6
votes
2answers
2k views

is OpenJDK Vulnerable to 0-Day Exploit?

I was curious to know if OpenJDK is also vulnerable to the Zero-Day Exploit that is currently afflicting Java 7 because of which experts are telling people to disable Java until a solution is found on ...
3
votes
1answer
1k views

OpenJDK not working

I have run sudo apt-get install openjdk-7-jre It says Reading package lists... Done Building dependency tree Reading state information... Done openjdk-7-jre is already the newest ...
16
votes
2answers
19k views

Changing JVM in Java

I only recently discovered the different JVM's on the wiki page and thought I'd start tinkering. Its been difficult to find documentation on how to configure Java on Ubuntu though. Lets say I wanted ...
9
votes
4answers
12k views

Minecraft with OpenJDK 7, I get “the trustAnchors parameter must be non-empty”

Im using Ubuntu 15.04 and OpenJDK 7, trying to run Minecraft. This is what I get. EDIT: Minecraft is working now when I use sudo java -jar Minecraft.jar but doesn't work without super user, how would ...
6
votes
3answers
2k views

How to revert back to OpenJDK?

I had installed sun-java, but I want to revert back to OpenJDK 7. I was trying to re-install from the terminal using the command sudo apt-get install openjdk-7-jre, same from Synaptic and Software ...
34
votes
4answers
72k views

How to replace OpenJDK 6 with OpenJDK 7?

Surprisingly (as OpenJDK 7 was released to general availability about 4 months ago) Ubuntu 11.10 still uses OpenJDK 6 instead of 7 by default. How do I best fix this? I'd prefer to remove OpenJDK 6 ...
11
votes
5answers
7k views

Eclipse has multiple issues after JRE-6 (OpenJDK) upgrade

I'm on 12.04 LTS, and trying to use Eclipse Indigo. This morning Ubuntu made me update the following packages: Preparing to replace icedtea-6-jre-cacao 6b24-1.11.3-1ubuntu0.12.04.1 (using ...
6
votes
1answer
4k views

How to prevent openjdk-6-jre-headless from clobbering Oracle JDK installation?

My automated build server runs a job that depends on Apache Ant. The script invokes apt-get install ant. Ant depends on openjdk-6-jre-headless which runs update-alternatives making itself the default ...
4
votes
4answers
19k views

How to make Firefox use the newest Java version, which is already installed?

Apparently, I have OpenJDK 6 JRE (openjdk-6-jre 6b27-1.12.6-1ubuntu0.12.04.2) and 7 JRE (openjdk-7-jre 7u25-2.3.10-1ubuntu0.12.04.2) installed in parallel – I don't know why I have both of them, I ...
28
votes
4answers
40k views

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 ...
22
votes
4answers
96k views

Setup and install IntelliJ with JDK

Is there any scripts for downloading and installing IntelliJ with JavaJDK or OpenJDK? I don't know how I did it before using Ubuntu 12.10 but I'm now on a fresh 13.04 install and I have been looking ...
43
votes
4answers
186k views

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 ...
19
votes
5answers
80k views

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 ...
3
votes
3answers
59k views

How to setup Java-Home and Path in Ubuntu 12.04

we are new to Ubuntu.Recently we changed my server OS to ubuntu 12.04 from windows 7 . every one have their own login details. one of my college installed Open-Jdk7. I asked him, where you installed ...
9
votes
3answers
21k views

Netbeans install error: The specified jdk folder does not contain jdk

During installation of Netbeans 7.3 I got this message the specified jdk folder does not contain jdk I have openjdk 7 installed on my system using apt-get. I tried to specify the path to ...
7
votes
2answers
14k views

What's the difference between OpenJDK and Sun Java for the end user?

For users running Java application or applets in the browser, what difference does it make running either Sun Java or OpenJDK? EDIT Oracle will be retiring the DLJ, and basing the proprietary ...
5
votes
2answers
13k views

Android Studo showing :“OpenJDK shows intermittent performance and UI issues.”

I have recently installed Android Studio on my Ubuntu 12.10 64bit machine, but every time that I opened it kept giving the following error "OpenJDK shows intermittent performance and UI issues. We ...
1
vote
1answer
11k views

How do I use the 32-bit JVM on a 64 bit OS?

I have a 64-bit server with only 1 GiB of RAM (VM at Rackspace). I need to run a few instances of the JVM, and the 64 bit VMs are consuming too much RAM. I can't seem to find anyplace that tells me ...
6
votes
4answers
23k views

How can I make a .jar file executable?

I'm trying to run a jar application under Ubuntu, so I installed OpenJDK Java 7 Runtime, but when I open this application I got this message : The file '/home/aimad/Programms/jMerise/JMerise.jar' ...
3
votes
2answers
645 views

Is the openjdk-r ppa trustworty?

I've seen a ton of blogs saying Java 8 is now available to Ubuntu 12.04 & 14.04 through the ppa openjdk-r. My question is how trustworthy is this ppa? Is it run by people from openjdk or ubuntu or ...
3
votes
2answers
6k views

Problem running jar from gui in 15.04

I updated ubunut to 15.04 today. Now when I try starting a jar file from the gui it only opens the archive manager. Checking the open with tab in Properties I can't find Openjdk. I got both Openjdk ...
2
votes
2answers
4k views

Setup JDK for android studio

I was setting up android studio and got this So I followed the answer here and used sudo update-alternatives --set java /usr/local/java/jdk1.7.0_17/jre/bin/java sudo update-alternatives --set ...
43
votes
3answers
88k views

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 ...
6
votes
4answers
7k views

OpenJDK-8/Oracle JDK 8 Font Patches for Ubuntu

Is there a patched version of OpenJDK-8 or Oracle JDK 8 for Ubuntu 14.10 which fixes ugly fonts in Java Applications (Jetbrains products, Netbeans etc.)? I had previously installed a patched version ...
5
votes
1answer
2k views

Ubuntu 16.04 and openjdk 7

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 ...
18
votes
1answer
39k views

OpenJDK - Oracle is better? [closed]

From http://www.wikihow.com/Install-Oracle-Java-on-Ubuntu-Linux Type/Copy/Paste: java -version . If you're having OpenJDK Runtime Environment (IcedTea6 1.10pre) (7b15~pre1-0lucid1) OpenJDK 64-Bit ...
6
votes
2answers
10k views

IcedTea plugin for OpenJDK 8

I updated from OpenJDK 7 to 8. I uninstalled 7, which uninstalled the IcedTea plugin as well. I tried to reinstall IcedTea with sudo apt-get install icedtea-7-plugin But it doesn't work. When I ...
5
votes
2answers
9k views

How can I select which Java to use?

I have installed both OpenJDK 6 and 7. When I run "java somefile" from the command line, OpenJDK 6 is invoked. I do not want to change this default behavior. What command can I use to run my ...
9
votes
2answers
9k views

ca-certificates-java fails when trying to install openjdk-6-jre

I use a VPS with Ubuntu Server 10.10 x64. I want to use Java and run the command sudo apt-get install openjdk-6-jre but it fails because the installation encounted errors while processing ...
4
votes
5answers
16k views

correct Installation and configuration of openJDK and R

I am relatively new to Ubuntu so I wont know a lot of commands that probably became standard to a lot of you guys. I am trying to set up R and with it the necessary java dependencies to install e.g. ...
1
vote
2answers
21k views

How to open jar file using open JDK?

I installed "open jdk 7" on ubuntu 13.04, but not recognized in "other application" list to set as default. I need to open a ".jar" file with "open jdk7". Please help.
25
votes
5answers
109k views

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 ...
7
votes
4answers
13k views

Unable to install icedtea plugin on Utopic Unicorn 14.10

Trying to install icedtea-7-plugin on 14.10 x64 gives an error. apt-get install icedtea-7-plugin . . . Selecting previously unselected package icedtea-netx:amd64. . . . Processing triggers for ...
6
votes
2answers
958 views

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 ...
5
votes
4answers
11k views

Minecraft goes black on 12.04 [duplicate]

Upon upgrading to 12.04 I installed Minecraft, Openjdk 6 and 7. When I login everything is fine, but after that I get the "Updating Minecraft" screen for about 0-5 seconds, then the screen goes black. ...
3
votes
0answers
446 views

How to use Firefox AppArmor profile with IcedTea Java plugin on Ubuntu 14.04?

Whenever I set up Ubuntu on a new system, I active the default AppArmor profile for Firefox via sudo aa-enforce /etc/apparmor.d/usr.bin.firefox Doing this on Ubuntu 14.04, however, makes Java ...
2
votes
0answers
454 views

Unable to start topcoder arena in Ubuntu 14.04

When I want to clear cache using javaws - viewer these error comes. I am trying to launch my topcoder arena. Picked up JAVA_TOOL_OPTIONS: -javaagent:/usr/share/java/jayatanaag.jar Exception in ...
1
vote
1answer
4k views

netbeans broken after openjdk update

I had some strange issues on my notebook where NetBeans hangs some times and also some dialog items are missing. I tried various things (ugrading to jre-7, switching to oracle jre, other versions of ...
0
votes
4answers
2k views

unable to install jdk and jre in ubuntu 14.04

I want to install jdk and jre in my ubuntu 14.04 and I got these following errors: anil@anil:~$ sudo apt-get install default-jre [sudo] password for anil: Reading package lists... Done Building ...
5
votes
3answers
4k views

How to use Eclipse with the JDKs provided by 12.04?

I updated to Ubuntu 12.04 and now Eclipse does not accept OpenJDK 6 in /usr/lib/jvm anymore. I tried to install openjdk 7 and it did create two folders in /usr/lib/jvm, but neither is accepted by the ...
5
votes
1answer
5k views

Can't upgrade packages, it gets stuck on openjdk-6-jre-headless

I am using Ubuntu Maverick (server). When I run: apt-get upgrade it gets stuck on: Setting up openjdk-6-jre-headless (6b20-1.9.7-0ubuntu1) ... Why? And what can I do to stop it? I tried ...
3
votes
3answers
3k views

When running Minecraft with OpenJDK, my keyboard becomes unresponsive?

I recently downloaded Minecraft with the .jar format and had it running on my computer not so long ago. Now that I'm using my desktop instead of laptop temporarily, I want it to run. On my laptop it ...
1
vote
1answer
1k views

Firefox can't get the latest java version in ubuntu 15.04 in about:configs with iceatea-8-plugin, but oracle java version verify page can

In my laptop, I have openjdk1.6, openjdk-1.7, and openjdk1.8 installed. I can see all of them through update-alternative --config java. $update-alternatives --config java There are 3 choices for the ...