Click here to Skip to main content
15,884,099 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi friends
when i want to install JDK in linux ubuntu it gives this message:

CSS
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

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]
 
Share this answer
 
v2
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
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900