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.
Trying to install 'Merchant of Venice' on a Mandriva 2005 LE system.
I get the following error:
[don@localhost venice]$ /home/don/venice/venice
Error: JAVA_HOME environment variable is not set. This should be
set to the installation directory of java.
jre1.5.0 is installed in /usr/local/jre*.
I did;
[don@localhost venice]$ ln -s /usr/local/jre1.5.0_06/plugin/i386/ns7/libjavaplugin_oji.so
If that works, post back and we can edit certain bash config files so that your java "bin" directory is in PATH w/o typing the above "env" command every time you want to run the program.
if you get a result like this :
java version "1.5.0_02"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_02-b09)
Java HotSpot(TM) Server VM (build 1.5.0_02-b09, mixed mode)
You are on the right track and java is in your path .. next run the following
$ ls `echo $JAVA_HOME`
you will get a result like :
bin COPYRIGHT demo include jre lib LICENSE man README.html sample src.zip THIRDPARTYLICENSEREADME.txt
If this all works make sure mandriva does not have gcj installed as it may conflict with the version you installed from sun. Here is how to check.
$ rpm -qa '*gcj*'
If you get a result then you will next have to think about if you want to uninstall it which means you will break some rpm dependencies but thats for another post.
I mucked around with this program a while ago and from memory you don't install it you run it. Have a look at the readme instructions and it will tell you how to do this. It is via the command line. Look for macd or macg, something like that. If you can't figure it out post back and when I get home I'll have a look for you.
Your result from $ echo $JAVA_HOME is not right.
So you have to get it set correctly
I have the Software Development Kit...sdk version but here´s what I get
$ echo $JAVA_HOME /usr/java/j2sdk1.4.1_03/bin/
yours should return .......... /jre/bin/ and until it does it will not find java
I suspect adding a slash after bin might fix it or reinstall the jre folder as all the needed files may not be there
JK Installing and running seem to me to be the same A binary is placed in the /bin/ file and run ,installation does the same. A program cant be run until its in the $PATH
Last edited by bobbelfield; 01-26-2006 at 03:38 PM.
An alternative method for setting up java would be to copy the script below to /etc/profile.d, name it something like sun_jdk.sh and make it executable using "chmod +x". After that do "source /etc/profile" and java should be in your path (check by doing "echo $PATH") and that of other users on your system.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.