MFM Posted November 19, 2005 Report Share Posted November 19, 2005 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'. Quote Link to comment Share on other sites More sharing options...
scarecrow Posted November 19, 2005 Report Share Posted November 19, 2005 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. Quote Link to comment Share on other sites More sharing options...
MFM Posted November 19, 2005 Author Report Share Posted November 19, 2005 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? Quote Link to comment Share on other sites More sharing options...
scarecrow Posted November 19, 2005 Report Share Posted November 19, 2005 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... Quote Link to comment Share on other sites More sharing options...
MFM Posted November 19, 2005 Author Report Share Posted November 19, 2005 Many thanks. Quote Link to comment Share on other sites More sharing options...
MFM Posted November 20, 2005 Author Report Share Posted November 20, 2005 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. Quote Link to comment Share on other sites More sharing options...
ianw1974 Posted November 20, 2005 Report Share Posted November 20, 2005 This is something I wrote when I had problems installing JRE for Firefox: http://www.buziaks.com/ian/jreinstall.htm hope this helps, otherwise, check out: http://www.java.com/en/download/help/5000010500.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. Quote Link to comment Share on other sites More sharing options...
spinynorman Posted November 20, 2005 Report Share Posted November 20, 2005 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. Quote Link to comment Share on other sites More sharing options...
MFM Posted November 20, 2005 Author Report Share Posted November 20, 2005 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. Quote Link to comment Share on other sites More sharing options...
scarecrow Posted November 20, 2005 Report Share Posted November 20, 2005 (edited) 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. Edited November 20, 2005 by scarecrow Quote Link to comment Share on other sites More sharing options...
MFM Posted November 20, 2005 Author Report Share Posted November 20, 2005 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? Quote Link to comment Share on other sites More sharing options...
scarecrow Posted November 20, 2005 Report Share Posted November 20, 2005 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? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.