User d8da4712c1
30-04-2013 13:37:07
Hello guys,
I'm getting a message on jchem manager telling me that my java version is not supported, I tried to dowload and setup the last java JDK version Java SE Development Kit 7u21 " jdk-7u21-linux-x64.rpm package" but always showing me the same message "Unsupported java VM type: openJDK 64 bits version"
This is my linux information: Linux version 2.6.39-400.21.1.el6uek.x86_64 ([email protected]) (gcc version 4.4.7 20120313 (Red Hat 4.4.7-3) (GCC) ) #1 SMP Thu Apr 4 03:49:00 PDT 2013
Thank you & kind regards,
Idris.
ChemAxon 9c0afc9aaf
30-04-2013 13:55:34
Hi Idris,
You have to make sure that the Oracle Java is the default not the openJDK.
You can control this via the PATH variable, the bin directory of the Oracle Java should be put into front.
You can check the currently executed Java by :
which java
Also:
java -version
Best regards,
Szilard
User d8da4712c1
30-04-2013 15:21:07
Szilard wrote: |
Hi Idris,
You have to make sure that the Oracle Java is the default not the openJDK.
You can control this via the PATH variable, the bin directory of the Oracle Java should be put into front.
You can check the currently executed Java by :
which java
Also:
java -version
Best regards,
Szilard
|
Yes everything is perfect, please what do you mean by "into front"?
this is my /etc/profile settings:
ORACLE_BASE=/usr/oracle
ORACLE_HOME=$ORACLE_BASE/product/11.2.0.3
CATALINA_HOME=/usr/share/tomcat6
JCHEM_HOME=/usr/jchem
CHEMAXON_LICENSE_URL=/root/ChemAxon/license.cxl
#JAVA_HOME=/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.19.x86_64
JAVA_HOME=/usr/java/jdk1.7.0_21/jre
ORACLE_SID=test
export JAVA_HOME ORACLE_BASE ORACLE_HOME ORACLE_SID CATALINA_HOME JCHEM_HOME CHEMAXON_LICENSE_URL
export PATH=$ORACLE_HOME/bin/:$CATALINA_HOME/bin:$JCHEM_HOME/bin:$JAVA_HOME/bin:$PATH
ChemAxon aa7c50abf8
30-04-2013 16:19:28
How do you start JChemManager exactly?
Which JChem version is this?
Peter
User d8da4712c1
30-04-2013 16:29:50
pkovacs wrote: |
How do you start JChemManager exactly?
Which JChem version is this?
Peter
|
This is a copy from my console "the command and the output before the window comes out"
.jchem]# ./JChemManager
testing JVM in /usr/java/jdk1.7.0_21 ...
ChemAxon aa7c50abf8
01-05-2013 15:36:22
Does it make any difference, if you start JChemManager using jcman:
$ jcman
?
Peter
User d8da4712c1
02-05-2013 08:19:12
pkovacs wrote: |
Does it make any difference, if you start JChemManager using jcman:
$ jcman
?
Peter
|
With the "jcman" command, the same message, this is a screenshot
ChemAxon aa7c50abf8
02-05-2013 12:02:47
Please, could you execute the following command and post the resulting log file?
>log; $JAVA_HOME/bin/java -version >>log 2>&1; java -version >>log 2>&1; ./jcman -h >>log 2>&1
Thanks,
Peter
User d8da4712c1
02-05-2013 12:54:16
pkovacs wrote: |
Please, could you execute the following command and post the resulting log file?
>log; $JAVA_HOME/bin/java -version >>log 2>&1; java -version >>log 2>&1; ./jcman -h >>log 2>&1
Thanks,
Peter
|
java version "1.7.0_21"
Java(TM) SE Runtime Environment (build 1.7.0_21-b11)
Java HotSpot(TM) 64-Bit Server VM (build 23.21-b01, mixed mode)
java version "1.7.0_21"
Java(TM) SE Runtime Environment (build 1.7.0_21-b11)
Java HotSpot(TM) 64-Bit Server VM (build 23.21-b01, mixed mode)
bash: ./jcman: Aucun fichier ou dossier de ce type
ChemAxon b47cbbf1b6
03-05-2013 12:52:34
Hi Idris!
I could reproduce your problem if I installed JChem with an OpenJDK. In this case the java version is written to ChemAxon/JChem/bin/java.ini, and it does not matter if you install an Oracle java later, the java version used by JChemManager and jcman is always read from this file.
And you have several options to correct this. But first check your java.ini file, whether it really contains a path to an openjdk java. If this is true then you can reinstall JChem from a shell where an Oracle java is the default. In this case everything is set up automatically. But if you do not want to reinstall it, you can edit the contents of your java.ini file and replace the path with a path to an Oracle JRE folder. For example:
[Java Runtime Environment]
Java Path=/opt/jre17/
The trailing "/" character is important!
I hope this will solve the problem in your case also.
Best Regards,
Akos