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
Join us in building a kind, collaborative learning community via our updated Code of Conduct.

Questions tagged [jdk]

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

0
votes
0answers
13 views

OpenJDK Eclipse compatibility

I am using Eclipse Photon since a few days. I have OpenJDK 8 installed on my machine. For developing GUI applications in Java, I installed WindowBuilder package in Eclipse. Whenever I use ...
0
votes
1answer
21 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
50 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
43 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
101 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
41 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
74 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
414 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
324 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
397 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
443 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
58 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
1answer
680 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
52 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
3k 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
0answers
683 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
63 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
339 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
54 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
91 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
536 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
2k 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
633 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
149 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
56 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
145 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
202 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
4k 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
642 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
380 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
172 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
33 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
1
vote
1answer
2k views

Completely remove Java 9 from Ubuntu 17.10

did a fresh Ubuntu 17.10 installation a while ago and needed to install Java to build react-native apps on my PC. So I was able to install Java 9 in the manual way by downloading it from the Oracle ...
0
votes
1answer
275 views

Installing JDK on 16.04 problem

I am trying to install JDK 8 or 9, can't get either to work, so that I can use my laptop for my Java class. When I try to install it I get an error to install. This is what I have done so far: sudo ...
1
vote
2answers
294 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....
2
votes
0answers
541 views

webupd8team ppa errors when installing java (with a 404) [duplicate]

Im trying to install java8 in a ubuntu/xenial and im getting this error: Creating /var/cache/oracle-jdk8-installer/wgetrc and using default oracle-java8-installer wgetrc settings for it. Downloading ...
4
votes
1answer
4k views

Error while installing Oracle JDK 9 Ubuntu 17.10 [duplicate]

I did a fresh installation of Ubuntu 17.10. Now I'm trying to install Java 9 on Ubuntu. I followed this askubuntu answer and when I run sudo apt-get install oracle-java9-installer this is what I'm ...
7
votes
2answers
2k views

Cannot install JDK 9 via apt

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 ...
3
votes
1answer
202 views

Soft and hard links for Java - why do only soft links work

I have installed Oracle Java on my Ubuntu 16.04. I tried making a hard link: ln /usr/local/jdk-9.0.1/bin/java /usr/bin/java When I ran java I got this error: java: error while loading shared ...
0
votes
0answers
173 views

Problems installing mySQL server on 16.04 [duplicate]

I'm having problems intalling mySQL server on 16.04. I tried: sudo apt-get install mysql-server Reading package lists... Done Building dependency tree Reading state information... Done You ...
1
vote
1answer
140 views

JDK installation: sudo does not run the bash file properly

I was trying to install NetBeans along with JDK from Oracle website. However, I had an issue that the installation produced an exception in thread main(I have run chmod +x already), I was executing ...
2
votes
0answers
127 views

Install and setup java JDK from Oracle

Trying to understand what and why should be done while installing JDK 9 from Oracle from fresh. I have downloaded archive jdk-9.0.1_linux-x64_bin.tar.gz. I found that this archive contains whole java ...
0
votes
0answers
50 views

pig -version Shows error

deepak@deepak-Linux:~$ pig -version /usr/local/hadoop/bin/hadoop: line 166: /usr//bin/java: No such file or directory deepak@deepak-Linux:~$ echo $JAVA_HOME /usr/java/jdk-9.0.1 deepak@deepak-Linux:~$...