Click here to Skip to main content
11,636,300 members (76,348 online)
Rate this: bad
Please Sign up or sign in to vote.
See more: Java Linux JDK
hi friends
when i want to install JDK in linux ubuntu it gives this message:

reza@ubuntu:~$ cd /opt/java/32
reza@ubuntu:/opt/java/32$ sudo chmod +x jdk-6u21-linux-i586-rpm.bin
reza@ubuntu:/opt/java/32$ sudo ./jdk-6u21-linux-i586-rpm.bin
UnZipSFX 5.50 of 17 February 2002, by Info-ZIP (
inflating: jdk-6u21-linux-i586.rpm
inflating: sun-javadb-common-10.5.3-0.2.i386.rpm
inflating: sun-javadb-core-10.5.3-0.2.i386.rpm
inflating: sun-javadb-client-10.5.3-0.2.i386.rpm
inflating: sun-javadb-demo-10.5.3-0.2.i386.rpm
inflating: sun-javadb-docs-10.5.3-0.2.i386.rpm
inflating: sun-javadb-javadoc-10.5.3-0.2.i386.rpm
./jdk-6u21-linux-i586-rpm.bin: 255: rpm: not found
./jdk-6u21-linux-i586-rpm.bin: 255: rpm: not found
Installing JavaDB
./jdk-6u21-linux-i586-rpm.bin: 255: rpm: not found

what is the problem?
Posted 30-Nov-10 7:57am
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Ubuntu does not have rpm installer in it. It uses deb package manager derived from debian. Find a deb package for JDK or convert your rpm to deb using "Alien" program, check instructions here[^].

[EDIT] Check this link[^]; It has ubuntu JDK 6 package [/EDIT]
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

You can use aptitude to get JDK 1.6 from Ubuntu repositories, just type into a shell: sudo apt-get install sun-java6-bin sun-java6-jre sun-java6-jdk

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 295
1 Sergey Alexandrovich Kryukov 275
2 OriginalGriff 233
3 Suvendu Shekhar Giri 225
4 stibee 215
0 OriginalGriff 8,941
1 Sergey Alexandrovich Kryukov 8,459
2 Mika Wendelius 6,849
3 F-ES Sitecore 2,364
4 Suvendu Shekhar Giri 2,320

Advertise | Privacy | Mobile
Web03 | 2.8.150728.1 | Last Updated 30 Nov 2010
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100