User b051b8bf64
16-11-2006 17:33:16
After downloading and running marvinbeans-4_1_2-linux.sh the following message occurs:
./marvinbeans-4_1_2-linux.sh
testing JVM in /usr ...
Starting Installer ...
./marvinbeans-4_1_2-linux.sh: line 297: 6175 Segmentation fault "$app_java_home/bin/java" -Dinstall4j.jvmDir="$app_java_home" -Dinstall4j.appDir="$app_home" -Dexe4j.moduleName="$prg_dir/$prg" -Dsun.java2d.noddraw=true $INSTALL4J_ADD_VM_PARAMS -classpath "$local_classpath" com.install4j.runtime.Launcher launch com.install4j.runtime.installer.Installer false false "" "" false true false "" true true 0 0 "" 20 20 "Arial" "0,0,0" 8 500 "version %4.1.2%" 20 40 "Arial" "0,0,0" 8 500 -1 "$@"
What can be a reason for it?
Thank you
ChemAxon 7c2d26e5cf
17-11-2006 12:39:11
ChemAxon 7c2d26e5cf
17-11-2006 12:49:11
Or probably the Java version is wrong. Marvin requires Sun's Java 1.3.1 or higher version. The installer might try to use a Mandriva boundled Java that is not compatible with Sun's one.
Retrieve the Java version from the system:
You should see something like that:
Code: |
Java(TM)2 Runtime Environment, Standard Edition (built 1.4.2_08-b03)
Java HotSpot(TM) CLient VM (build 1.4.2_08-b03, mixed mode) |
User b051b8bf64
17-11-2006 14:57:39
Thank you for the reply, Tamas
On my machine I installed Java Development Kit 6 Release candidate. When typing
java -version it gives me the following reply:
java version "1.4.2"
JamVM version 1.4.3
Copyright (C) 2003-2006 Robert Lougher <
[email protected]>
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2,
or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
Java is included in PATH variable - its bin directory is listed when typing echo $PATH
Is it possible that this Java version is not compatible with Marvin 4.1.12?
ChemAxon 7c2d26e5cf
17-11-2006 15:10:42
It is possible. We have not tested yet this release.
I suggest to use any 1.5.x or 1.4.2 version.
ChemAxon 7c2d26e5cf
17-11-2006 15:15:41
Or use the platform independent version of Marvin Beans (
marvinbeans-4_1_2.zip).
It does not include installer, just the zip version of the package.
Unzip somewhere and use scripts in the bin directory.
User b051b8bf64
17-11-2006 15:32:05
I've changed to Java 5.0 Development Kit Update 9. It works with other applications (e.g ant), but gives the same error "segmentation fault" error when trying ./marvinbeans-4_1_2-linux.sh.
I also tried to use platform independent marvinbeans-4_1_2.zip. After unpacking it, changing permisions to be executable, cd to the bin directory and typing ./msketch the following error occurs:
Segmentation fault
ChemAxon 7c2d26e5cf
17-11-2006 15:46:34
Try run Marvin Beans from command line:
Code: |
java -classpath lib/MarvinBeans.jar chemaxon.marvin.Sketch |
Is this work for you? If yes, the problem may be at evaluation of the shell script ("msketch").
User b051b8bf64
17-11-2006 16:05:58
Hi,
java -classpath lib/MarvinBeans.jar chemaxon.marvin.Sketch seems also not to be working. It generates the same error:
Segmentation fault
Maybe java is not working properly?
Is there any way to check it?
User b051b8bf64
17-11-2006 17:06:19
It seems that it is the problem with java. It gives the same error for other jar-files.
ChemAxon 7c2d26e5cf
17-11-2006 17:54:14
It can be a configuration problem. Probably there can be confilct with some packages.
I've downloaded and installed "jdk-1_5_0_09-linux-i586.bin" and "jdk-6-rc-linux-i586.bin". I've tried Marvin with both Java versions. Both of them worked fine.
In Sun's download center, prefer the "linux-self-extracting" version incontrary of "rpm package". Probably, it helps.
Me and several colleages works on Linux. But we have never problem with Java under any distribution. Currently we use following distributions: Ubuntu, SUSE, Fedora, Debian, Freespire, Arch linux.
User b051b8bf64
17-11-2006 21:16:24
Hi,
It works!!! The problem was in following:
in /usr/bin there was a symbolic link java, which pointed at the end on the file of not-Sun Java Virtual Machine--the application distributed with Mandriva. That is why when typing java -version it gives something like "java 1.4.3 JVM 1.4". After deleting and uninstalling everything connected to not-Sun Java, installing jdk-1_5_0_09-linux-i586.bin the reply to java -version was the following:
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_09-b03)
Java HotSpot(TM) Client VM (build 1.5.0_09-b03, mixed mode, sharing)
Then the ./marvinbeans-4_1_2-linux.sh run without any problems.
Thank you for the support.
Best regards
ChemAxon 7c2d26e5cf
17-11-2006 21:22:13
I am glad that you managed to set it.
When I configure a Linux distro, removing OS bundled Java is the first step to me after installation. Then I install one from Sun.