Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [jdk]

Questions relating to the installing and use of the Java Development Kit (jdk)

0
votes
0answers
10 views

Failed to execute goal org.apache.maven.plugins:maven-clean-plugin:2.5:clean (default-clean) on project checkstyle

when i run mvn clean install, i get the error: [ERROR] Failed to execute goal org.apache.maven.plugins:maven-clean-plugin:2.5:clean (default-clean) on project checkstyle: Failed to clean project: ...
2
votes
1answer
304 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 ...
1
vote
1answer
194 views

How to install jdk 11 GA on ubuntu 18.04?

I'm on 18.04, with default-java -> java-1.11.0-openjdk-amd64/ java -version shows: OpenJDK 64-Bit Server VM (build 10.0.2+13-Ubuntu-1ubuntu0.18.04.3, mixed mode) I already did a apt upgrade and ...
0
votes
1answer
64 views

Using update-java-alternatives with openjdk 8 updates java but not javac

I am using Ubuntu 14.04.5 and have several JDKs installed. When I use update-java-alternatives to select openjdk8, this updates java but not javac, which defaults to "auto" (which in my case selects ...
0
votes
1answer
221 views

JDK11 on Ubuntu 18.04

Window user. I am new to Linux. I installed Ubuntu 18.04 on top of Virtual Toolbox. I have questions/problems wrt installing JDK 11. The Ubuntu is clean slate. Nothing is installed on this OS. From ...
19
votes
3answers
7k views

How to update from webupd8 team PPA (Oracle JDK 8/9) that got inconsistent with its GPG key?

A few days ago, I started getting the following error when performing apt-get update: E: Repository 'http://ppa.launchpad.net/webupd8team/java/ubuntu bionic InRelease' changed its 'Label' value from ...
0
votes
1answer
40 views

How to set JAVA_HOME and NUTCH_JAVA_HOME in ubuntu., I tried but while compile nutch with ANT but getting this error

I'm very new to ubuntu, I have installed java and while compiling nutch am getting this error. BUILD FAILED /home/surukam/Desktop/Nutch/nutch/build.xml:101: Unable to find a javac compiler; com.sun....
1
vote
2answers
508 views

Sub-process /usr/bin/dpkg returned an error code (1) Ubuntu 18.04

I am trying to install anything in Ubuntu 18.04 and I get this error trying to install rar It's happend with so many programs ivan@ivan-X441UVK:~$ sudo apt-get install rar Reading package lists... ...
1
vote
1answer
84 views

Android Studio Fall 2018 which JDK for Ubuntu 16/18?

As Android seems to change all the time I put the date into the question title. I've just installed Android Studio which is current as of October 15, 2018 and burned up 2 GB of SSD space. According ...
0
votes
1answer
92 views

JDK not found when installing Java ME SDK on Ubuntu 18.04

Ubuntu 18.04 user here! I'm going to use Java to program embedded systems such as the boards: Raspberry Pi STM32429I-EVAL 32F746GDISCOVERY Intel Galileo Gen. 2. They are not so many, but they are ...
1
vote
1answer
101 views

Which Version of Netbeans is more appropriate with JDK 10.0.1

I've Ubuntu 18.04 installed and I've installed JDK-10.0.1 as well. Previously I installed Netbeans-8.2 and it didn't work. After some research I realize that Netbeans-8.2 is not compatible with JDK-10....
0
votes
1answer
295 views

NetBeans isn't opening on Ubuntu 18.04

I'm a new Ubuntu Linux user and I thought to start learning java with this new environment. I started to install java and NetBeans by searching google, java installed but not NetBeans. I searched more ...
2
votes
1answer
113 views

Getting Java Error Message - JAVA_HOME is not valid:

I'm trying to set up OpenDaylight which is a SDN controller on Ubuntu Virtual Box. The version of Ubuntu is 18.04. OpenDaylight requires java-8-openjdk-amd64 and I have installed it successfully: See ...
4
votes
2answers
71 views

How do I get every program that connects to the internet to do so through my VPN?

I've been trying to install the Android Studio app for 5 days. But I have not succeeded so far. To install Android, you need to install Java. And when I want to install Java, this message shows: ...
0
votes
1answer
216 views

JAVAFX_HOME path on ubuntu

So my problem is openjfx and using it on Scala-sbt project. The actual problem is JAVAFX_HOME path. First of all I have java version 10.0.2 installed on my computer and openjfx (which I take as ...
1
vote
0answers
39 views

How to I configure the home.java variable for vscode in ubuntu 16.04?

In Eclipse, java development is seamless and works just fine. However, Visual Studio Code doesn't seem to recognize the java installation and demands that you manually input its whereabouts. I've had ...
0
votes
0answers
133 views

change JDK path for Android studio

I have Android studio 3.1 which was working with oracle java 10. I have deleted all Java packages and alternatives according to this answer. now starting Android Studio I face Fatal error java.lang....
0
votes
1answer
128 views

java -version still shows old $JAVA_HOME

I unknowingly downloaded the wrong jdk onto my system (openjdk 11) and would prefer java 1.8.0_181 to be installed. I'm just looking to run an application so I believe that jre is all that is needed. ...
0
votes
0answers
24 views

Does anyone here know how to fix this error message from netbeans

after i download netbeans using cd /tmp && wget -c http://download.netbeans.org/netbeans/8.2/final/bundles/netbeans-8.2-linux.sh and install using chmod +x netbeans-8.2-linux.sh sudo ./...
0
votes
0answers
32 views

Failing to run Java with the error “/usr/bin/java: No such file or directory” [duplicate]

I just installed JDK in Ubuntu. When I want to use the java command, I get this error: /usr/bin/java: No such file or directory but I declare the java home using update-alternatives: update-...
0
votes
1answer
137 views

Troubleshoot regarding Oracle java installation

I am beginning to code in java, downloaded the binary from here. Then followed the instructions from here, however I was met with some errors regarding java-package and I ran into this which solved my ...
0
votes
2answers
137 views

java didn't launch

I just deleted the 10 version folder of openjdk. rm -R jvm I re-downloaded then jdk 8 , recreated the folder jvm and extracted the jdk on it. now my java-home points to /usr/lib/jvm/jdk1.8.0_181/...
1
vote
0answers
65 views

install 32bit eclipse parallel to 64bit eclipse in 64bit ubuntu

My preferred java IDE is eclipse. Since I own a lego robot (NXJ) I want to use Java For Lego Mindstorms. I found out I have to use all 32bit architecture since the usb drives won't work otherwise. ("...
0
votes
1answer
1k views

Want to change default java version to 1.8.xx [duplicate]

I downloaded Oracle JDK-8 using sudo apt-get install oracle-java8-installer and set this version to default using sudo update-alternatives --config java but when I run java -version I get java ...
-1
votes
1answer
214 views

What should I do about `javac` command not running? [duplicate]

$ file /etc/alternatives/java /etc/alternatives/javac /etc/alternatives/java: symbolic link to /usr/lib/jvm/java-11-openjdk-amd64/bin/java /etc/alternatives/javac: broken symbolic link to /usr/lib/...
0
votes
0answers
191 views

Could not find Java jdk in a directory that has been renamed

I am trying to built a React Native app using Ubuntu 16.04. When I try to run npm run android in the terminal I get this error ERROR: JAVA_HOME is set to an invalid directory: /home/duong/git/Java/...
0
votes
0answers
41 views

Trouble installing jdk ..i m the superuser [duplicate]

I am haing trouble installing jdk. I am the superuser. I try to setup the installation..but it is giving the msg: /usr/lib/sudo/sudoers.so must be only be writable by owner
0
votes
2answers
990 views

How to install JDK8 on Ubuntu 18.04 64Bit [duplicate]

i have the package jdk-8u171-linux-x64.tar.gz on my pc how to install it on Ubuntu 18.04 LTS
1
vote
1answer
507 views

I am on Ubuntu 18.04 LTS, and is dual booted. I can't install Netbeans!

Netbeans didn't work at first because I didn't have Java installed and now, I have the JDK 10 installed and it won't open -,-. Before I installed JDK 10, I installed JDK 8, it worked fine, but when I ...
1
vote
2answers
716 views

I can't install JRE and JDK on my Ubuntu 18.04 LTS

I can't install both the JRE and JDK. First of all, I have not attempted to install the JDK, but I assume that if I did, it wouldn't work because you need to install the JRE. Second, I can't install ...
1
vote
0answers
1k views

Uninstalling Netbeans 8.2 in Ubuntu 18.04

When I try to run uninstall.sh (Netbeans) it says: Unsupported JVM version at /usr/lib/java/jdk1.8.0_144 But what I did before: downloaded jdk 10.0.1 stored it in /usr/local/java updated /usr/...
0
votes
0answers
16 views

How to completely remove oracal and open JDK from ubuntu 16.04?

I am getting a error with oracal jdk 8, when I am running ubuntu software update in my ubuntu 16.04. So I need to uninstall all JDK form ubuntu. How to ensure that how many jdk installed in my ubuntu-...
1
vote
1answer
216 views

What to do with java tar.gz after installation?

I am new to linux so want to know whether the java tar.gz file can be deleted or not from the local system once java installation is completed ?
2
votes
2answers
2k views

Netbeans 8.1 won't make it past “Turning on modules” screen

This week I installed netbeans 8.1 in my fresh ubuntu 18.04 installation.Prior to that I have installed jdk,jre and configured the JAVA_HOME variable.After trying to open netbeans I get the netbeans ...
0
votes
1answer
69 views

Install and run Java app on Ubuntu 14.04 issue

I want to run just Selenium Standalone Server on Ubuntu 14.04. I had the same issue withopenjdk-8-jdk installation, but this topic solved it. Now I have another problem, I can't just run the Java ...
2
votes
3answers
10k views

How can i install jdk7 on ubuntu 18.04 lts 64bit? [duplicate]

I upgrade my system to ubuntu 18.04 lts, but I work on projects that require JDK 7. How can i install jdk7 on ubuntu 18.04 lts 64bit?
2
votes
1answer
2k views

eclipse: class file version 53.0), this version of the Java Runtime only recognizes class file versions up to 52.0

Since the update yesterday (yes, the linux update), eclipse denies me to run even the most simple helloworld: has been compiled by a more recent version of the Java Runtime (class file version 53.0), ...
0
votes
0answers
175 views

Oracle-jdk8-installer was not found While java is installed

I installed java by downloading its source. I set java path, it's OK and works but when I want to install another app (e.g Apache-Ambari-server with ambari-server start) I get this error: E: Release '...
0
votes
0answers
459 views

Cant find jre folder after installing jdk-10.0.1

Following the link to install jdk https://www3.ntu.edu.sg/home/ehchua/programming/howto/JDK_Howto.html#zz-3. , I was unable to find the jre folder under jdk-10.0.1. "image of the line giving me the ...
3
votes
3answers
2k 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 ...
1
vote
0answers
115 views

Java installation errors

I'm trying to install Java on Ubunut 16.04 LTS. I've done sudo apt-get update, and then java -version(just to verify its not already installed) then I try to download and install with sudo apt-get ...
0
votes
0answers
131 views

Set Oracle JDK 8 as default JAVA - update fails

I've installed java and all it's additionals some weeks ago and could use it via eclipse with no problem. It still works but the last days everytime I boot my laptop an update shows up "Set Oracle JDK ...
0
votes
2answers
761 views

Unable to install JDK 8. I get an error [duplicate]

I ran the following commands to install java: sudo add-apt-repository ppa:webupd8team/java and sudo apt-get update. After that I ran sudo apt-get install oracle-java8-installer and got an error. Here'...
6
votes
4answers
4k views

Check java version without java -version

I get the following error while trying to compile or run everything that has to do with java or javac: Error occurred during initialization of VM java/lang/ClassNotFoundException: error in opening ...
1
vote
2answers
2k views

Ubuntu 16.4 LTS cannot find openjdk-8-jdk

I had to rebuild a docker container this past week, and as part of a 16.04 container creation, it does an apt-get install openjdk-8-jdk which fails with a 404 error. Switching to apt-get install ...
0
votes
1answer
198 views

Oracle Java JDK 9 unable to install via tar

I need Oracle JDK and JRE so i downloaded tar.gz from Oracle downloads page Extracted using tar zxvf jdk-9.0.4_linux-x64_bin.tar.gz as described here https://docs.oracle.com/javase/9/install/...
0
votes
0answers
12 views

How to make a link to files on the panel in Ubuntu 16.04 LTS [duplicate]

all I am a enthusiastic Minecraft player and have downloaded Minecraft to my Ubuntu 16.04 LTS computer I am running oracle java and I'm not able to add Minecraft to the Panel in Ubuntu Can you ...
0
votes
1answer
67 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 ...
1
vote
1answer
247 views

where to update Java JDK? (not how to install)

All the questions on here I've found are how to install JDK. I have JDK already, but Android Studio says it's outdated. I'm asking where I can update JDK. "which java" in terminal gives /usr/lib/jvm/...
0
votes
1answer
618 views

Dbeaver with SDKMAN JRE JDK location

I'm trying to configure Dbeaver with a custom location of my Java installation as I have it installed via SDKMAN. To do that, I have added the vm parameter to the dbearver.ini file, so now when ...