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

learn more… | top users | synonyms

1
vote
1answer
16 views

Unable to open .jar files with Java

I'm using Lubuntu and trying to open a file named Minecraft.jar, but all the solutions that work for other people aren't working for me. I have these versions of Java installed: openjdk version "9-...
0
votes
1answer
44 views

I messed up the ~/.bashrc file and now terminal doesn't open ubuntu 16.04 [duplicate]

I just installed Android Studio on my ubuntu 16.04 machine and as I didn't want to go to its own home directory and now every single time I try to open the terminal, it tries to start android studio (...
1
vote
0answers
17 views

How to change jdk path in Ubuntu?

I have downloaded the jdk 91 update from the oracle.com I want to apply this update. I kept the .tar.gz file in the directory having path /home/amrit/jdk8/. I tarball and extracted the file. Now when ...
1
vote
2answers
52 views

Running a .jar file with jdk 1.8.0

I installed JDK 1.8.0 from Oracle, and everything works perfectly. I can create, compile and run java files. But I just downloaded a .jar file and tried running it using java -jar path/name.jar and it ...
0
votes
1answer
46 views

installing JDK 8 on ubuntu 15.10 [duplicate]

Hello everyone I have JDK 8 installation file but I don,t know how to install it offline. could you help me?
0
votes
0answers
33 views

Does my Ubuntu have JDK installed?

My Ubuntu is really confusing me. when I run $ java -version to check version of jdk installed it shows like I do not have java but on other hand I can see jdk in /usr/java I want to know if it is ...
1
vote
1answer
127 views

How to remove OpenJDK-9 and all related file to JDK

I know there are many similar post on here regarding issue i am having and trust me I have tried most of them and did not solve my issue. I am trying to uninstall all the JDK files installed in my ...
0
votes
1answer
38 views

Could not extract .bin file

I can not extract .bin file on Ubuntu 16.04 LTS. Error message: root@ilgar-Ubuntu:~# '/home/ilgar/jre-6u21-linux-i586.bin' Unpacking... Checksumming... Extracting... /home/ilgar/jre-6u21-linux-i586....
2
votes
1answer
50 views

Install specific version of OPENJDK

I would like to know if and how is it possible to install a specific version (version and update version) of a OpenJDK on an Ubuntu server? I know how to install it normally following the ...
3
votes
1answer
78 views

Fouled up my openjdk-8-jre

Ubuntu 16.04. I was trying to run pycharm, and realized that I must have corrupted my jre at some point. Even after doing: sudo apt purge openjdk-8-jre running java -version gives me: nick@...
0
votes
0answers
39 views

Error: Could not create the Java Virtual Machine

I downloaded JDK from oracle website, extracted to /usr/lib/jvm/ and ran following commands sudo update-alternatives --install "/usr/bin/java" "java" "/usr/lib/jvm/jdk1.8.0_65/bin/java" 1 sudo ...
0
votes
2answers
43 views

how upgrade jdk?

I need upgrade my jdk to the newest one. Case in that, i have downloaded new Android Studio 2.1 and get such issue if i go according to the link, i realize that my jdk version not compatible ...
1
vote
0answers
147 views

installation of openjdk-8 vs oracle jdk8

I am using Netbeans which I prefer Oracle jdk8. Just now Ubuntu said I had an incomplete upgrade to 16.04. No problem, I let it do its thing. To my surprise it removed Oracle JDK and put openjdk in ...
0
votes
1answer
105 views

How to install oracle jdk-8u-92 on ubuntu 16.04 LTS on 64 bit machine? [duplicate]

can anyone help me in installing oracle jdk 8u-92 on ubuntu 16.04 LTS operating system on a 64 bit machine?
0
votes
1answer
154 views

dpkg error code (1)

I got this error code while installing JDK 9 on my ubuntu 16.04 machine : Des erreurs ont été rencontrées pendant l'exécution : /var/cache/apt/archives/openjdk-9-jdk_9~b114-0ubuntu1_amd64.deb E: Sub-...
0
votes
1answer
34 views

How to redirect ant to use java from jdk in /usr instead from jre in /opt?

I have followed a blog set up jre on my machine in /opt/ directory. Then I redirected firefox to use libnpjp2.so from /opt/java/64/jre1.8.0_73/lib/amd64/libnpjp2.so. Now I have to install another ...
0
votes
0answers
52 views

