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

learn more… | top users | synonyms

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
votes
0answers
23 views

“JAVA_HOME is not defined correctly” error while executing ant

I have uninstalled ant in my Ubuntu but when typing ant I am getting the error. I want to completely uninstall Ubuntu source files also I want to rectify this error: Error: JAVA_HOME is not defined ...
196
votes
21answers
316k 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 ...
1
vote
0answers
20 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 ...
6
votes
3answers
5k 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 ...
0
votes
2answers
864 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 ...
9
votes
3answers
17k 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 ...
11
votes
2answers
28k views

Installing Eclipse Kepler and Java JDK

I need some help to set up the Eclipse Kepler 4.3 and Java JDK last version on Xubuntu, I whould like to do it by the command terminal. Which are the right commands?
0
votes
1answer
61 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
45 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 ...
0
votes
2answers
9k 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 ...
1
vote
1answer
159 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 ...
9
votes
4answers
21k 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
36 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 ...
2
votes
0answers
88 views

Problem downloading Oracle JDK 7

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 ...
2
votes
2answers
2k 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
45 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
465 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 ...
0
votes
1answer
22 views

My netbeans is not working after I deleted the jvm folder

My netbeans is not starting since I deleted the /usr/lib/jvm folder. But I have installed java jdk 1.7.0_51.deb file and the file dir is /usr/java. When I tried to start the netbeans using terminal ...
0
votes
0answers
56 views

How to install Lucene 4.0.7 in ubuntu 12.04

I am using ubuntu 12.4 and I have an assignment to explore Lucene 4.0.7. But I could not install it. I did not get any type of help from search engines or other forums. So please any body help me.Here ...
0
votes
2answers
42 views

Installing OpenJDK 7 didnt install javac

I am very new to using the linux operating system and I'm currently using Ubuntu 13.10 coming off using windows for my whole life. I have been trying to get java development kit installed so I could ...
0
votes
2answers
986 views

How can I uninstall my current java and install sun java 1.6

I installed jdk using the following command: sudo apt-get install default-jdk but it is the wrong version. I need Java SE 1.6 for building Android. When I try building Android, I get a ...
1
vote
1answer
156 views

JAVAC is not in the jdk path but java -version says JDK is installed

When I type javac in the terminal, this is what I get: The program 'javac' can be found in the following packages: * default-jdk * ecj * gcj-4.6-jdk * openjdk-6-jdk * gcj-4.5-jdk * ...
0
votes
0answers
83 views

I just try to install Netbeans but there is more problem with JDK

Hi, im new at ubuntu and i want to use netbeans. I downloaded netbeans from its web site then I wrote this commands to the line hakki@hakki-K55VM:~/Downloads$ chmod +x netbeans-7.4-linux.sh ...
1
vote
1answer
89 views

Programming Java on Ubuntu 13.10 [duplicate]

I have ubuntu 13.10 and I am trying to use a disk that contains a book, How to program Java, 7th edition. It is the Linux version CD and I can't figure out what program to use so I can look at the ...
0
votes
1answer
61 views

How to remove an unsuccessful installation of Java 6

I unsuccessfully tried installing Java 6 by copy-pasting the following from http://www.webupd8.org/2012/11/oracle-sun-java-6-installer-available.html in the terminal window: sudo add-apt-repository ...
10
votes
5answers
19k 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
1answer
193 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 ...
5
votes
3answers
14k views

Specify JDK for tomcat7

I have installed tomcat7 (using apt-get install) and whenever I want to start tomcat7 it says : * no JDK found - please set JAVA_HOME I have set JAVA_HOME in my bash.bashrc and also in ~/.bashrc ...
1
vote
0answers
90 views

Crash sts ubuntu 13.10

I use Spring Tool Suite for develop a java program, I have installed JDK1.6.0_45. I have ubuntu 13.10 but when the project run the STS crashed. # # A fatal error has been detected by the Java Runtime ...
0
votes
0answers
25 views

jdb not starting up

I am having a wierd problem. I manually installed the newest JDK from Oracle just about an hour ago. Now when I try running jdb through the command jdb DocumentListing1.java the output reads: The ...
0
votes
1answer
59 views

install rxtx under JDK

