instalation error on linux

User c7aa89135f

08-11-2006 16:02:44

Hi,





I have installed previouslly marvin-beans on linux, FC4. However, on my new computer I have an error, it looks like it does not find java:


./marvinbeans-4_1_2-linux.sh


Starting Installer ...


java.lang.NoClassDefFoundError: javax.swing.JOptionPane


at java.lang.Class.initializeClass(libgcj.so.7)


at com.install4j.runtime.installer.Installer.reportExeption(Unknown Source)


at com.install4j.runtime.installer.Installer.main(Unknown Source)


at java.lang.reflect.Method.invoke(libgcj.so.7)


at com.exe4j.runtime.LauncherEngine.launch(Unknown Source)


at com.install4j.runtime.Launcher.main(Unknown Source)





However I have JRE1.5, both 32 and 64 bit versions (I run on an linux x86_64 distribution)


/opt/jre1.5.0_09 (32 bit)


/usr/java/jre1.5.0_09 (64 bit)





any ideas?

ChemAxon 7c2d26e5cf

08-11-2006 16:51:52

Indeed, the installer does not find any installed Java in the PATH.


Are you sure that Java in the PATH?


Type the following command:


Code:
which java



You should get the location of the Java interpreter. E.g. "/usr/java/jre1.5.0_09/bin/java"


What is the result?


If you got an error message, Java is missing from the PATH.


In this case, (if you use bash shell, which is the default shell), append the following line to your shell profile (~/.bashrc or ~/.bash_profile):


Code:
export PATH=$PATH:/usr/java/jre1.5.0_09/bin



then rerun it:


Code:
. ~/.bashrc



After then, you can print the value of the PATH variable by echo:


Code:
echo $PATH



If you use other shell, the setting of the variable can be a bit different.


http://www.linuxheadquarters.com/howto/basic/path.shtml

User c7aa89135f

24-11-2006 11:59:16

Hi,





I have made sure that java is in my path (before it was only the link to java executable under /usr/bin, from the rpm installation), but the problem is the same.





If I try to modify the following lines in the installer script, I get an error "installer corrupted"


# Uncomment the following line to override the JVM search sequence


# INSTALL4J_JAVA_HOME_OVERRIDE=


# Uncomment the following line to add additional VM parameters


# INSTALL4J_ADD_VM_PARAMS=





Any other ideas?


Hugo
Tamas wrote:
Indeed, the installer does not find any installed Java in the PATH.


Are you sure that Java in the PATH?


Type the following command:


Code:
which java



You should get the location of the Java interpreter. E.g. "/usr/java/jre1.5.0_09/bin/java"


What is the result?


If you got an error message, Java is missing from the PATH.


In this case, (if you use bash shell, which is the default shell), append the following line to your shell profile (~/.bashrc or ~/.bash_profile):


Code:
export PATH=$PATH:/usr/java/jre1.5.0_09/bin



then rerun it:


Code:
. ~/.bashrc



After then, you can print the value of the PATH variable by echo:


Code:
echo $PATH



If you use other shell, the setting of the variable can be a bit different.


http://www.linuxheadquarters.com/howto/basic/path.shtml

ChemAxon 7c2d26e5cf

24-11-2006 17:26:47

The installer script is created by Install4j 3.2.1. Since it is a generated file, its editing is not recommended. (The checksum of the file can be changed after the editing. In this case, the damaged file is not launchable.)


It seems that Install4j generated scripts can not handle symbolic links.


Instead of the rpm package, I suggest to use the tar.gz packed Java.


In this version, all resources for Java are in one directory (and no symbolic links).


About its installation: After expanding the .bin file from the tar.gz archive, launch the expaned installer and place the installed Java directory to anywhere. After then, you have to insert the location of the bin sub directory of Java into the PATH to access it from anywhere.


I always prefer the tar.gz packed Java versions and I had never problems with any Java based installers.





If you want to hack installer script, reading of the following topic may be useful:


http://www.chemaxon.com/forum/ftopic2247.html


(The main difference between the Instant JChem and Marvin Beans installer is that Instant JChem installer includes a bundled Java.)

User c7aa89135f

27-11-2006 09:33:30

Hi,





I have solved the problem in order to install marvin beans on FC5_x86_64 distribution.


Once more, the problem is on the java distribution that comes with the x86_64 linux system. All the problems reported in previous mails were solved as follows:


1) remove the symbolic link that the system creates for you for the default java instalation that comes with FC5:


Code:
mv /usr/bin/java /usr/bin/java_64bit



or something like that


2) Assuming that you have installed a 32bit distribution for java (if you did not yet, visit the following link:


http://www.fc64.org/index.php?fc=java


Then you have to place java32bit in your path. Following previous link instructions it should be something like:


Code:
setenv PATH ${PATH}:/opt/jre1.5.0_09/bin/



(Note the syntax, since I use tcsh)


3) Now you can run the marvin installer without problems.





Now the obvious question: Why does Chemaxon software not run with 64 bit java?





Thanks Tamas for your help on this topic,


Hugo
Tamas wrote:
The installer script is created by Install4j 3.2.1. Since it is a generated file, its editing is not recommended. (The checksum of the file can be changed after the editing. In this case, the damaged file is not launchable.)


It seems that Install4j generated scripts can not handle symbolic links.


Instead of the rpm package, I suggest to use the tar.gz packed Java.


In this version, all resources for Java are in one directory (and no symbolic links).


About its installation: After expanding the .bin file from the tar.gz archive, launch the expaned installer and place the installed Java directory to anywhere. After then, you have to insert the location of the bin sub directory of Java into the PATH to access it from anywhere.


I always prefer the tar.gz packed Java versions and I had never problems with any Java based installers.





If you want to hack installer script, reading of the following topic may be useful:


http://www.chemaxon.com/forum/ftopic2247.html


(The main difference between the Instant JChem and Marvin Beans installer is that Instant JChem installer includes a bundled Java.)
Code:
Code:
o
Code:

ChemAxon 7c2d26e5cf

27-11-2006 16:31:47

Thanks that you shared your experience.





Marvin supports Sun distributed Java versions (also 64 bit distribution).


(See the installation guide.)


We've tested Marvin with the below 64bit Java version on a couple of Linux system.


Code:
java version "1.5.0_09"


Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_09-b03)


Java HotSpot(TM) 64-Bit Server VM (build 1.5.0_09-b03, mixed mode)