MandrivaThis Forum is for the discussion of Mandriva (Mandrake) Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
And did you try commenting out export MANPATH="$MANPATH:/opt/java/man" from the java.sh script or deleting it. If that fails delete the java.sh file and create an entry similar to the one below in your .bash_profile
Code:
export PATH=$PATH:/usr/java/jre1.5.0_01/bin
That will put java in the path of the current user, but you will have to do this for everyone who uses the system. I have asked several times for the exact version of java you are using (as it is in /usr/java) but you haven't responded to that.
Originally posted by reddazz
I have asked several times for the exact version of java you are using (as it is in /usr/java) but you haven't responded to that. [/B]
Sorry that you couldn't find this in my previous Post.
I should have put the number instead of the sentence.
Quote:
Originally posted by duffmckagan
And yes, I have the same version of Java as you have mentioned above.
Should i compile that code you have mentioned above again?
If yes, then I will shell out those lines....I need just a yes or no.
If you log out and in again, the scripts in /etc/profile.d are automatically run, so there is no need to run them as "./java.sh". You can also do "source .bash_profile" if you don't want to log out. I have said to uncomment the manpath line, but I am not sure thats been done because bash shouldn't complain about this if its not set. Mine is like below and it works fine using the jdk,
Now there has been a problem .
I don't get the root prompt at the command line.....instead i get this.
When i type su- and root password , this is what i get.
-bash: !/bin/sh: No such file or directory
-bash-2.05b#
now, when i test whether java is installed by running
java -version, i get the proper results......As mentioned by.......PRJ earlier.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.