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.
Then I'm guessing that running /usr/java/jdk1.5.0_06/bin/java -version will return something similar to:
Code:
java version "1.5.0_06"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05)
Java HotSpot(TM) Client VM (build 1.5.0_06-b05, mixed mode, sharing)
Which one you run probably doesn't matter, although I'd expect if you're writing code you'll be interested in the stuff under /usr/java/jdk1.5.0_06. You could add environment variables to your ~/.bash_profile file like these:
Then I'm guessing that running /usr/java/jdk1.5.0_06/bin/java -version will return something similar to:
Code:
java version "1.5.0_06"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05)
Java HotSpot(TM) Client VM (build 1.5.0_06-b05, mixed mode, sharing)
Which one you run probably doesn't matter, although I'd expect if you're writing code you'll be interested in the stuff under /usr/java/jdk1.5.0_06. You could add environment variables to your ~/.bash_profile file like these:
I haven't used FREEMIND, but its docs should tell you which environment variables it needs set. Modifying your path with the following should at least let the install start:
Yes, if you add it to the .bash_profile file in your home directory, it will be available every time you login. You can type it into a terminal window and it will affect everything you do in that terminal window, it just won't be a permanent change.
Yes, if you add it to the .bash_profile file in your home directory, it will be available every time you login. You can type it into a terminal window and it will affect everything you do in that terminal window, it just won't be a permanent change.
Hmmm
here is what I have in there now
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:$HOME/bin
export PATH
unset USERNAME
so do I just add these lines, like so?
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
If you have several users on your system, you need to set the JAVA_HOME and its path globally. This can be done by using a script such as the one below, placing it in /etc/profile.d and making it executable.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.