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)

1
vote
1answer
26 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
31 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
26 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
54 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
58 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
64 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
63 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
11 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
46 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
36 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
19 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
71 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
91 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
55 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
497 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
103 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
148 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
773 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
447 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
615 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
890 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
14 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
129 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
1k 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
57 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
6k 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
1k 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
111 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
394 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
1k 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
91 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
107 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
650 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
3k 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
1k 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
176 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
65 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
182 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
372 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 ...
1
vote
1answer
5k views

How to install Java 7 or jkd 7 on Ubuntu 16.04? [duplicate]

I'm really in trouble. As the Java 7 support and built are not available anymore on the web. I have gone through many of resources and question answering websites online but unable to resolve this ...
6
votes
1answer
952 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-...
0
votes
1answer
3k 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) ...$ ...
0
votes
0answers
43 views

I can't install JDK on ubuntu [duplicate]

I can't reinstall JDK! ubuntu: 16.04 LTS PC: ASUSX555L user:~$ java -version A aplicação 'java' poderá ser encontrada nos seguintes pacotes: * default-jre * gcj-5-jre-headless * openjdk-8-jre-...
0
votes
1answer
468 views

Unable to locate package default-jdk on Ubuntu 16.10 [closed]

I am trying to install Java on my system. when i run sudo apt-get install default-jdk I get E: Unable to locate package default-jdk and before that i used sudo apt-get update && apt-get ...
0
votes
1answer
233 views

Default Java not detected by Maven as installed

I have an Ubuntu installation with Oracle JDK 1.8.0_141 that was installed using this guide. tar file was extracted to /opt/jdk and below commands used to set java as default. update-alternatives --...
0
votes
0answers
18 views

Installing JDK from tar.gz file [duplicate]

So I downloaded jdk-8u152-linux-x64.tar.gz from Oracle. I executed tar zxvf jdk-8u152-linux-x64.tar.gz and it gave me a folder called jdk1.8.0_152 and that's it, I'm stuck here I don't know what to do ...
-3
votes
1answer
34 views

Ubuntu new software instalation [closed]

I have to install jdk in my Ubuntu 17.04v it will display the error like unable to locate package default -jdk