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

learn more… | top users | synonyms

0
votes
2answers
2k views

Setup JDK for android studio

I was setting up android studio and got this So I followed the answer here and used sudo update-alternatives --set java /usr/local/java/jdk1.7.0_17/jre/bin/java sudo update-alternatives --set ...
263
votes
23answers
395k views

How can I install Sun/Oracle's proprietary Java JDK 6/7/8 or JRE?

I want to install Oracle's JRE and to update to the latest version with the Software Updater when they released. Is there a Ubuntu package that is provided by Canonical or Oracle? Before release Java ...
0
votes
0answers
14 views

Update-alternatives creating symlink to directory instead of file

I ran update-alternatives --install /usr/bin/java java /opt/jdk/jdk1.8.0_11/bin/java 100 It is creating symlink named java to /opt/jdk/jdk1.8.0_11/bin/ instead of /opt/jdk/jdk1.8.0_11/bin/java inside ...
1
vote
0answers
34 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 ...
0
votes
1answer
1k views

Eclipse can't find Java after upgrade to 14.04

After upgrade to Ubuntu 14.04 Eclipse 3.8 can't find any installed Java VM. I have the Sun JDK 1.7 and the openJDK7 installed. I have tried modifying the eclipse.ini to point it to one of the ...
0
votes
0answers
13 views

JDK 8 installation from .tar.gz file [duplicate]

I have downloaded jdk-8u11-linux-x64.tar.gz from the oracle website, and I have done gunzip and tar -xf which extracted all the files into a jdk directory(/usr/local/src/jdk1.8.0_11). Now is that it ...
1
vote
2answers
17k views

How to setup Java-Home and Path in Ubuntu 12.04

we are new to Ubuntu.Recently we changed my server OS to ubuntu 12.04 from windows 7 . every one have their own login details. one of my college installed Open-Jdk7. I asked him, where you installed ...
0
votes
2answers
130 views

Switch to Oracle Java JDK in 14.04?

Ubuntu 14.04 comes with OpenJDK after updating from 13.10. $ java -version java version "1.7.0_55" OpenJDK Runtime Environment (IcedTea 2.4.7) (7u55-2.4.7-1ubuntu1) OpenJDK 64-Bit Server VM ...
2
votes
1answer
166 views

Problem downloading Oracle JDK 7 [duplicate]

I'm using Ubuntu 12.04 LTS. I'm trying to install Oracle JDK 7. When I tried to directly download the jdk-7u51-linux-x64.tar.gz from the official website, the download started and after downloading ...
1
vote
0answers
30 views

Eclipse does not start on 14.04

I recently upgraded to Ubuntu 14.04 and have been trying to install and use Eclipse ever since. I tried using both open JDK as well as Oracle JDK installations(both Java 7 and Java8) and both Eclipse ...
0
votes
2answers
83 views

Changing the Java Runtime in NetBeans 8 on Ubuntu 14.04

(Not sure if this is the right site for this question - if not please migrate.) I am using Netbeans 8 for C++ on Ubuntu 14.04. Ubuntu comes with the Open JDK Runtime, which is what Netbeans is ...
0
votes
0answers
123 views

How do I install Eclipse Luna and JDK8 to work in Ubuntu Studio using XFCE?

I tried following guides online to install Eclipse, but I'm not sure if it was supposed to work for my distro. I'm also unsure if openJDK 8 is the same thing as JDK8 for linux and whether or not it's ...
1
vote
1answer
428 views

Having problem with installing JDK 7 and 8

I wanted to install JDK 7 and 8 on my system and I followed bellow post: http://stackoverflow.com/questions/16263556/installing-java-7-on-ubuntu But now, when I enter the: sudo apt-get install ...
1
vote
1answer
31 views

How do I change my java version?

I want to install Oracle JDK on my Ubuntu 14.04. I tried using webupd8's method. The installer worked fine but the when I type java -version I get: java version "1.7.0_55" OpenJDK Runtime Environment ...
1
vote
2answers
45 views

Install Java 6 for a single project while leaving the default for the rest of the system at Java 7

In order to install a development environment for an older version of Android, I need to have Java 6 installed. I already, however, have Oracle Java 7 installed on my system and would like to keep it ...
1
vote
0answers
26 views

Eclipse dosn't see JDK

I had installed Eclipse and it was working well few days ago. Now I can't create Java project, there is no such option and in the Eclipse Preferences there is no mention about the word Java. I was ...
1
vote
1answer
112 views

