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.

Filter by
Sorted by
Tagged with
49 votes
10 answers
201k views

How to correctly remove OpenJDK/OpenJRE and set SunJDK/SunJRE as Default

Ubuntu seems to favour OpenJDK/JRE very much over Sun JDK/JRE. Even after I installed Sun JRE, JDK and plugin and spent some time plucking out OpenJDK-related packages, apt-get has installed them back ...
Ivan's user avatar
  • 57.1k
48 votes
9 answers
114k views

'tools.jar' is not in IDEA classpath

I am a new user of Linux, it has been recommended to me by my friend. He told me to install software called IntelliJ Idea IDE. Well I have been following the tutorial. But now when I try to open "...
Patrick's user avatar
  • 481
47 votes
8 answers
332k 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 ...
Lucio's user avatar
  • 18.9k
42 votes
5 answers
95k views

Specify JDK for tomcat7

I have installed tomcat7 (using apt-get install) and whenever I want to start tomcat7 it says : * no JDK found - please set JAVA_HOME I have set JAVA_HOME in my bash.bashrc and also in ~/.bashrc and ...
Hossein's user avatar
  • 1,707
28 votes
4 answers
95k views

Installing Java 7 Update 25 on 12.04 LTS?

How can I install Java on Ubuntu 12.04? I have: Java(TM) SE Runtime Environment (build 1.7.0_21-b11) Java HotSpot(TM) 64-Bit Server VM (build 23.21-b01, mixed mode)
user168357's user avatar
27 votes
5 answers
70k views

17.10 openjdk and oracle jdk 8 and 9 the trustAnchors parameter must be non-empty

I've just installed 17.10 in a fresh VM. Trying to set up a development environment, when I run gradle or ./gradlew I get the following error: * What went wrong: Error resolving plugin [id: 'com....
junglie85's user avatar
  • 469
27 votes
1 answer
70k 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 ...
Incerteza's user avatar
  • 1,470
26 votes
3 answers
42k views

Eclipse (ADT) crash Failed to write core dump. Core dumps have been disabled

i found my problem here: how to fix “Failed to write core dump. Core dumps have been disabled” error while running java and here: Eclipse crashing on startup and here: Eclipse continue crash Nothing ...
Aby's user avatar
  • 873
26 votes
2 answers
45k views

Install AdoptOpenJDK / Adoptium onto Ubuntu

I downloaded Java 11 in the form of OpenJDK from AdoptOpenJDK. From the tar.gz file I can extract a folder named jdk-11.0.3+7 with nested folders for bin, conf, lib, and so on. But no installer app ...
Basil Bourque's user avatar
20 votes
2 answers
30k views

How to tell if a certain package exists in the apt repos? [duplicate]

I am specifically interested in determining whether a 32-bit version of OpenJDK 8 exists in the apt/Ubuntu repos. According to this answer, you can install the 32-bit version of the Open JDK 7 ...
smeeb's user avatar
  • 315
20 votes
3 answers
33k 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 non-...
Katherine Rix's user avatar
19 votes
3 answers
132k views

libawt_xawt.so: libXext.so.6: cannot open shared object file: No such file or directory

Exception in thread "main" java.lang.UnsatisfiedLinkError: /usr/lib/java/jdk1.8.0_60/jre/lib/i386/libawt_xawt.so: libXext.so.6: cannot open shared object file: No such file or directory at java....
Ankit_Chaudhary's user avatar
17 votes
4 answers
96k views

How can I enable Java in Chromium? [duplicate]

I've got Java working on Firefox in Ubuntu 11.04 (Natty Narwhal), but using the same page on Chromium tells me Java cannot be found. How can I enable Java on Chromium in my Ubuntu 11.04?
mrobertran's user avatar
16 votes
2 answers
24k views

How do I install Groovy in Ubuntu? [duplicate]

I don't know how to install files to Ubuntu. Kindly explain to me how to install Groovy.
Ant's's user avatar
  • 3,890
16 votes
1 answer
10k views

Ugly/Non Anti-Aliased fonts in Java-Swing Applications

I've recently switched to Ubuntu and I've installed Oracle's Java JDK 8u45 (32 bit) using the webupd8team/java repository. Everything seems to be working fine except that the Java-Swing applications ...
hexman's user avatar
  • 881
15 votes
2 answers
3k views

Why isn't Oracle Java included in the standard Ubuntu repo?

Unlike many popular programming languages, the popular Oracle Java package is only available using a PPA, not by the official repo. Why isn't Oracle Java included in the standard Ubuntu repo?
Adam Matan's user avatar
  • 12.5k
14 votes
3 answers
62k views

