MandrivaUsers.org : How to install JRE on Mandriva 2006? [solved] - 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 on Mandriva 2006? [solved]

#1 User is offline   MFM 

  • New Here
  • Group: Members
  • Posts: 14
  • Joined: 19-November 05

Posted 19 November 2005 - 11:59 AM

Dear senior Mandriva users, please help.
How to install JRE on Mandriva 2006. I performed everything what was described at java.com. But when I issue 'which java' in terminal it tells 'there is no java'. :oops:/>
0

#2 User is offline   scarecrow 

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

Posted 19 November 2005 - 01:17 PM

The easy way: Mandy compatible RPM from mandrivaclub.nl
The sane way: Any build from Sun (tarred or RPM) and then adding the java /bin directory to your system PATH. You can use any system startup script you prefer for setting the path- you decide which one.
0

#3 User is offline   MFM 

  • New Here
  • Group: Members
  • Posts: 14
  • Joined: 19-November 05

Posted 19 November 2005 - 01:50 PM

OK, so after installation , when jre is in the '/usr/java' I have to add a PATH, so the system recognizzes it.
How to add a PATH?
0

#4 User is offline   scarecrow 

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

Posted 19 November 2005 - 05:18 PM

MFM, on Nov 19 2005, 04:50 PM, said:

OK, so after installation , when jre is in the '/usr/java' I have to add a PATH, so the system recognizzes it.
How to add a PATH?
<{POST_SNAPBACK}>


export PATH="/usr/java/bin"

If there's already an export command there, just add the path to the existing ones after a double dot ( : ).

Add that either to a global startup script (in my case of Arch Linux: /etc/profile) so that all users can benefit, or to your users .bash_profile script, or...
0

#5 User is offline   MFM 

  • New Here
  • Group: Members
  • Posts: 14
  • Joined: 19-November 05

Posted 19 November 2005 - 11:47 PM

Many thanks.
:thanks:/>
0

#6 User is offline   MFM 

  • New Here
  • Group: Members
  • Posts: 14
  • Joined: 19-November 05

Posted 20 November 2005 - 05:58 PM

I`m stuck.
Tried many things. This my second post regarding this problem.
Please help, How to install JRE ?
I run Mandriva 2006, GNOME, Opera 8.5.
0

#7 User is offline   ianw1974 

  • Platinum
  • Group: Admin
  • Posts: 14,092
  • Joined: 09-March 05

Posted 20 November 2005 - 06:02 PM

This is something I wrote when I had problems installing JRE for Firefox:

http://www.buziaks.c.../jreinstall.htm

hope this helps, otherwise, check out:

http://www.java.com/...0010500.xml#rpm

The installation should be more or less the same for Opera, so check out the second link, they should provide where to place the link for the Opera browser.
Ian Walker

Light travels faster than sound. This is why some people appear bright until you hear them speak.........

My Linux Solutions | Linux Systems Limited
0

#8 User is offline   spinynorman 

  • Not a Mandriva Guru
  • Group: Admin
  • Posts: 4,221
  • Joined: 04-June 03

Posted 20 November 2005 - 06:32 PM

MFM - I've merged your two topics. Please don't start a second thread on the same subject - it confuses members who are trying to help you.
Posted Image Track Bugs at Bugzilla Posted Image
ASUS Terminator P4 1.7 GHz; 256MB DDR RAM; 40GB; 7200 rpm U-DMA ATA-100 IDE HD; Hansol H530 TFT monitor; 16x48 DVD; 40x12x48 CD-RW; Netgear DG834G; Epson Stylus C62; Mandriva 2008.1
0

#9 User is offline   MFM 

  • New Here
  • Group: Members
  • Posts: 14
  • Joined: 19-November 05

Posted 20 November 2005 - 07:32 PM

scarecrow, on Nov 19 2005, 07:17 PM, said:

MFM, on Nov 19 2005, 04:50 PM, said:

OK, so after installation , when jre is in the '/usr/java' I have to add a PATH, so the system recognizzes it.
How to add a PATH?
<{POST_SNAPBACK}>


export PATH="/usr/java/bin"

If there's already an export command there, just add the path to the existing ones after a double dot ( : ).

Add that either to a global startup script (in my case of Arch Linux: /etc/profile) so that all users can benefit, or to your users .bash_profile script, or...
<{POST_SNAPBACK}>


Could you please describe the full expession, I tried 'export PATH="/usr/java/jre1.5.0_05/bin/" ' but nothing happens, system still does not see it.
0

#10 User is offline   scarecrow 

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

Posted 20 November 2005 - 08:44 PM

Maybe wrong path?
Please try (as root, preferrably):
updatedb (this might take some time to complete).
locate javaws
To have the exact path of the java binaries.
Also- on the export command, try omitting the " say like:
export PATH=/usr/java/jre1.5.0_05/bin
or whatever location you got above about the javaws (Java Web Start) executable.
Another solution (not as good as the above):
Symlink the main java binaries to a system-wide directory, e.g. /bin
Symlinking is very easily done without any typing (almost) with Midnight Commander.

This post has been edited by scarecrow: 20 November 2005 - 08:47 PM

0

#11 User is offline   MFM 

  • New Here
  • Group: Members
  • Posts: 14
  • Joined: 19-November 05

Posted 20 November 2005 - 09:26 PM

Well, after adding a symlink to '/bin' I`ve finally got what I want: after typing 'which java' it shows '/bin/java/'. Hope this is it, now java is system wide. Thank you so much.
Anyway, 'export PATH' didn`t work out?
0

#12 User is offline   scarecrow 

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

Posted 20 November 2005 - 11:14 PM

MFM, on Nov 21 2005, 12:26 AM, said:

Anyway, 'export PATH' didn`t work out?


Almost for sure, a typo.
Did you try the *free* Mandy customized RPM from here (which does not need any path definitions or file linking) or just the generic Sun pack?
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