IcedTea plugin for openjdk 8

I updated from openjdk 7 to openjdk 8. Meanwhile I uninstalled jdk 7(which uninstalled icedtea plugin too). I tried to reinstall icedtea with sudo apt-get install icedtea-7-plugin But it ...
1
vote
1answer
85 views

Can't run InstallJava executable file

I can't seem to run a Java executable file, even though I've already installed the latest jdk. See the below screenshot. Am I using the right command, via: ~$ open InstallJava or is ~$ ./InstallJava ...
2
votes
1answer
307 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 ...
0
votes
0answers
300 views

Eclipse Kepler crashes on Ubuntu 14.04 when using WindowBuilder

I'm using Ubuntu 14.04 and with a lot of problems I have to face daily with this OS, there is another recent one. Problem: Whenever I try to use Eclipse's WindowBuilder to design SWING GUIs, after a ...
1
vote
1answer
157 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 * ...
25
votes
4answers
87k views

How can I tell what version of Java I have installed?

I want to start toying around with java (eventually getting to the point where I can write basic little programs for android or web), but I've managed to have java messed up on my computer (from past ...
0
votes
1answer
74 views

NetBeans has broken interface with OpenJDK

Sorry for English. Usually (say, at 4/5 of times), when I start NetBeans, interface is partially broken. For example, menu items are appearing and at once disappearing after click; some parts of ...
0
votes
0answers
34 views

error showing: unable to launch “ PATH=…” X session ---, falling back to default session

When I logged in after successfully installing jdk 1.8.0_05 on Ubuntu 14.04 it says: :unable to launch "PATH=/usr/local/sbin ...... X session --- ...
2
votes
1answer
801 views

How do I get ORACLE JAVA SE 7 to work?

I am a newbie to Ubuntu, so kindly be considerate. I recently manually downloaded & installed (Java SE 7ux) JavaSE 1.7.0_51. Linux x64 (for 64-bit system) "tar.gz" package. My Ubuntu version is ...
0
votes
1answer
1k views

How to set the JDK for Android Studio?

I can't compile a default new project for Android 2.1 because(?) the JDK used by Android Studio is JDK 1.7 but it should be JDK 1.6. To change it I go to File -> Project Structure and try to find the ...
11
votes
4answers
24k views

'tools.jar' is not in IDEA classpath

I am a new user of Linux, it has been recommended to me by my friend. He told me to install software called IntelliJ Idea IDE. Well I have been following the tutorial. But now when I try to open ...
0
votes
3answers
70 views

Eclipse and java 7 but no javac?

I have a java computer program that I can compile in Eclipse just fine. I want to compile it from the command line and get the message javac not found. I figured that I just didn't have my path setup ...
80
votes
11answers
180k views

How do I install Oracle JDK 6? [duplicate]

Most of the software is not thoroughly tested with Java 7 and I would like to install Oracle's JDK 6.0 on Ubuntu 11.10. Could someone please provide me the instructions for the same?
1
vote
1answer
118 views

intellij idea not opening because of jdk/bin/java

I am relatively new to ubuntu. i am using idea intellij from jetbrains for developing applications with gwt and java. Recently i have installed ubuntu 14.04 and everything works fine but idea 13. I ...
2
votes
1answer
614 views

Multiple JDK is not working properly in Ubuntu 14.04

JDK versions (jdk1.7.0_21 and jdk1.7.0_55) Installed and Configured like below. jdk1.7.0_21 update-alternatives --install "/usr/bin/java" "java" "/usr/lib/jvm/jdk1.7.0_21/bin/java" 1 ...
11
votes
6answers
24k views

How do I make java default to a manually installed JRE/JDK?

I have Ubuntu 12.04 amd64 installed on my machine, on the previous versions of Ubuntu it was deadly easy, now there is this command update-java-alternatives with a really bad man page. I just have my ...
2
votes
0answers
127 views

Error while running Java in Eclipse [closed]

I'm getting an invalid error while creating project name of Java in Eclipse. I hope you suggest me any solution to it. Error: # # A fatal error has been detected by the Java Runtime Environment: # # ...
1
vote
1answer
70 views

Eclipse IDE hello world problem

I'm having problems running a simple java program "Hello world" i had installed the Eclipse Java EE IDE from eclipse site and before it i had installed jdk btw im using ubuntu 14.04 Any ideas ...
0
votes
1answer
2k views