Can I install a 32-bit Java in addition to a 64-bit version?

For normal development I'm using the 64-bit VM which comes when I install the Java development kit (OpenJDK) with the package manager. But there are some Java applications (containing native ...
Paŭlo Ebermann's user avatar
12 votes
2 answers
67k views

JVM errors when running minecraft

This is the output I am getting when I am playing minecraft. Java HotSpot(TM) Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future ...
Reddit Is Fun's user avatar
11 votes
1 answer
25k views

Install Java Plugin in Pale Moon Browser

Pale Moon seems to continue supporting NPAPI plugins like Java indefinitely. I use a website, which require java plugin enabled. But I can't get the java plugin in the plugins list. I know the ...
La Corazón's user avatar
10 votes
7 answers
34k views

Running Java/Minecraft with the Nvidia GPU

I have ripped the web up trying to figure this out. Bumblebee hasn't helped. I want to run Minecraft on the Nvidia GPU in my laptop. As far as I can tell, Ubuntu default runs it with Intel because ...
A Person Who Dislikes Windows's user avatar
10 votes
3 answers
91k views

How do we install Java in Wine?

I have a Windows file.exe and I need Wine and Java to open it. I don't know how to install Java in Wine. When I try to open Java setup it says Wrapper.CreateFile failed with error 32: Sharing ...
user52583's user avatar
  • 101
10 votes
1 answer
6k views

Ubuntu 17.10 Java 8 Certificate Error

I have a fresh install of Ubuntu 17.10, on which I installed the package oracle-java8-installer (from PPA). But when I try to compile an ionic project using "ionic cordova build android", it throws ...
loglossbb's user avatar
  • 103
9 votes
2 answers
15k views

Problem with Java while trying to run pycharm-community-4.5

I've just installed pycharm-community-4.5 into my Ubuntu 14.04 (64 bit). After installing I ran the command /opt/pycharm-community-4.5/bin$ ./pycharm.sh to run pycharm but the terminal showed me some ...
Abdullah Al Imran's user avatar
9 votes
4 answers
38k views

How to install JDK8 on Ubuntu 16?

I needed JDK 8 for Bazel. I ran sudo apt-get install openjdk-8* on a freshly built Ubuntu 16.04.02 machine, but after installation update-alternatives --config java show two paths: /usr/lib/jvm/java-...
Old Geezer's user avatar
8 votes
1 answer
6k 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 ...
Gili's user avatar
  • 1,295
8 votes
5 answers
13k 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 ...
Deepal's user avatar
  • 1,656
8 votes
1 answer
8k views

How to "install" multiple Java versions?

How do you have multiple Java versions in Ubuntu 18.04 LTS? In my Windows, I usually have 3 versions available for development. I do not have them installed in my system but rather, I can switch to ...
user avatar
8 votes
9 answers
56k views

IcedTea-8 cannot run any jnlp application (maybe due to openjdk-11?)

I'm on Ubuntu MATE 18.04. All the jnlp applications I tried give execution error. After inspection, some libraries seem to be missing in Java. So I removed everything, started installation again, and ...
Roman Rdgz's user avatar
8 votes
3 answers
950 views

Is there a way to use JAVA on Ubuntu after FF stopped NPAPI support?

Mozilla announced that NPAPI will not be supported since the released version 52. This means that Java will not be supported either. Chromium based browsers do not support java for some time already. ...
Pilot6's user avatar
  • 90.1k
7 votes
2 answers
15k views

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

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 ...
Oxwivi's user avatar
  • 17.9k
7 votes
5 answers
22k views

C, C++ and Java IDE for Ubuntu [duplicate]

Is there an IDE which can run on Ubuntu that supports C, C++ and Java? I installed NetBeans, but it only supported Java. I installed the C/C++ package manually, but that package gives an error if I ...
CH325's user avatar
  • 130
7 votes
6 answers
12k views

What editor is as good as TextPad for compiling and running Java programs? [duplicate]

I want an editor that is as good as TextPad (for Windows) for compiling and running Java programs on Ubuntu 12.04. Please suggest one.
Ankit's user avatar
  • 6,789
7 votes
1 answer
27k views

Ubuntu - saying your security settings have blocked an application from running with an out-of-date version of java

I have this new problem since 2014 begin. I cant remotely login to this enterprise network for giving them support. Its keep showing this new error. How to fix it please? EDIT:
user avatar
7 votes
4 answers
6k views

Unable to install LanguageTool 2.5 extension for LibreOffice 4.2 on Ubuntu 14.04

I am not able to install LanguageTool extension for LibreOffice. Getting exception when I try to install it. p.s. Somebody says that the solution is installing openoffice.org-java-common package but ...
talha06's user avatar
  • 785
