Click here to Skip to main content
Rate this: bad
good
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
Unpacking...
Checksumming...
Extracting...
UnZipSFX 5.50 of 17 February 2002, by Info-ZIP (Zip-Bugs@lists.wku.edu)
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
Done.
reza@ubuntu:/opt/java/32$

what is the problem?
thanks
Posted 30-Nov-10 8:57am
Rate this: bad
good
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]
  Permalink  
v2
Rate this: bad
good
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
  Permalink  

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

  Print Answers RSS
0 OriginalGriff 277
1 Maciej Los 210
2 BillWoodruff 205
3 DamithSL 165
4 Tomas Takac 144
0 OriginalGriff 5,130
1 DamithSL 4,157
2 Maciej Los 3,670
3 Kornfeld Eliyahu Peter 3,470
4 Sergey Alexandrovich Kryukov 2,821


Advertise | Privacy | Mobile
Web03 | 2.8.141216.1 | Last Updated 30 Nov 2010
Copyright © CodeProject, 1999-2014
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