Click here to Skip to main content
13,045,285 members (60,772 online)
Rate this:
Please Sign up or sign in to vote.
See more:
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
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web01 | 2.8.170713.1 | Last Updated 30 Nov 2010
Copyright © CodeProject, 1999-2017
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