Jump to content

How to Install jre in Mandriva 2007


Recommended Posts

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]

Link to comment
Share on other sites

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 :)

Link to comment
Share on other sites

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.....

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

  • 3 weeks later...
Guest Deep V

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

Edited by Deep V
Link to comment
Share on other sites

  • 9 months later...
Guest fake_name

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...

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...