Questions tagged [java]
Java is a programming language originally developed by Sun Microsystems. Questions here should be about the installation, configuration and troubleshooting a JVM (Java Virtual Machine) or a JRE (Java Runtime Environment). Programming questions (unless directly related to Ubuntu) should be asked on StackOverflow.com.
380
questions
577
votes
28
answers
922k
views
How can I install Sun/Oracle's proprietary Java JDK 6/7/8 or JRE?
I want to install Oracle's JRE and to update to the latest version with the Software Updater when they released. Is there a Ubuntu package that is provided by Canonical or Oracle?
Before release Java ...
186
votes
15
answers
479k
views
How do I install Java?
How do I install Java, including in my browser, so websites with Java work?
249
votes
0
answers
339k
views
How do I install Oracle Java JDK 7? [duplicate]
If I downloaded the latest JDK from Oracle, do I just download the .tar file and extract it to /usr/lib/jvm/?
203
votes
9
answers
983k
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.
33
votes
12
answers
110k
views
How can I install Minecraft?
I have tried many tutorials but none of them are clear enough. I have also tried installing it using Wine but it won't update and Wine goes gray and stops working.
Does anybody know an easy way to ...
160
votes
4
answers
610k
views
update-java-alternatives vs update-alternatives --config java
On Ubuntu 12.04 LTS I have installed Sun's JDK7, Eclipse, and the Arduino IDE. I want the Arduino to use OpenJDK 6 and want Eclipse to use Sun's JDK 7.
From my understanding I need to manually ...
32
votes
3
answers
27k
views
How to start a GUI application from cron?
I need to run a Java applet from a Firefox. The problem is, I need to run this Firefox from a cron. If I run from the command line and its work fine, but when put the command in the cron it failed:
*/...
107
votes
10
answers
319k
views
How do I install Oracle JDK 6? [duplicate]
Most of the software is not thoroughly tested with Java 7 and I would like to install Oracle's JDK 6.0 on Ubuntu 11.10.
Could someone please provide me the instructions for the same?
134
votes
8
answers
403k
views
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 ...
197
votes
9
answers
1.3m
views
How can I execute a .jar file from the terminal
I know that to execute a file, I use the . command, then the file name with a space between them. But I'm trying to execute a .jar file using the . and it does not work. I went into the properties and ...
392
votes
4
answers
1.5m
views
How to set JAVA_HOME for Java?
I've installed a version of Java. How can we set the $JAVA_HOME environment variable correctly?
7
votes
2
answers
14k
views
Cannot install Oracle JDK via apt in Ubuntu 16.04
I created a new Ubuntu 16.04.3 VM and am attempting to install JDK 9. Unfortunately, the latest version of the JDK apt installer, 9.0.1-1~webupd8~0, is failing to download the binaries and I suspect ...
191
votes
8
answers
837k
views
How to set default Java version?
I followed all the instructions stated at this question, but am encountering some problems with the last part of it.
I actually have version 6.22 of java and would like to update to version 6.30.
So ...
10
votes
1
answer
4k
views
Can't run Java applications (like logisim) due to "Assistive Technology not found" error
I tried it and the errors are:
Exception in thread "main" java.awt.AWTError: Assistive Technology not found: org.GNOME.Accessibility.AtkWrapper
at java.desktop/java.awt.Toolkit.newAWTError(Toolkit....
207
votes
1
answer
613k
views
How to install Oracle Java on Ubuntu 14.04? [duplicate]
I am using Ubuntu 14.04.1 LTS, x64 architecture, and I specifically need to install Oracle Java. Now I know there are some instructions on the website which I follow but the same website does not ...
4
votes
5
answers
14k
views
Installing Java 7 in 16.04 and using multiple Java versions
I already installed Java 8, but I don't know how to install Java 7 and how to switch between the two Java versions.
I also want to switch between Java 7 and 8 to update a project I am working on. I ...
181
votes
6
answers
585k
views
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 ...
72
votes
2
answers
21k
views
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.
...
62
votes
2
answers
156k
views
How do I get Java plugin working on Google Chrome?
Google has updated its Chrome browser to version 35. This new version uses Aura in place of GTK2 and no longer supports NPAPI plugins like Java (both OpenJDK and Oracle). PPAPI plugins like ...
29
votes
5
answers
191k
views
How run a .jar file with a double-click?
I have a problem running .jar files by double-clicking them. When I go to the Properties dialogue I can't find Java--only Archive Manager in the list of programs. But java -jar somefile.jar opens the ...
324
votes
12
answers
993k
views
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 ...
36
votes
4
answers
73k
views
Fix scaling of java-based applications for a high DPI screen
There are some applications (mainly java based) that don't follow the global 2x scale I set in the screen-settings. So these apps are really tiny on my high DPI screen with 3200x1800px.
How can I get ...
20
votes
3
answers
37k
views
Can't install Oracle Java 8 in Ubuntu 16.04
I haven’t installed anything strange in my Ubuntu 16.04 Server. I did some tests in my Ubuntu 16.04 Desktop VM some hours before and installation was successful, but in my dedicated it seems something ...
19
votes
6
answers
35k
views
Unsatisfied Link Error and missing .so files when starting Eclipse
I upgraded to the 12.04 beta yesterday. Now, when I try to start Eclipse, I get the splash screen and then this error message:
An error has occurred. See the log file /home/gabriel/.eclipse/org....
46
votes
8
answers
18k
views
How can I remove duplicate icons for "launched" java programs in the launcher?
When launching java programs (like IntelliJ IDEA and Crashplan) in Natty's Unity launcher, duplicate icons are shown (see image). For IntelliJ I created the .desktop file, for Crashplan the .desktop ...
39
votes
2
answers
37k
views
"sha256sum mismatch jdk-7u3-linux-x64.tar.gz " error when trying to install Oracle Java
i recently tried installed java 7 on ubuntu 12.04 and i think i screwed something up
I followed the instructions given here.
First you need to remove openjdk for this run the following command from ...
4
votes
1
answer
2k
views
Java version problem with Eclipse and NetBeans on 18.04
I'm new to Ubuntu, using 18.04 and trying to install Netbeans or Eclipse but neither of them works.
At first my java was version 10. Searching for solutions I found many suggestions to install ...
110
votes
7
answers
117k
views
Assistive technology not found AWTError
$ java -jar aprof-plot.jar
Exception in thread "main" java.awt.AWTError: Assistive Technology not found: org.GNOME.Accessibility.AtkWrapper
at java.awt.Toolkit.loadAssistiveTechnologies(Toolkit....
71
votes
14
answers
210k
views
How do I make java default to a manually installed JRE/JDK?
I have Ubuntu 12.04 amd64 installed on my machine, on the previous versions of Ubuntu it was deadly easy, now there is this command update-java-alternatives with a really bad man page.
I just have my ...
14
votes
2
answers
60k
views
How to run a Java program in Ubuntu
sachin@sachin-Lenovo-G550:~$ java -version
java version “1.7.0_21″
OpenJDK Runtime Environment (IcedTea 2.3.9) (7u21-2.3.9-1ubuntu1)
OpenJDK Server VM (build 23.7-b01, mixed mode)
When I ran the ...
9
votes
3
answers
25k
views
How to get Scilab 6.0.1 working on Ubuntu 18.04 LTS?
I have installed clean Ubuntu MATE 18.04 LTS and installed Scilab from repository here with
sudo apt-get update
sudo apt-get install scilab
After installation I tried to launch it from GUI (...
24
votes
5
answers
91k
views
JavaFX missing, Ubuntu 18.04
I have Java 8 and Ubuntu 18.04. I'm using NetBeans and when tried to make some program, it couldn't be done because JavaFX is missing.
I installed Java JDK with NetBeans from Oracle's site and ...
11
votes
3
answers
31k
views
How do I install Netbeans 9.0+?
A lot has been changed since the release of Netbeans 9.0. Now Netbeans is taken by Apache Foundation. Also, APT still has v8.1 in Bionic Beaver (18.04). So, how do I install latest version (>9.0)?
6
votes
3
answers
16k
views
Update to latest version of java after ppa is discontinued
I have been trying to install the latest version of java-8. However, I found out that the PPA ppa:webupd8team/java has been discontinued due to changes in the java licence.
How should I update my ...
3
votes
1
answer
4k
views
No 'Open with' option to open/run jar file with openjdk
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 version.
...
74
votes
6
answers
376k
views
How to install the Java plugin for Firefox?
I am trying to install Java and plugins for Firefox. I installed both the JDK and JRE.
When I try with the sudo update-alternatives --config java command it shows only one choice available.
Plugins ...
59
votes
1
answer
165k
views
How do I update Oracle Java (JDK and JRE)
Recently, I've installed JDK 7 from the Oracle site, using these instructions.
Now, I'm wondering what is the correct method to update it (or, better, to keep up-to-date automatically)? For instance, ...
41
votes
6
answers
209k
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 ...
18
votes
2
answers
36k
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 ...
4
votes
3
answers
26k
views
Installing Eclipse IDEs for Java and C/C++
I'm running an Ubuntu 14.04 and want to install the Eclipse IDE for both Java and C/C++ programming. I installed the separate installation files from their official website. I followed this thread ...
1
vote
1
answer
792
views
how to install netbeans from umake?
How do I install netbeans from umake?
thufir@dur:~$
thufir@dur:~$ umake ide netbeans
Choose installation path: /home/thufir/.local/share/umake/ide/netbeans
thufir@dur:~$
System info:
thufir@...
58
votes
4
answers
74k
views
Is there a way to update all Java related alternatives?
Is there a way to quickly switch over all the Java related alternatives using update-alternatives?
For instance, if want to switch Java over to 7, I run sudo update-alternatives --config java and ...
37
votes
3
answers
43k
views
How can I get a java apps to use the GTK+ theme?
Is there a way to get java apps to use my gtk theme?
30
votes
3
answers
86k
views
How can I install OpenJDK on Ubuntu 16.04? [duplicate]
Since I upgraded to the latest version of Ubuntu, I cannot install the Java OpenJDK package needed to compile Android custom ROMs. When I run sudo apt-get install openjdk-7-jdk, the following error ...
24
votes
1
answer
49k
views
java plugin in Chromium
Icedtea-7-plugin installed but it does not appears in the list in about:plugins in Chromium.
Not able to execute java applets.
Tried installing Icedtea-7-plugin but in vain.
Using openjdk7 in 14.04
22
votes
3
answers
69k
views
"No such file or directory" when invoking java
I'm trying to re-install Oracle JDK 7 32 bit to 64 bit Ubuntu (previously 64 bit JDK was installed). JDK is currently present at /usr/lib/jvm/jdk1.7.0. I invoke
sudo update-alternatives --remove "...
20
votes
6
answers
48k
views
Is there any web browser with NPAPI plugins support?
As per this article, Mozilla has dropped the support of NPAPI plugins from Mozilla Firefox version 52. Is there any web browser with NPAPI plugin support? I have to use a website frequently, which ...
15
votes
4
answers
31k
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 ...
14
votes
9
answers
31k
views
Minecraft in jdk 1.7.0_u2 x64
I have Ubuntu 11.10 64-bit and I installed JDK 1.7.0 update 2 x64 via webupd8 page. But currently I have problem with minecraft game. After downloading launcher from Minecraft.net and lauch the game ...
14
votes
5
answers
12k
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 ...