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

learn more… | top users | synonyms

1
vote
0answers
13 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
38 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: ...
0
votes
0answers
18 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
39 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
80 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
68 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
100 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: ...
0
votes
1answer
29 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
43 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
464 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
57 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 ...
0
votes
1answer
1k 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
72 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
101 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 ?
0
votes
1answer
1k views

how to install java 8 in ubuntu 16.04?

How to install java-JDK 8 & maven in Ubuntu 16.04 without adding any PPA? Thanks in advance
0
votes
0answers
22 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
67 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
3k 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
110 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
48 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
915 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
47 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
22 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
122 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
109 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
89 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
86 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
216 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
41 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
17 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
57 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
330 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 ...
1
vote
1answer
97 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 ...
1
vote
0answers
191 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
139 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
207 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
29 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
0
votes
0answers
40 views

Oracle JAVA IDEs freeze

I experience a freeze since few months. I'm using Phpstorm and since june I has to downgrade java (oracle, phpstorm can't work with openJdk) jdk from 8 to 6 to avoid a freeze when the IDE is indexing ...
0
votes
2answers
53 views

How i can run java from terminal? [closed]

I've copy the java from downloads folder to the bin folder and I've tried so many ways to set it. So can just type java in terminal. But it always not working. Please help me.
-1
votes
1answer
55 views

what are these outputs in terminal while installing/upgrading jdk

I've been installing jdk i have more than single problem 1.in 1st line when i try to set alternative of java it said java is already managed what does this mean 2.why i have to type java1, javac1. ...
-1
votes
1answer
137 views

Unable to install jdk1.8.0_65 on Ubuntu 14.04

I've created the /usr/lib/java directory and moved the jdk directory in it. but while using the following commands, i'm not getting any output(not even an error): sudo update-alternatives --install ...
1
vote
0answers
185 views

Can't find JDK for Unity3d development

I'm developing on Unity3d 5.2 a game which should be build for an Android. I use Ubuntu 14.04. I used: sudo apt-get install openjdk-7-jdk to install java. Set $JAVA_HOME and $PATH variables in ...
0
votes
1answer
79 views

Trying to install Java JDK from their SE Downloads page. Don't know how to use tar.gz

So I am trying to install Java JDK in a more difficult manner I know. But I want to understand what I am doing. I have the tar.gz file downloaded from here. Now I used tar -xzf ...
0
votes
0answers
50 views

Multiple versions of Java on Ubuntu

My end goal is to run Diffkit http://www.diffkit.org on ubuntu 14. JRE 7 is not supported, so I am installing JRE 5. I followed the instructions in an existing answer Downgrade Java 1.7 to Java 1.5 ...
0
votes
0answers
38 views

How to handle Java and software installation

I am not a Java expert and I am trying to understand how java relates to different programs. After some program installations (latest versions) I think that the default java is changed and I ...
0
votes
1answer
345 views

which java se to download for linux

1 . i went to oracle site but i don't understand which Java to choose ! Linux ARM 32 Hard Float ABI 77.71 MB jdk-8u71-linux-arm32-vfp-hflt.tar.gz Linux ARM 64 Hard Float ABI 74.65 MB ----- ...