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

learn more… | top users | synonyms

4
votes
1answer
245 views

Error while installing Oracle JDK 8 in Ubuntu 15.04

These commands both run successfully sudo add-apt-repository ppa:webupd8team/java sudo apt-get update But when I run sudo apt-get install oracle-java8-installer, it downloads the JDK but then ...
2
votes
1answer
495 views

Netbeans cannot find java

So, I uninstalled Openjdk 7 and installed Oracle Java from webupd8. But after the installation Netbeans won't start. I have tried all the methods posted online about editing the netbeans.conf file and ...
2
votes
1answer
544 views

How can I Install Java JDK7, apache tomcat , eclipse , spring tool suite in my ubuntu 14.04?

could anyone tell me how to install Java JDK7 , apache tomcat , eclipse , spring tool suite in my ubuntu 14.04 ? Provide proper steps .
2
votes
1answer
508 views

Connecting to edelivery.oracle.com (edelivery.oracle.com)|23.57.214.140|:443… failed

I am running the following command sudo apt-get install oracle-java7-installer however I am receiving the following error Downloading Oracle Java 7... --2015-03-10 08:13:35-- http://download....
2
votes
1answer
62 views

Are there any reliable sources with more frequent jdk icedtea package releases?

I use the canonical repository for retrieving updates from the jdk icedtea, but it seems that it is lagging a lot behind what is supposed to be the latest stable version as per the icedtea website (...
2
votes
1answer
344 views

Removed JDK6, installed JDK7. JAVA_HOME broke and javac not installed

I am finding that the javac is not in the java-7-openjdk-i386 package. Problem 1: $ javac The program 'javac' can be found in the following packages: * default-jdk * ecj * gcj-...
2
votes
1answer
400 views

java MainServer gives java.lang.UnsupportedClassVersionError: Unsupported major.minor version 51.0

Compiling is easy but when using java to run the programs, it gives Exception found. I am using Ubuntu 12.04 without internet connections. Also, installed Oracle JDK7 and JRE7. Also did the update-...
1
vote
1answer
76 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....
3
votes
0answers
37 views

Is there anything wrong with java-package?

There is a question about How can I install Sun/Oracle's proprietary Java JDK 6/7/8 or JRE? There are 23 answers at the moment, most of them are either explaining how to do it manually (unpack, move ...
3
votes
0answers
354 views

Maven not working after updating java

I have recently updated my java version to jdk7u9 in my ubuntu 11.04 Natty after which my previous maven projects have stopped working. I have installed using this script When I run maven install in ...
2
votes
0answers
287 views

Is there any problem with OpenJDK on Minecraft?

Mojang recommends using Oracle's JRE, but I see people using OpenJDK all the time. What are the advantages and disadvantages to using one or the other on Ubuntu, either in general or specifically as ...
2
votes
0answers
461 views

Unable to start topcoder arena in Ubuntu 14.04

When I want to clear cache using javaws - viewer these error comes. I am trying to launch my topcoder arena. Picked up JAVA_TOOL_OPTIONS: -javaagent:/usr/share/java/jayatanaag.jar Exception in ...
2
votes
0answers
268 views

Script not working through Cron - JDK version mismatch between shell and script

I am executing a script through cron using the below command: */10 * * * * cd /nas/app/someFolder/psox; ./RunPSOX.sh >> /tmp/trial.log 2>&1 This is being executed by root user. All ...
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
0answers
170 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 ...
1
vote
0answers
130 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: ...
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
vote
0answers
207 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 ...
1
vote
0answers
45 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 ...
1
vote
0answers
216 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 ....
1
vote
0answers
367 views

java-8-oracle (1.8.0_66) problem with PrintAssembly “Could not load hsdis-amd64.so”

I'm trying to run my programs with -XX:+PrintAssembly options but I always get message like: Java HotSpot(TM) 64-Bit Server VM warning: PrintAssembly is enabled; turning on DebugNonSafepoints to ...
1
vote
0answers
88 views

Broken Packages Issue while installing JDK on Ubuntu 14.04

I am having issues while trying to install JDK on Ubuntu 14.04. Following is what I see: araj1@araj:~$ sudo apt-get install openjdk-6-jre Reading package lists... Done Building dependency tree ...
1
vote
0answers
584 views

Ugly/Non Anti-Aliased fonts in Java-Swing Applications

I've recently switched to Ubuntu and I've installed Oracle's Java JDK 8u45 (32 bit) using the webupd8team/java repository. Everything seems to be working fine except that the Java-Swing applications ...
1
vote
0answers
38 views

Unable to execute java programs on ubuntu 14 studio lite

I recently installed ubuntu 14.04 studio lite 32 bit. I have java apps that I created using netbeans 8/open jdk 1.7. They run fine using the netbeans debugger. However when I create the tar, it can't ...
1
vote
0answers
211 views

use jdk1.8.0_20 which comes with Netbeans also for Aptana

I just installed Netbeans 8 with jdk1.8.0_20. Which is working fine but a little bit slow. So I figured why not try Aptana Studio but Aptana website states that openjdk is not supported. Can I use ...
1
vote
0answers
338 views

Java apps consume 200% my CPU after cloning image in another computer

Yesterday I cloned an image of Linux from a Core 2 Duo to a Core i5 laptop. Everything works as expected except for JVM. I've installed in my machine the OpenJDK, Java 8 (jdk jre) and Java 7 (jdk jre)...
1
vote
0answers
74 views

While installing jdk

I'm trying to install java using the WebUpd PPA. After adding their PPA and updating, I try: sudo apt-get install oracle-java7-installer and it gives me an error Oracle JDK 7 is NOT installed. ...
1
vote
0answers
74 views

Unable to update JDK 7

I've installed JDK through the Webupd8 PPA (oracle-java7-installer). The problem is that whenever I try to update Java, the process just pauses after connecting with Oracle's server. If I force close ...
0
votes
0answers
34 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 ...
0
votes
0answers
48 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
0answers
55 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
856 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 (...
0
votes
0answers
89 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
0answers
28 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
0answers
135 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
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
0answers
33 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
148 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
39 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
0answers
40 views

Why does Ubuntu not want to remove old Java versions?

I finally got my 14.04 system up to date with Java and JDK 8 - as you can see in the screenshot, I still have JDK7 though. When I go to uninstall it, it says it will uninstall freemind and other ...
0
votes
0answers
30 views

Uninstalling Java JDK causing unable to locate package?

I'm very new to using the terminal, and I recently installed openJava JDK for use in Android Studio. Upon setting up the studio it said that I should uninstall openJava JDK and instead install Oracle ...
0
votes
0answers
38 views

Chrome fonts broken after Installing java on Ubuntu 14.04

I've been trying to solve this problem for 2 days and failed. I was trying to solve another problem on Ubuntu 14.04 with anti aliasing not working in WebStrom and ended up breaking everything. Chrome ...
0
votes
0answers
743 views

“Error occurred during initialization of VM” IntelliJ

So, I've been having the issue already discussed here, and here, which showed: Error occurred during initialization of VM java/lang/NoClassDefFoundError: java/lang/Object to a version check. ...
0
votes
0answers
38 views

Installing JDK (no 3rd party tools)

How do I install the JDK from the .tar downloaded from the java website using no 3rd party tools, set up the path and jdk_home variables so they do not reset when close the terminal and make jar run ...
0
votes
0answers
47 views

How to run jar files

I'm pretty sure this has been asked once but I can't find it so here I am. I just installed Ubuntu 14.04 and I used the command java-version to check if I have Java and it says I have it with the ...
0
votes
0answers
81 views

Permission problem with Java Applets

I have a problem with my Java installation. I can run every Java program, but if I need an Applet, the Browser displays a blank section! :/ If I start Firefox with the terminal, I see following ...
0
votes
0answers
186 views

trying to install pycharm but need to install JDK first

gives me this error The following packages have unmet dependencies: openjdk-6-jre-headless : Depends: ca-certificates-java but it is not installable Depends: java-common (>...
0
votes
0answers
247 views

Trying to install Maven, getting JAVA_HOME error

I already have jdk installed and now I would like to learn Maven. When I run mvn -version I get: Error: JAVA_HOME is not defined correctly. We cannot execute /usr/local/java/jdk.1.8.0_60/bin/java ...
0
votes
0answers
194 views

Ubuntu 14.04 crashes when running a project in Netbeans 8.0.2

There is one more topic with similar question, however all the suggested solutions there, didn't work for me. I'm using Netbeans 8.0.2. When I try to run a project, the whole system crashes. dpkg --...