MarvinBeans - "java not found"

User 3c1ee46175

16-06-2006 10:33:07

Hello,


I installed Marvin Beans 4.0.6 under Ubuntu Linux. Trying to run msketch the error "no java found" ocurred.





Searching for the problem I found the file /MarvinBeans/.install4j/inst_jre.cfg with the path /usr/lib/j2re1.5-sun but on my system java is installed in /usr/lib/j2re1.5-sun/lib/i386/. I manually changed the path but nothing changed. - Can anybody help me?





Thanx, DrWaro

ChemAxon 7c2d26e5cf

16-06-2006 12:54:31

Gives the bin subdirectory of your java home in the system PATH variable.


If you use bash shell, you can do it by the following way:


Code:
export PATH=<JAVA_HOME>/bin:$PATH



where <JAVA_HOME> is the home directory of your Java.


After then, test if the java command runs from command line.


Code:
java -version



If yes, Marvin scripts will also work.

ChemAxon 7c2d26e5cf

16-06-2006 13:08:55

By the way, the MarvinBeans/.install4j/inst_jre.cfg file is not releavan at Linux.


Because Unix shell scripts for Marvin (bin/msketch, bin/mview, etc.) uses the default Java that is available in the PATH.


inst_jre.cfg is important at bundled Java to force Marvin to use this private Java instead of the default one. (Only the Windows version of Marvin Beans installer is distributed with bundled Java.)

User 3c1ee46175

16-06-2006 14:22:46

Setting the correct path to Java made msketch running.





Thank you very much for the immediate help!





DrWaro