Please ensure JAVA_HOME points to JDK rather than JRE

today when i opened my IntelliJ i get the Please ensure JAVA_HOME points to JDK rather than JRE error.i search the net and from this link i installed my jdk-8u60-linux-x64.tar.gz downloaded file but ...
0
votes
0answers
761 views

How can i make java version1.8.0_91 my default java version?

When I type: java -version it says: joelle@joelle-Satellite-L745D:~$ java -version java version "1.8.0_91" Java(TM) SE Runtime Environment (build 1.8.0_91-b14) Java HotSpot(TM) 64-Bit Server VM (...
1
vote
1answer
67 views

Java will not run at all and is not recognized as a command no matter how many times I install it

I have been fighting with Java for nearly a week now. Please bear with me, I'm very new to linux and Ubuntu. I first attempted to install the JDK as the following site had written, which did not work....
0
votes
1answer
2k views

how can i install jdk-8u91-linux-x64.tar.gz on ubuntu [duplicate]

I downloaded jdk-8u91-linux-x64.tar.gz from the Oracle website. How can I install jdk-8u91-linux-x64.tar.gz? I have tried apt-get install jdk-8u91-linux-x64.tar.gz and also sudo add-apt-repository ...
0
votes
0answers
85 views

Ubuntu 16.04 waiting for headers - while installing OpenJDK8

I recently install Ubuntu 16.04 and now trying to install OpenJDK8. Everytime the installation gets stuck at 9% with Waiting for headers as attached: Sometime after, it give this error. I have ...
0
votes
1answer
235 views

What is the difference between Oracle JDK 8 and Open JDK 8? [duplicate]

There are two kind of JDK available for Ubuntu(Oracle JDK 8 and Open JDK 8). Which one is recommended for programmer to install ?
2
votes
1answer
3k views

how to install java 8 in ubuntu 16.04? [duplicate]

How to install java-JDK 8 & maven in Ubuntu 16.04 without adding any PPA?
0
votes
0answers
25 views

Error message after installing JDK 8 on Ubuntu, “when loading /etc/profile:”

I need advice about how to proceed with this. After (successfully, by all initial appearances) installing JDK 8 on Ubuntu 14.04 LTS, I received the following message upon rebooting the system: While ...
0
votes
1answer
79 views

Installing of jdk and jre 1.8 in Ubuntu 14.04

I tried with all the types possible of installing Java for example: sudo add-apt-repository ppa:webupd8team/java -y sudo apt-get update sudo apt-get install oracle-java8-installer Even I deleted ...
3
votes
3answers
5k views

How can I install Openjdk on Ubuntu 16.04?

Since I upgrade to the latest version of Ubuntu, cannot install Java OpenJDK needed to compile android custom roms, when I run sudo apt-get install openjdk-7-jdk appear the following error: Reading ...
1
vote
0answers
127 views

Unable to install anything using apt-get

I looked through some threads and couldn't find a solution, apologies if this is a duplicate. After messing up an installation of some package (see below), attempting to install anything yields: $ ...
1
vote
0answers
47 views

var lock issue right after installing JDK and soapUI on my machine

I have been dealing with an issue all day here. I cannot seem to have apt-get work for anything whatsoever. I have been through several parameters here including trying these following solutions: ...
0
votes
1answer
64 views

How to install JDK sources?

How can I download the source code of Java on my local machine, so I can reference it in an IDE?
1
vote
0answers
1k views

How to install Java development kit 8 on 64 bit Ubuntu 14.04

I have been using Ubuntu as my first flavour of Linux for about a week. I am facing problem installing the Sun Java Development Kit (JDK 8) The downloaded files are in .tar.gz extension, i have gone ...
-1
votes
1answer
57 views

Issues while attempting to open a java project with Netbeans on Ubuntu Mate 15.10

Well, i just moved from windows and installed Netbeans to do some java projects, but I can't manage to open, either my old projects or even a new one. Here's some screenshots: while attempting to ...
-1
votes
2answers
32 views

visual VM with JDK problem

I'm new to ubuntu ,i'm trying to use tool called jvisualvm to know if there is amemory leak or not , i got after after installed it update-alternatives --config java There are 3 choices for the ...
0
votes
1answer
132 views

Installing JDK on Ubuntu?

I am quite new to Ubuntu. I have recently installed 14.04 on my PC and it's fantastic. My only real issue for Ubuntu is that I need an Internet connection to install things effectively. I had recently ...
1
vote
2answers
131 views

Changing JDK from Open JDK to Oracle JDK

I installed Android Studio in Ubuntu by following two commands: sudo apt-get ubuntu-make umake android It installed with OpenJDK bydefault using Ubuntu Developer Tool. Now I want to change JDK ...
0
votes
0answers
130 views

Imported Android Studio project has a wrong java path

I just imported an existing Android project into Android Studio running on Ubuntu 14.04. In the Studios Project Structur the JDK location is the following: /usr/lib/jvm/java-8-oracle which is what ...
0
votes
1answer
121 views

netbeans not all requested modules can be enabled

I know this question has already been posted, but the solutions provided don't work for me. I added the webupd8team/java repository and installed oracle-java8-installer and oracle-java8-set-default. I ...
0
votes
1answer
53 views

Getting JDK error while installing anything

I tried to install git and android studio but following error showed while installing. Please do help. Errors were encountered while processing: jdk1.8.0-77 E: Sub-process /usr/bin/dpkg returned an ...
0
votes
3answers
302 views

Help required to install Oracle JDK 8 on Ubuntu 15.10 - Where and how?

edit - the above link answered my question - it's up and running!. thanks Pilot6 and shadow. I am a Linux newbie. I am trying to install the Oracle JDK 8 and NetBeans on my computer. My internet ...
0
votes
1answer
46 views

jre and jdk installation

I got following error while installing the open jdk from ubuntu 14.04. how do i solve this ? You might want to run 'apt-get -f install' to correct these: The following packages have unmet ...
-1
votes
1answer
20 views

Update from java 1.7 to latest version

How can i update to the latest version of java if i have already installed on my pc java 1.7. If i should remove it first, how can i do that?
0
votes
0answers
20 views

Where to find NetBeans userdir?

I'm trying to find NetBeans userdir, as my Netbeans won't start. I've tried re-installing it, but still it won't start. I read here that I should delete the userdir. However, I can't find it. I've ...
0
votes
1answer
58 views

I am not getting .bashrc file on Ubuntu

I'm struggling a lot to install JDK in Ubuntu. I have these steps followed: Downloaded jdk-8u73-linux-i586.tar.gz and extracted the file. Placed jdk1.8.0_73 in /usr/lib/java. Ran the scripts below: ...
0
votes
1answer
392 views

install jdk on Ubuntu with rpm package

I downloaded jdk-8u73-linux-x64.rpm from Oracle. then I try to convert .rpm to .deb to install it on Ubuntu 15.10. So I tried this code: sudo alien jdk*.rpm and after a few minutes I have jdk1.8.0-...
1
vote
1answer
166 views

Switch between multiple java versions

While installing Android Studio on Ubuntu 14.04 I get the message that my java version (javac 1.7.0_79) is causing problems. I found a solution of how to install a newer oracle version of java: sudo ...
0
votes
1answer
46 views

one JVM only — how?

I had to install the Oracle JDK to get Netbeans to launch (forgot about umake). Now that I have the official JVM, I want to remove each and every other JVM -- all the OpenJDK stuff, including IcedTea,...
1
vote
0answers
206 views

JDK related error while installing git

I was installing git on my ubuntu 14.04 with terminal command apt-get install git, but following logs was output showing that there may be something wrong with JDK, but I do have install jdk on my ...
0
votes
1answer
228 views

E: The package jdk needs to be reinstalled, but I can't find an archive for it

any one help me please i can't use apt-get anymore and I searched about this problem and all solutions have failed i removed jdk and installed it but the problem still exists
1
vote
1answer
280 views

Unable to launch Spark

I followed this answer. I am getting this error: spark-class: line 86: /usr/lib/jvm/java-8-oracle/bin/java: No such file or directory And to my surprise, I have: gsamaras@gsamaras:/usr/lib/jvm$ ...
0
votes
0answers
32 views

Can't import Eclipse project in Netbeans

When I'm trying to import an Eclipse project to Netbeans in Ubuntu it gives me the following error