Page 1 of 1

Java and Ubuntu 12.04

PostPosted:Mon May 28, 2012 7:18 pm
by xultz
Hello

I know almost nothing about Java. I would like to try OpenKM in a Ubuntu 12.04 Server, but it looks like Canonical took out the Java package from Oracle because of some kind of copryright issues. I found some other sugestions, like OpenJDK to replace Sun Java JDK.
I would like to know if it possible to run OpenKM in such package, or it must run onle in Sun Java JDK.

Thanx in advance for any help

Re: Java and Ubuntu 12.04

PostPosted:Thu May 31, 2012 8:15 pm
by jllort
You should run with sun jdk, because it was we've the environment we develop and which is tested. With openjdk should run too, but I suggest not use it on a production environment. Finally Oracle will force us to use openjdk.

Re: Java and Ubuntu 12.04

PostPosted:Mon Jun 18, 2012 7:21 am
by MohammedAbbas
Just do the following commands and you will able to run openkm using Oracle java 6
Code: Select all
$ wget http://download.oracle.com/otn-pub/java/jdk/6u31-b04/jre-6u31-linux-i586.bin
$ chmod u+x jre-6u31-linux-i586.bin
$ ./jre-6u31-linux-i586.bin
$ sudo mv jre1.6.0_31 /usr/lib/jvm/
$ sudo update-alternatives --install "/usr/bin/java" "java" "/usr/lib/jvm/jre1.6.0_31/bin/java" 1
$ sudo update-alternatives --install "/usr/lib/mozilla/plugins/libjavaplugin.so" "mozilla-javaplugin.so" "/usr/lib/jvm/jre1.6.0_31/lib/i386/libnpjp2.so" 1
$ sudo update-alternatives --config java
$ sudo update-alternatives --config mozilla-javaplugin.so