Questions tagged [openjdk]

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

Filter by
Sorted by
Tagged with
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 (...
N0rbert's user avatar
  • 99.9k
5 votes
4 answers
20k views

JDK Crash when attempting to run Minecraft on Ubuntu 18.04

Trying to install Minecraft on 18.04 and I get the following error. OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future ...
xEth0sx's user avatar
  • 59
0 votes
1 answer
17k views

Command line Java: Error: A JNI error has occurred/Exception in thread "main" java.lang.NoClassDefFoundError

I'm trying to compile/build/run a Java project for the first time on Ubuntu 14.04. The project depends on the CPlex optimization library. I've compiled the code using javac -classpath .:/opt/ibm/...
ellen's user avatar
  • 277
1 vote
1 answer
693 views

Spark Installation

I have installed and checked it with the command java -version which gave the following output: openjdk version "1.8.0_162" OpenJDK Runtime Environment (build 1.8.0_162-8u162-b12-0ubuntu0.17....
rattlesnake's user avatar
0 votes
1 answer
208 views

Struggling with Duplicate Java JRE version on Ubuntu

I have installed java jdk 9 and java jre 9 on ubuntu and set the path of both to /etc/environment as /usr/local/jdk-9.0.4:/usr/local/jre-9.0.4/bin then I tested javac -version which prints jdk9 but ...
Asif Mushtaq's user avatar
3 votes
0 answers
3k views

How to run an application on a specific Java version?

How can I run an application with a specific Java version? I have three Java versions intstalled: myuser@mysystem:~$ sudo update-alternatives --config java There are 3 choices for the alternative ...
Socrates's user avatar
  • 2,493
14 votes
3 answers
39k views

Java can't find cacerts

I've been trying to setup a java dev environment with no luck. I installed openjdk-8-jdk but I keep getting java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-...
Ava's user avatar
  • 771
0 votes
1 answer
6k views

Change java version from 1.8.0_161 to 1.8.0_151 Ubuntu 16.04

I am using ubuntu 16.04 LTS. ...$ java -version java version "1.8.0_161" Java(TM) SE Runtime Environment (build 1.8.0_161-b12) Java HotSpot(TM) 64-Bit Server VM (build 25.161-b12, mixed mode) ...$ ...
el323's user avatar
  • 143
4 votes
1 answer
2k views

Do we lose any functionality by using the openJDK instead of Oracle?

My usage: I am looking to install Java on Ubuntu 16.04. I don't do any heavy-duty coding, but I was curious what the differences were between Oracle and OpenJDK What I ran to install When I run the ...
Nathan majicvr.com's user avatar
1 vote
1 answer
2k views

How can I fix these errors during Talend Open Studio installation?

I'm trying to install Talend Open Studio on Ubuntu 16.04 Server, but I got the following errors while trying to run ./TOS_DI-linux-gtk-x86.sh: TOS_DI-linux-gtk-x86_64: Cannot open display: org.osgi....
Abeer's user avatar
  • 31
2 votes
2 answers
3k views

How to replace a faulty Java installation with a new one?

I just recently upgraded from 17.04 to 17.10, but in doing so ubuntu semes to have "forgotten" about my JDK 8 installation. I can still use java: olian04:~$ java -version openjdk version "1.8....
Olian04's user avatar
  • 4,653
0 votes
1 answer
11k views

Why one of applications thinks that JAVA_HOME is set to openjdk 9 directory? [Not actual anymore]

The application (Cocos2d-x) tells that JAVA_HOME is set to an invalid directory: /usr/lib/jvm/java-1.9.0-openjdk-amd64 My /etc/environment contains this: PATH="/usr/local/sbin:/usr/local/bin:/...
R S's user avatar
  • 2,439
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 ...
Geemo's user avatar
  • 133
0 votes
1 answer
2k views

Increase Java’s maximum heap size when using “make” command

I'm working with Android-x86, but the problem I have is with make command, not Android. I'm trying to compile Android-x86 Oreo as android_x86_64-userdebug using m -j2 iso_img, and I'm stuck in a loop....
user avatar
6 votes
1 answer
16k views

Install exact version of OpenJDK

Ubuntu 17.10 (GNU/Linux 4.13.0-16-generic x86_64) After installing java with the command: sudo apt install openjdk-8-jdk-headless I have java version 8u151 But because of the bug (https://bugs....
daggett's user avatar
  • 163
4 votes
0 answers
238 views

Webup8team Oracle JDK 9 removes OpenJDK 9

I try to install OpenJDK 9 and Oracle JDK 9 in the same Ubuntu 17.10 machine, but looks like both are exclusive packages. If I have installed OpenJDK 9 and try to install the Oracle one, apt is ...
angelcervera's user avatar
2 votes
3 answers
6k views

No Java virtual machine was found when trying to run Eclipse installer

Trying to install Eclipse on fresh Ubuntu. Got error: If I type java command I have output: Can I install default OpenJDK or should I go to Oracle site and download Java there? Why I can't use ...
vico's user avatar
  • 4,537
0 votes
0 answers
962 views

Oracle Java 8 u151 segmentation fault

Any java commands get this error: Segmentation fault (core dumped) It's happened on ubuntu-desktop-16.04-x64 and Mint too. Core dump: Program terminated with signal SIGSEGV, Segmentation fault. #0 ...
Hossein Ghiyasi Mehr's user avatar
2 votes
1 answer
1k views

java.lang.RuntimeException: failed to load system cursor: DnD.Cursor.CopyDrop [closed]

Does anybody know the meaning of this error message? java.lang.RuntimeException: failed to load system cursor: DnD.Cursor.CopyDrop After new Install of Ubuntu 17.10 (Xfce), OpenJava1.8., Netbeans ...
guest4711's user avatar
0 votes
0 answers
3k views

No Java virtual machine could be found from your path

I am trying to install a program that is using Java, but it gets stuck when searching for the JVM. Running java -version I get openjdk version 1.8.0_151 My current $PATH parameter contains /usr/lib/...
munHunger's user avatar
  • 143
7 votes
2 answers
7k views

intelliJ doesn't accept java 9 JDK

I'm trying to use java 9 in intelliJ while using Ubuntu 16.4 with a KDE desktop. I find myself unable to select my JDK file in the editor. I have java 8 and 9 installed, and currently java 9 is set to ...
Nick Dewitte's user avatar
0 votes
2 answers
4k views

Cannot install oracle-java8-jdk Because java-common cannot be installed [duplicate]

Before someone comes and marks this as a duplicate I would like to mention that I have seen 10 similar problems and I have followed all of the steps but with no use. I followed Oracle-Java8-Installer:...
Omar Alama's user avatar
2 votes
1 answer
2k views

java crashed with SIGABRT in WTFCrash()

on a newly installed Ubuntu 16.04, I was receiving Ubuntu 16.04 has experienced an internal error. there is a bug issue reported about OpenJDK with this error, therefore I completely removed Java ...
Amir-Mousavi's user avatar
0 votes
0 answers
680 views

Install openjdk 7 on ubuntu 16.04

I cannot install openjdk-7-jdk on Ubuntu 16.04. When I try to user@pc$ sudo apt-get install openjdk-7-jdk, it fails with: ... Depends: libgif4 (>= 4.1.4) but it is not installable ... So I check ...
Mikhail's user avatar
  • 143
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
0 votes
1 answer
792 views

Unable to remove jdk from my Ubuntu System

I'm tried to remove JDK from my system and I used sudo apt-get remove openjdk-9* After doing this, I executed java -version command on my cmd it reported this message: java version "1.8.0_151" Java(...
chand mohd's user avatar
3 votes
2 answers
9k views

openjdk-8 is not installed correctly

I accidently installed openjdk-9-jre-headless when I actually wanted openjdk-8-jre-headless using sudo apt install openjdk-9-jre-headless When I realized it I did sudo apt remove --purge openjdk-9-...
derHugo's user avatar
  • 3,356
1 vote
0 answers
111 views

Minecraft launcher giving Java error "the trustAnchors parameter must be non-empty" [duplicate]

On Ubuntu 17.10, the Minecraft launcher keeps giving me "the trustAnchors parameter must be non-empty" error. The full log is here: user@hostname:~$ java -jar Downloads/Minecraft.jar Bootstrap (v5) ...
SultanofRum's user avatar
5 votes
3 answers
18k views

Cannot find "valid home for jdk" in intellij idea

I'm trying to setup an SDK for intellij idea and I can't find the home for jdk as the error put it. In the terminal this is what I get $ java -version openjdk version "9-internal" OpenJDK Runtime ...
Arpit Bharti's user avatar
0 votes
1 answer
2k views

Ant for Java not showing as installed but it is installed

today I was having problems and it was pertaining to getting opencv.3.3.0 working on my new computer. I never have had this issue but I switched the day before from using openjdk to oracle jdk and ...
ProgrammingCuber's user avatar
6 votes
1 answer
20k views

UBUNTU 16.04: How to set JAVA_HOME for Java?

I am following this How to set JAVA_HOME for Java? in order to set the environment variable JAVA_HOME to the correct version. I have different versions of java in my /usr/lib/jvm/folder as ...
emax's user avatar
  • 171
2 votes
0 answers
675 views

Ubuntu 17.04 - JDK 9 with IntelliJ IDEA 2017.2.3 issue

To make it simple, When I tried OpenJDK 9, IntelliJ IDEA won't startup, just showing an error dialog saying something like com.intellij.ide.plugins.PluginManager$StartupAbortedException: java.lang....
Triết Nguyễn's user avatar
0 votes
1 answer
637 views

How to remove JDK and keep JRE in ubuntu 16.04

I've installed JDK-8 on my VPS with the command: sudo apt-get install openjdk-8-jdk But I just realized I don't really need JDK and JRE is enough for me since I develope my projects on my laptop in ...
yukashima huksay's user avatar
2 votes
0 answers
447 views

Netbeans 8.1 randomly crashes on Ubuntu 17.04 GNOME (Wayland)

I have OpenJDK 8 and Netbeans 8.1 installed on Ubuntu GNOME 17.04, Wayland. (everything installed from apt, No PPA). The crash is not observable on GNOME Legacy session. Only on Wayland. More ...
Himanshu Shekhar's user avatar
3 votes
3 answers
40k views

Java JRE 8 install

I am trying to install Java JRE 8 on my Linux machine (Ubuntu 14.04 (Trusty Tahr)). I've done two things: The first was follow Java's help page. I downloaded the tarball and installed it using the ...
John Lexus's user avatar
1 vote
1 answer
941 views

How to install openJDK 8 on 17.04 LTS? [duplicate]

When I ran this command: sudo apt install openjdk-8-jre-headless I keep getting this: E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable) E: Unable to lock the ...
Aurora's user avatar
  • 21
0 votes
0 answers
415 views

Various errors while installing java 8 on Ubuntu 16.04 (64 bit) in VM [duplicate]

I am using Oracle VM Virtual Box (Version 5.1.18) to run Ubuntu 16.04. I am using proxy server . I have configured proxy settings in apt.conf and apt.config.In both these files my http proxy is set ...
Ash's user avatar
  • 1
1 vote
1 answer
9k views

NetBeans warning when opening it that the JDK is missing

I have installed jdk version 1.8.0_131 in 16.04, but when I try to run NetBeans it is showing this error: The JDK is missing and is required to run some NetBeans modules Please use the --jdkhome ...
Amir's user avatar
  • 35
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
0 votes
1 answer
5k views

how to run .jar software on ubuntu (17.04)? [duplicate]

Despite following the recommended command line for .jar file : java -jar imker-cli.jar It doesn't work for me : me@pc:~/Documents/imker$ java -jar imker-cli.jar The program 'java' can be found ...
Hugolpz's user avatar
  • 221
6 votes
4 answers
21k views

JAVAC and JPS are not present in /usr/lib/jvm/java-8-openjdk-amd64/bin folder

Below is the java I installed in ubuntu 16.04, but I am unable to find Javac and Jps in this. Can someone help how to get them. $ java -version openjdk version "1.8.0_131" OpenJDK Runtime ...
chandrapvs's user avatar
1 vote
1 answer
1k views

OpenJDK 7 jre required

I have .deb package when I try to install it with Gdebi it return: Error dependency is not satisfiable openjdk-7 jre I have openjdk-8 jre installed but it still appeared referring to How do I ...
Khalil's user avatar
  • 11
0 votes
1 answer
282 views

Packet tracer bridge jar file

root@prateek-desktop:/root/ptbridge-master# java -jar ptbridge.jar OpenJDK Server VM warning: You have loaded library /tmp/packetsocket5426320610063427559 which might have disabled stack guard. The VM ...
Prateek Manocha's user avatar
0 votes
3 answers
14k views

Installing a Java Dev Kit [duplicate]

I am fairly new to ubuntu. I am trying to find a package for the Java JDK to use javac and the other compiler utils included in the JRE. I cannot however seem to be able to install them (either ...
Lorenzo Battilocchi's user avatar
2 votes
0 answers
1k views

Java installed and configured but unable to run

I have OpenJDK 8 installed and configured in the path, but when I try to run Java (such as running a JAR), I get the error: The program 'java' can be found in the following packages: * default-jre *...
Shivashriganesh Mahato's user avatar
1 vote
1 answer
771 views

Cannot start Intellij on Ubuntu 14.04 with JDK 1.8

I recently installed JDK 1.8. When I try to run Intellij using the idea.sh script I get the following error: Unsupported Java Version: Cannot start under Java 1.7.0_80-b15: Java 1.8 or later is ...
dopatraman's user avatar
0 votes
1 answer
200 views

A recent 14.04 update broke a java app

The app that broke is an older Adaptec Storage Manager (v4.30), which has worked faithfully for years now until a recent Ubuntu 14.04 update. The best I can tell is that the problem occurred when ...
ChasW's user avatar
  • 119
0 votes
0 answers
5k views

How do I install openjdk 9 jdk [duplicate]

I tried installing openjdk-9-jdk on ubuntu 16.10 desktop with: sudo apt-get install openjdk-9-jdk and I had this error at the tail end Reading package lists... Done Building dependency tree ...
Olanrewaju's user avatar
1 vote
1 answer
983 views

How do I stop oracle JDK from hijacking PATH and breaking update-alternatives?

I installed oracle jdk on ubuntu 14.04. Now I want to toggle back to openjdk: sudo update-alternatives --config java sudo update-alternatives --config javac But it doesn't work. It seems oracle's ...
jozxyqk's user avatar
  • 1,111
0 votes
1 answer
2k views

unable to "java" , "javac" etc. commands on terminal directly and two versions of jdk? [duplicate]

I usually use eclipse , but I said "lets do some fantasy" to myself and things happened. I tried to use terminal command javac at first. I got The program 'javac' can be found in the following ...
buraky's user avatar
  • 121

1
3 4
5
6 7
12