gzip: stdin: unexpected end of file -> problem in extracting jdk-7u55-linux-x64.tar.gz

I have downloaded 'jdk-7u55-linux-x64.tar.gz' When I execute following command to extract, sudo tar xvzf jdk-7u55-linux-x64.tar.gz also tried, sudo tar xvf jdk-7u55-linux-x64.tar.gz sudo tar xf ...
2
votes
2answers
3k views

jdk7 post installation help

I was installing JDK7 on Ubuntu 12.04 by following the guide posted on web8. The commands posted in the guide were: sudo mkdir -p /usr/lib/jvm/ #just in case sudo mv java-7-oracle/ /usr/lib/jvm/ ...
3
votes
1answer
1k views

update-binfmts warning

I'm running Lubuntu on a netbook and I've installed Oracle's JDK. Everything seems to work fine. The only problem is that when the Oracle JDK updates, I get the following warning: update-binfmts: ...
2
votes
1answer
343 views

Download failed : Oracle JDK 7 is NOT installed

When i try to install something it gives me this error: HTTP request sent, awaiting response... 403 Forbidden 2014-04-23 09:32:53 ERROR 403: Forbidden. download failed Oracle JDK 7 is ...
0
votes
2answers
2k views

Installing Spark on ubuntu

I am installing Spark IM Client for Ubuntu. The tar.gz doesn't appear to be functional at ALL, (considering the /bin directory is completely empty and lacks important things like unpack200) but I ...
1
vote
0answers
71 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 ...
7
votes
3answers
7k views

Netbeans install error: The specified jdk folder does not contain jdk

During installation of Netbeans 7.3 I got this message the specified jdk folder does not contain jdk I have openjdk 7 installed on my system using apt-get. I tried to specify the path to ...
1
vote
2answers
1k views

installed jdk by and have Error: Could not create the Java Virtual Machine

I am getting my new laptop going and went to install the latest oracle JDK 7u25. I followed the instructions on this site to do it. Afterwards when I type java --version in the terminal I get the ...
0
votes
1answer
140 views

Unable to install jdk 6 after uninstalling jdk 7

Want to install fresh jdk 6 for Android development. Before I had jdk 7 installed which I removed for fresh jdk 6 installation. Tried using the webupd repository way, not of use, tried downloading the ...
1
vote
1answer
262 views

install jdk6 on ubuntu 12.04, can use it in root user but can't in normal user

I am trying to install jdk-6 in ubuntu 12.04. I put the folder in /opt and set the environment path: vim /etc/profile vim /etc/bash.bashrc add this to both of the files: #set java environment ...
1
vote
1answer
664 views

Ubuntu 13.04 - Unable to install JDK7 [closed]

I have an Ubuntu 13.04 64-bit installed and I would like to install JDK 7 for Oracle Sql Developer. My problem is when I try to install it I get the next: kwarr@kwarr-K54LY:~$ sudo apt-get install ...
13
votes
4answers
29k views

How to install openjdk-7-jdk on Ubuntu 12.04 without dragging in unrelated GUI and sound packages?

Ubuntu 12.04.2 LTS What's going on here? # apt-get install openjdk-7-jdk Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be ...
0
votes
0answers
57 views

Ubuntu does not recognise installed Oracle JRE & installs OpenJDK packages

I have Oracle JRE installed on my system. However while installing tomcat7 with apt-get it does not recognize my installed oracle java(installed using tar from oracle website), but on another system ...
4
votes
2answers
5k views

“Oracle JDK 7 Is NOT installed” error?

I'm trying to install JDK7 on ubuntu 12.4. In the first try, the power has gone and the laptop shutdown in the middle of downloading JDK7 using terminal as I was using the next terminal commands ...
0
votes
1answer
267 views

Open JDK doesn't run my jar files

I decided to start java programming on Linux instead of Windows, but I can only open my projects in the NetBeans IDE. When I make the distribution into a .jar file, I can't open them. I already gave ...
0
votes
1answer
542 views

Will 64-bit version of Java JDK work on 64-bit machine running 32-bit version of Ubuntu?

I have a 32-bit version of Ubuntu 13.04 running on my 64-bit machine. I'm planning to install the 32-bit version of Eclipse 4.3 but I need to install Java JDK first. I've had problems finding 32-bit ...