Problem installing Marvin with JRE

User 25d107bd42

18-06-2012 20:38:29

Hi,


we need to install Marvin with JRE. But the install script has a problem. Please see the attached screenshot.


It seems to me, the PATH to installed programs is not correct, "bin" and not "/bin" ?


Editing the download file damages the zip-image.


We are using Ubuntu Mint 13 Cinnamon and 64 bit.


Best regards, Hans-Ulrich

ChemAxon 7c2d26e5cf

19-06-2012 09:51:47

I assume it is a bug in Install4j that build the Marvin installer.


I did not manage to reproduce but I have checked the code.


As I see the marvinbeans-5.10.0-linux_with_jre.sh (that Install4j generated), the unpacking of the bundled java is wrong.


if [ -f "${jar_file}.pack" ]; then
        bin/unpack200 -r ${jar_file}.pack $jar_file

        if [ $? -ne 0 ]; then
          echo "Error unpacking jar files. The architecture or bitness (32/64)"
          echo "of the bundled JVM might not match your machine."



We can not influence the generated code.


I recommend to use the Marvin Beans installer without Java if you met this problem.

User 25d107bd42

19-06-2012 13:40:09

Hi Tamas,


we need to install including JRE, because as shown in another topic of our group, Marvin 5.10 hangs up several times. Is there a configuration file of Install4j ? Is the path "bin" configured in this file ?


Best regards, Hans-Ulrich

User 25d107bd42

20-06-2012 06:54:12

Hi Tamas,


our need for installing including JRE corresponds to the topic


Problems: newest Java versions and MarvinSketch calculations


With Marvin 5.10 under Windows the calculations seem to work now.


But must have it on Linux, too.


I will try to reproduce the JAVA problem on different Linux versions.


Best regards, Hans-Ulrich

ChemAxon 7c2d26e5cf

20-06-2012 11:39:22

If the problem is that you would like to avoid the usage of Java 7 and Marvin Beans installer for Linux with bundled Java does not work, I can suggest the following workaround:



export INSTALL4J_JAVA_HOME_OVERRIDE=/opt/java/jdk6_64
./marvinbeans-5.10.0-linux.sh

User 25d107bd42

20-06-2012 11:43:50

Hi Tamas,


thank you for your tipps. We will try it and report the result.


Best regards, Hans-Ulrich

User 25d107bd42

21-06-2012 13:06:58

Hi Tamas,


before investigating more time in this workaround I have a question:


On our Linux machines we have


c1113@nb-lehre ~ $ java -version
java version "1.6.0_31"
Java(TM) SE Runtime Environment (build 1.6.0_31-b04)
Java HotSpot(TM) 64-Bit Server VM (build 20.6-b01, mixed mode)


and MarvinSketch is running having the GUI-timing problems mentioned above.


I think installing with JRE doesn't help.


Which version is included in marvinbeans-5.10.0-linux_with_jre.sh ? Is this a special version ?


Best regards, Hans-Ulrich

ChemAxon 7c2d26e5cf

22-06-2012 15:32:49

It includes the 1.6.0_18 version of 32bit Oracle JRE. I guess it's time to upgrade it to a newer version.

User 25d107bd42

22-06-2012 15:50:02

Hi Tamas,


my colleague and me, we are further analysing the problem, especially on different Linux versions. It seems to us, it's also a problem of 32 and 64 bit systems.


Now, I will attach another example. The informations for this systems are:


$ java -version
java version "1.6.0_24"
OpenJDK Runtime Environment (IcedTea6 1.11.1) (6b24-1.11.1-4ubuntu3)
OpenJDK 64-Bit Server VM (build 20.0-b12, mixed mode)
$ uname -a
Linux xxxs 3.2.0-23-generic #36-Ubuntu SMP Tue Apr 10 20:39:51 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux

My question still is: Which programs produces "bin/unpack200" ? If it is Install4J then the JAVA people should know it and fix this bug. The syntax of a program call cannot be without a slash in front and a slash inside. On all systems I tried the program unpack200 is in the correct PATH and can be started, for example on my ancient Ubuntu 8.04:


huw@tux2:~$ whereis unpack200
unpack200: /usr/bin/unpack200 /usr/share/man/man1/unpack200.1.gz


We also tried to edit "marvinbeans...with_jre.sh" but this crashes the binary part.


We will further look for solving the bug.


Best regards, Hans-Ulrich

ChemAxon 7c2d26e5cf

25-06-2012 12:00:34

When Install4j generated installer (marvinbeans-5.10.0-linux_with_jre.sh) is launched, the installer unpack itself into a temporary directory (generally into a new folder in the working directory. The directory is automatically deleted when the installer is terminated.


The directory contains a jre subdirectory where the bundled JRE is located. In the bundled JRE package, you can find the unpack200 file under the bin/unpack200 relative path.


The installer script enters into this"jre" directory and refers to this bundled unpack200 tool with the bin/unpack200 path.


As I see, the installer uses unpack200 to uncompress jar files in the bundled JRE package.


To answer your question, the installer tries to launch its own unpack200 instance in this case.
If bin/unpack200 does not work on your machine, I guess it may be an Install4j issue.


As I see, you are use IcedTea Java on Linux. Please take care that Marvin does not support IcedTea Java. It requires Oracle Java.


http://www.chemaxon.com/marvin/help/applications/install.html#requirements


Anyway, in past years, I exprerienced that Install4j can not corporate well with IcedTea Java.


 


 


 

ChemAxon 7c2d26e5cf

02-08-2012 13:09:37

Since next major release (5.11), we introduce new installers:



I hope it solves the unpack200 issue.


It seems that certain 64bit Linux platforms can not corporate with the 32bit Java that current Marvin Beans installer provides.