By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,677 Members | 1,177 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,677 IT Pros & Developers. It's quick & easy.

installation of java on mandriva - 2007

sanjay123456
100+
P: 125
Dear Friends ,

i am using mandriva - 2007 in this i have in cd /usr/java/jre1_5_0_08/


in this jre its have all bin ,lib and so on

when i give folowing command on command prompt

javac

its said that no command found

so tell how can i run java programe on mandriva - 2007

is there any extra installation required for that or not ?

sanjay
Mar 28 '07 #1
Share this Question
Share on Google+
4 Replies


10K+
P: 13,264
Dear Friends ,

i am using mandriva - 2007 in this i have in cd /usr/java/jre1_5_0_08/


in this jre its have all bin ,lib and so on

when i give folowing command on command prompt

javac

its said that no command found

so tell how can i run java programe on mandriva - 2007

is there any extra installation required for that or not ?

sanjay
You need to set the path variable.
Mar 28 '07 #2

sanjay123456
100+
P: 125
Dear ,

how can i set path
pz tell me detail

sanjay
Mar 28 '07 #3

10K+
P: 13,264
Dear ,

how can i set path
pz tell me detail

sanjay


Create a file called java.sh in /etc/profile.d add the contents below,

#!/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
Mar 28 '07 #4

sanjay123456
100+
P: 125
dear sir ,

#!/bin/sh
export JAVA_HOME=/usr/java/jre1_5_0_08
export MANPATH=$MANPATH:/usr/java/jre1_5_0_08/man
export PATH=$PATH:/usr/java/jre1_5_0_08/bin


i have written above code java.sh which is locate in /etc/profile.d

but its give again javac not found now what i am do sir

plz help me sir

sanjay
Mar 28 '07 #5

Post your reply

Sign in to post your reply or Sign up for a free account.