Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

problem installing java

 
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



 
Saloon Keeper
Posts: 22256
151
Android Eclipse IDE Tomcat Server Redhat Java 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.
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • 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
Posts: 22256
151
Android Eclipse IDE Tomcat Server Redhat Java 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)
 
Ranch Hand
Posts: 1923
Scala Postgres Database Linux
  • 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
 
Don't get me started about those stupid light bulbs.
    Bookmark Topic Watch Topic
  • New Topic