7 votes
3 answers
12k views

"MOZILLA_FIVE_HOME not set" Zekr Qur'an study software java error

I installed Zekr Qur'an study software on Ubuntu 12.04 and I upgraded to 12.10. Then the Zekr app started giving me this error whenever I start it. org.eclipse.swt.SWTError: No more handles [Unknown ...
Ismail Yushaw's user avatar
6 votes
2 answers
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 ...
ya'AxchéBalam's user avatar
6 votes
4 answers
16k views

Not all TTF fonts visible from the (Sun) JDK

I wanted to use Monaco.ttf with IntelliJ. Unfortunately it doesn't show up. I also noticed that the Monaco font doesn't appear in the list of fonts got from awt: java.awt.GraphicsEnvironment....
mkm's user avatar
  • 3,189
6 votes
3 answers
4k 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 ...
yyeshua's user avatar
  • 61
6 votes
1 answer
8k views

Install java Runtime Environment

When running the --help switch, I got this. $ /usr/lib/libreoffice/program/swriter javaldx: Could not find a Java Runtime Environment! Please ensure that a JVM and the package libreoffice-java-common ...
fixit7's user avatar
  • 3,127
5 votes
1 answer
3k views

How to run firefox and firefox ESR simultaneously

The main reason I want to use firefox ESR is to use a proprietary database tool for work that only allows oracle-java based web logins for linux (or a windows only thin client). I also want to use the ...
N8tron's user avatar
  • 724
5 votes
4 answers
13k views

exec: 2508: /tmp/install.dir.30906/Linux/resource/jre/bin/java: not found

After running: sudo add-apt-repository ppa:ferramroberto/java sudo apt-get update sudo apt-get install sun-java6-jre sun-java6-plugin sun-java6-fonts I try to setup a software sybase sudo ./setup....
user13871's user avatar
  • 227
5 votes
1 answer
1k views

Is there a way to specify a global look and feel for swing apps?

Every time I install Netbeans on Ubuntu, I have to edit the ./etc/netbeans.conf file to include an option specifying the look and feel; otherwise, the menus are all black on dark gray, which is ...
Bryan Agee's user avatar
  • 3,356
4 votes
1 answer
2k views

Java installation error using apt-cacher

I'm getting this output when I trey to update/install oracle-java7 or from webupd8 ppa: Downloading Oracle Java 7... --2014-11-19 16:35:02-- http://download.oracle.com/otn-pub/java/jdk/7u72-b14/jdk-...
Xisco's user avatar
  • 101
4 votes
3 answers
23k views

Cannot start Webex session. Java permission issue?

My fingers got ahead of me today and I managed to disable Java for Webex on my machine. (Install details: Ubuntu 12.04 32bit, Chrome 32.0.1700.77, Java v7, update 51, Webex working fine for a year ...
jjapol's user avatar
  • 101
4 votes
4 answers
23k views

How to install JDK and Netbeans?

I have downloaded a .bin file for JDK and am trying to install it. I have used these commands: chmod +x jdk-6u23-linux-i586.bin sudo ./jdk-6u23-linux-i586.bin and got this output: sudo: ./jdk-6u23-...
Muhammad's user avatar
4 votes
6 answers
38k views

Can't Execute jar files

I'm having trouble opening jar files because there is no java runtime in open with listed. Even I have installed it via Software Center(i also try to reinstall it via synaptic and i do a --purge via ...
IutbaZion's user avatar
  • 185
4 votes
4 answers
15k views

Do I have log4j on my Ubuntu 18.04.6?

I'm obviously worried about this vulnerability, but I wonder if I even have this library on my machine? The machine is a webserver running a couple of node expressjs frameworks over nginx, plus a ...
minisaurus's user avatar
4 votes
2 answers
13k views

Replacing the OpenJDK with the Oracle JDK

I've had the archive file for Oracle's JDK for some time and have been running java applications through ~/Downloads/jdk1.7.0/bin/java -jar <jarfile> for some time, but I'm wondering if there's ...
Shayne Fitzgerald's user avatar
4 votes
1 answer
18k views

how fix mistake made with update-alternatives?

In the process of installing OpenJDK 11 (via a download), and attempting to set the environment variable and defaults to invoke this version instead of the previously installed Java 10, I have messed ...
Phil Freihofner's user avatar
4 votes
4 answers
25k views

Netbeans 7.0.1 installed but won't run

I installed Netbeans 7.0.1, and I've made sure to install all the JDKs and JREs I could find. It installed without errors. I also saw this question and made sure I followed all the instructions there ...
Questioner's user avatar
  • 6,849

1 2
3
4 5
8