Page 1 of 1

Java installation issue

PostPosted:Wed Feb 15, 2012 1:27 am
by turbulent1975
I'm plannint to install openkm on my system of Red Hat Enterprise Linux 6. I found openjdk 1.6 already installed. Do I need to unstall openjdk first and install sun jdk? Or just install sun jdk directly?

Re: Java installation issue

PostPosted:Thu Feb 16, 2012 8:52 am
by jllort
You can have both java installed on your OS. Simply made in your red hat installation the default java as sun, or you should configure in run.sh your java home as sun java_home. The most easiest way is setting java-sun the default in debian si something like this sudo update-alternatives --config java I don't know if in redhat is the same

Re: Java installation issue

PostPosted:Fri Feb 17, 2012 4:26 am
by okmuser
Hi Tubulent,

Did you try OpenKM with openJDK, recently I 'purged' Sun JAVA and installed OpenJDK to test the compatibility with OpenKM and haven't had any issues yet.

Mine is Debian Wheezy though.

Re: Java installation issue

PostPosted:Fri Feb 17, 2012 10:32 pm
by pavila
okmuser wrote:Did you try OpenKM with openJDK, recently I 'purged' Sun JAVA and installed OpenJDK to test the compatibility with OpenKM and haven't had any issues yet.
Good to know. We have don't fully tested OpenKM with OpenJDK, specially because JBoss.

Re: Java installation issue

PostPosted:Wed Feb 22, 2012 12:15 am
by turbulent1975
I'm a newbie in java, and just wish to use openkm.

Before installing openkm, openjdk has been installed on my system. Because I found some threads here in the forum concerning problems with openjdk, I decided to install sun jdk for openkm. I downloaded and installed sun jdk 1.6.

When executing the command
update-alternatives --config java
The options are:
/usr/lib/jvm/jre-1.6.0-openjdk/bin/java
/usr/lib/jvm/jre-1.5.0-gcj/bin/java
So sun jdk just installed cannot be recognized by "update-alternatives". I didn't know how to fix it.

To use sun jdk for openkm, I tried another way: change the environment varible
JAVA_HOME=/usr/java/jdk1.6.0_31

When starting openkm by
run.sh -b 0.0.0.0
I found the line below in the output:
JAVA: /usr/java/jdk1.6.0_31/bin/java
Does that mean that I have succeed in using sun jdk for openkm?

Anyway, I can access openkm from another computer and login as admin. It's ok for now. I'm not sure if problem will emerge in the future concerning more operations.

Re: Java installation issue

PostPosted:Wed Feb 22, 2012 11:24 am
by jllort
Yes, your java jdk is correctly installed