Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

problem installing java

 
Yewint Ko
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi geeks.
I have ubuntu 8.4 installed on my machine and a java installer "jdk-6u2-ea-bin-b02-linux-i586-12_apr_2007-rpm.bin"

I try install it
# ./ jdk.....bin

It was not successful and I got some rpm files . How do i continue? please



 
Tim Holloway
Saloon Keeper
Pie
Posts: 18277
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You downloaded the wrong file. RPMs are used by Fedora, Red Hat, CentOS, and SuSe (I think). Ubuntu is Debian-based, and they use ".deb" installer files.

However there's no deb-based installer for the JDK, so just use the generic install file, not the RPM one.

If my memory hasn't fuzzed out too much, there's an "alien" package installer designed to help install RPM files into Ubuntu, but I don't recommend it for this purpose. The generic install is the cleaner way to go.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Maybe you could tell us a little more about what happened when you tried to run the .bin installer.
"It wasn't successful" doesn't really give us much to work with.

After downloading it, did you change the permissions to allow it to execute?
What directory was it in?
Did you try to install it as root or as a regular user?
What error messages did you see when you tried to run it.
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18277
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's OK, Ben. The "produced rpm files" was the giveaway.
 
Yewint Ko
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes ,I am working in /opt/ as a root and I changed the permission

# chmod +x <filename>.bin

and then i installed

# ./<filename>.bin

then I am asked to accept the license terms and I type "yes" .So far so good . It starts extracting , unpacking and checksumminig. After a long list of prompting , I got the .rpm file.
Of course .rpm is not usually used extension in Ubuntu. I installed alien package manager to convert it to .deb

# apt-get update
# apt-get install alien

then I try to change .rpm file to .deb

# alien <filename>.rpm

It took along time , but after all , I found the new folder with the same name with rpm file. Actually It should be changed to .deb format. right?
That directory contains many sub directories and finally I found the bin directory in which all java command exists. (I can mension the dir structure if needed).
But when I run the java command or javac command , I got error " cannot initialized VM ...... " . I think , that might be coz of unsuccessful installation.Really weired things .
That is all I got. I google many times and go to many places over the net, but I dont find the solution yet.

Thanks ... ( reallly apologuise for late reply)
 
Stefan Wagner
Ranch Hand
Posts: 1923
Linux Postgres Database Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
why don't you use

apt-cache search sun-java gives me, beneath others (doc, demo, jre, source, ...)
sun-java6-jdk - Sun Java(TM) Development Kit (JDK) 6
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic