LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 10-18-2006, 09:46 AM   #1
Waqas Ahsan
Member
 
Registered: Sep 2006
Distribution: Mndriva 2007 official
Posts: 50

Rep: Reputation: 15
Question Installing Sun java on Mandriva 2007


Hi,
i am having trouble installing Sun java on my mandriva 2007 box. i downloaded the RPM package from the Sun Java website and installed it according to the instructions here kev.coolcavemen.com/2006/05/how-to-install-suns-java-for-firefox-on-your-mandriva-2006/

everything seemingly went smoothly however when i run the comand java i get a command not found error:

Quote:
[root@localhost waqasahsan]# java
bash: java: command not found
what am i doing wrong here??
 
Old 10-18-2006, 10:01 AM   #2
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
You need to add java to your path. Create a file called java.sh in /etc/profile.d and if you installed the jre rpm, add the contents below,
Code:
#!/bin/sh
export JAVA_HOME=/usr/java/jre1.5.0_09
export MANPATH=$MANPATH:/usr/java/jre1.5.0_09/man
export PATH=$PATH:/usr/java/jre1.5.0_09/bin
After that, make the file executable (chmod +x 755 /etc/profile.d/java.sh).
 
Old 10-18-2006, 10:13 AM   #3
Waqas Ahsan
Member
 
Registered: Sep 2006
Distribution: Mndriva 2007 official
Posts: 50

Original Poster
Rep: Reputation: 15
thanks reddazz the path change solved the problem
 
Old 03-25-2008, 08:33 AM   #4
billgates309
LQ Newbie
 
Registered: Mar 2008
Posts: 1

Rep: Reputation: 0
Cool i really need help

hey i just got this software and i was wanting to play runescape on here but everytime i go to download java it want work could u tell me how to do tthis either by email jzack0513@hotmail.com or by phone 931 625 7566 thanks alot
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
problem installing madwifi drivers on IBM laptop w. mandriva 2007 sisyfos Linux - Networking 1 10-18-2006 08:56 AM
Problem Installing SJSAS_8 --Sun Java Server on FC2 nagu_linux Programming 2 03-30-2005 05:06 AM
problems installing sun java compiler in mandrake 10.0 ranger225 Linux - Newbie 2 09-13-2004 06:20 AM
Problem installing sun java application server on linux R0ss_here Linux - Software 0 02-13-2004 12:14 PM
Installing java Machine from Sun (JMF-2.2.1) coltranefawz Linux - Software 1 06-22-2003 08:15 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 12:23 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration