• Java installation issue

  • Problems with installing OpenKM? No problemo, the solution is closer than you think.
Problems with installing OpenKM? No problemo, the solution is closer than you think.
Forum rules: Please, before asking something see the documentation wiki or use the search feature of the forum. And remember we don't have a crystal ball or mental readers, so if you post about an issue tell us which OpenKM are you using and also the browser and operating system version. For more info read How to Report Bugs Effectively.
 #13995  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?
 #14010  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
 #14023  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.
 #14042  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.
 #14079  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.
 #14090  by jllort
 
Yes, your java jdk is correctly installed

About Us

OpenKM is part of the management software. A management software is a program that facilitates the accomplishment of administrative tasks. OpenKM is a document management system that allows you to manage business content and workflow in a more efficient way. Document managers guarantee data protection by establishing information security for business content.