A java developer who want to send SMS ,may use SMSLib project. SMSLib requires to set up : javacomm library (if it is windows plateform) rxtx library (if it is linux plateform ) by adding it in ...
252
votes
0answers
337k views

How do I install Oracle Java JDK 7? [duplicate]

If I downloaded the latest JDK from Oracle, do I just download the .tar file and extract it to /usr/lib/jvm/?
1
vote
1answer
24 views

Error when installing Netbeans

I need setup NetBeans on Ubuntu 12.04,but it got this error Please help me. Thanks everybody
1
vote
1answer
37 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 ...
75
votes
11answers
164k 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?
0
votes
0answers
44 views

Trying to install Oracle 6u4 on Ubuntu 13.10 and cannot find the libnpjp2.so browser plugin

I need Oracle's Java 6u4 to run a specific web applet for work. I've downloaded the .bin for 64-bit Linux from Oracle's website, and went through this AU answer. Everything seemed to be going fine, ...
0
votes
1answer
727 views

problem with jdk 6 and tomcat 7

I installed tomcat 7 and am using JDK 6 when I start tomcat7 I get this sudo service tomcat7 start * Starting Tomcat servlet engine tomcat7 start-stop-daemon: unable to start ...
1
vote
0answers
99 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 * ...
0
votes
2answers
48 views

Where to write java programs on ubuntu?

I want on write java programs on ubuntu. I have java on my windows OS and I write programs in Notepad++ and compile and run it in command prompt. I installed java on ubuntu. What should I use to write ...
0
votes
2answers
57 views

Is there a way to keep Oracle's JRE/JDK as the default JRE/JDK?

Okay here is my issue. Every time I install a .deb installer of a program that requires java. OpenJDK hijacks my system and sets it as default Java. I don't want to use OpenJDK, if I did I wouldn't be ...
0
votes
4answers
96 views

Oracle's JDK won't install

After downloading jdk-7u45-linux-x64.tar.gz and moving it to my own folder ~/java, I followed their steps here: http://docs.oracle.com/javase/7/docs/webnotes/install/linux/linux-jdk.html I apparently ...
0
votes
1answer
1k views

How to install JDK 7u25 & NetBeans IDE 7.3.1 on Ubuntu 13.04?

I have downloaded jdk-7u25-nb-7_3_1-linux-x64.sh and netbeans-7.3.1-linux.sh. I installed JDK (which is bundle with NetBeans Base IDE) using sudo sh jdk-7u25-nb-7_3_1-linux-x64.sh I chose the ...
0
votes
1answer
112 views

How to detect if 32 or 64 bit JDK is installed?

How can I detect if 32bit or 64bit Java JDK (SDK) has been installed on my machine? I am running a 64bit Ubuntu.
0
votes
0answers
747 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 ...
6
votes
1answer
13k views

“Please ensure you have JAVA_HOME points to JDK rather than JRE” message

I have java installed aaa@ubuntu:~$ whereis java java: /usr/bin/java /usr/bin/X11/java /usr/local/java /usr/share/java aaa@ubuntu:~$ whereis javac javac: /usr/bin/javac /usr/bin/X11/javac and ...
0
votes
1answer
619 views

How to uninstall JDK

Today I installed Android Studio but when I opened it raised the error: 'tools.jar' seems to be not in Android Studio classpath. Please ensure JAVA_HOME points to JDK rather than JRE. I ...
0
votes
1answer
311 views

Eclipse 4.2 (Juno) crashes on Ubuntu 12.04 (Precise)

I installed eclipse 4.2 java on Ubuntu 12.04 x86_64 and it just crashes everytime it opens the auto completion context menu. It crashes without any error message and just closes the eclipse window. ...
3
votes
2answers
4k views

update-alternatives: “alternative path doesn't exist” issue while updating JDK7

I decided to update my JDK7 to recent version from here. Corresponding x64 tag.gz archive for my architecture has been downloaded and extracted to /usr/lib/jvm as usual. All previous versions of Java ...
0
votes
0answers
22 views

How to increase permgen space of java in Ubuntu 13.04

How to increase permgen space of java in Ubuntu 13.04? I am using java Sun/Oracle JDK 6