MandrivaUsers.org : How to Install jre in Mandriva 2007 - MandrivaUsers.org

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

How to Install jre in Mandriva 2007 Frustrated in installing JRE

#1 User is offline   biddu 

  • New Here
  • Group: Members
  • Posts: 18
  • Joined: 03-February 07

Posted 16 June 2007 - 06:31 PM

Dear All,

I have tried to install the jre but with out any success. I did read the instructions in the "Mandrivausers" Forum section. I have followed the following method. (please note that the downloaded file is on my desktop)

1. Downloaded the "jre-1_5_0_02-linux-i586-rpm.bin" from java.com to the desktop.
2. Opened console and typed "su" typed password.
3. cd/ home/xxxx(my user id)/Desktop
4. [root@localhost Desktop]# chmod a+x jre-1_5_0_02-linux-i586-rpm.bin
5. chmod: cannot access `jre-1_5_0_02-linux-i586-rpm.bin': No such file or directory
6. [root@localhost Desktop]# cd
[root@localhost ~]# cd /usr/java
7. [root@localhost java]# chmod a+x jre-1_5_0_02-linux-i586-rpm.bin
chmod: cannot access `jre-1_5_0_02-linux-i586-rpm.bin': No such file or directory

The other commands like " ./jre-1_5_0-linux-i586.bin " also do not work.

Please guide me.


[moved from Software by spinynorman]
0

#2 User is offline   orts 

  • frequent
  • Group: Members
  • Posts: 175
  • Joined: 28-May 06

Posted 16 June 2007 - 06:52 PM

Are you using Mandriva 2007 or 2007.1?
Have you installed alle source lists from http://easyurpmi.zarb.org ?

If I remember correct Java is in suorce list from http://seerofsouls.com/.
If it's a 2007.1 version then you can find Java in the non-free reposity.

It is easier to install Java through urpmi than compiling it your self :)
Sorry for my english spelling. I hope to improve them in the time to come.

Posted Image Danish installguide/Dansk installationsguide
0

#3 User is offline   dexter11 

  • Mandriva Guru
  • Group: Members
  • Posts: 1,535
  • Joined: 25-March 05

Posted 16 June 2007 - 08:07 PM

It's even better if you install it from the official source. Java is available in the non-free repo.
Posted Image
0

#4 User is offline   daniewicz 

  • the dude abides
  • Group: Members
  • Posts: 1,773
  • Joined: 01-August 04

Posted 16 June 2007 - 08:40 PM

biddu:

You need to specify the file name and its path together
chmod a+x /home/username/Desktop/jre-1_5_0_02-linux-i586-rpm.bin

But orts and dexter11 are correct. It would be easier to install using urpmi. I am running Mandriva 2005 so I am sure my menus are different than yours but here is what it looks like for me:

Type "mcc" from the command line as you have been doing
Software Management
Look at Installable Software.....
0

#5 User is offline   neddie 

  • Moo
  • Group: Members
  • Posts: 2,070
  • Joined: 28-April 05

Posted 16 June 2007 - 11:06 PM

View Postdaniewicz, on Jun 16 2007, 10:40 PM, said:

You need to specify the file name and its path together
No, not if he's already in the Desktop directory.
But I strongly doubt that it's version 02, it might be number 11. Or in fact it may be that you've not downloaded the jre 1.5 at all, because if you go to java.com you'll get version 1.6 by default.

The filename you use for the chmod command has to match the filename you've got, exactly. To find out what you've got, use the command
ls
The easiest way to make sure your command matches exactly is to use the autocomplete feature, so you type
chmod a+x jre
and then press the tab key. That should fill in the rest of the filename for you. Then to run it, type
./jre
and press tab again.
Dell 510m, Mandriva 2009.0, KDE 3
Shuttle K48, Debian Lenny, Gnome
linux.activityworkshop.net
0

#6 User is offline   ffi 

  • Mandriva Guru
  • Group: Members
  • Posts: 1,544
  • Joined: 05-February 06

Posted 16 June 2007 - 11:16 PM

I seriously don' t understand why anyone would go through all this trouble when all you need to do is go to rpmdrake and install java or urpmi java-1.6.0 from a console (as root) and you are done (and maybe set up repos if it hasnt been done, automagically, yet http://www.mandrivau...urpmi/index.php ...)
"Of liberty I would say that, in the whole plenitude of its extent, it is unobstructed action according to our will. But rightful liberty is unobstructed action according to our will within limits drawn around us by the equal rights of others. I do not add 'within the limits of the law,' because law is often but the tyrant's will, and always so when it violates the right of an individual."
Thomas Jefferson
0

#7 User is offline   neddie 

  • Moo
  • Group: Members
  • Posts: 2,070
  • Joined: 28-April 05

Posted 17 June 2007 - 06:00 PM

If the question is about 2007 Spring, then yes I agree. But that had already been said by the first two answers. I was explaining what was wrong with the original attempt, to try to help gain a better understanding of why it didn't work.
Dell 510m, Mandriva 2009.0, KDE 3
Shuttle K48, Debian Lenny, Gnome
linux.activityworkshop.net
0

#8 User is offline   scarecrow 

  • Platinum
  • Group: Platinum
  • Posts: 5,111
  • Joined: 16-February 05

Posted 17 June 2007 - 06:13 PM

For MDV 2006 and 2007 one can get JRE RPM's from the mandrivaclub.nl unofficial repo- they are working fine.
0

#9 User is offline   Deep V 

  • New Here
  • Group: New here
  • Posts: 1
  • Joined: 09-July 07

Post icon  Posted 09 July 2007 - 06:05 PM

I tried the "type - urpmi java-1.6.0 from a console (as root) and you are done" method last night and it gave me some error message. I tried it this morning and it worked just fine. Go figure.

Deep V

This post has been edited by Deep V: 09 July 2007 - 06:55 PM

0

#10 User is offline   fake_name 

  • New Here
  • Group: New here
  • Posts: 1
  • Joined: 10-April 08

Posted 11 April 2008 - 12:05 AM

This is what I'd do

1. First of all go to the directory where your rpm.bin file is located. it is a self installation file,

2. Run
# su

3. make sure the file is executable
#chmod 755 j2sdk1.4.0_01.rpm.bin

4. execute the file
#./j2sdk1.4.0_01.rpm.bin
this will install the package and inflate the rpm...
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users