Help - Search - Members - Calendar
Full Version: How to Install jre in Mandriva 2007
MandrivaUsers.org > Advanced Topics > Command Line, Kernel and Programming
biddu
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]
orts
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 smile.gif
dexter11
It's even better if you install it from the official source. Java is available in the non-free repo.
daniewicz
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.....
neddie
QUOTE (daniewicz @ Jun 16 2007, 10:40 PM) *
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
CODE
ls
The easiest way to make sure your command matches exactly is to use the autocomplete feature, so you type
CODE
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
CODE
./jre
and press tab again.
ffi
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.mandrivausers.org/easyurpmi/index.php ...)
neddie
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.
scarecrow
For MDV 2006 and 2007 one can get JRE RPM's from the mandrivaclub.nl unofficial repo- they are working fine.
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
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...
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.