Difference between revisions of "Java installation"

From OpenKM Documentation
Jump to: navigation, search
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
You should check if there is a previous java version installed in your system. You can check it running this command:
+
You should check if there is a previous java version installed in your system. You do this by running this command:
  
 
  $ java -version
 
  $ java -version
Line 5: Line 5:
 
It will tell you the installed version, if any. Keep in mind that OpenKM needs JDK 1.6 (or higher) to run. If you use a Debian based Linux distribution, you can install the Java JDK this way:
 
It will tell you the installed version, if any. Keep in mind that OpenKM needs JDK 1.6 (or higher) to run. If you use a Debian based Linux distribution, you can install the Java JDK this way:
  
  $ aptitude install sun-java6-jdk
+
  $ sudo aptitude install sun-java6-jdk
  
In case of you have other JDK installed (like GCJ) you can select the right one this way:
+
In case you have another JDK installed (like GCJ), you can select the right one this way:
  
 
  $ sudo update-alternatives --config java
 
  $ sudo update-alternatives --config java
 
  $ sudo update-alternatives --config javac
 
  $ sudo update-alternatives --config javac
  
If you use a Windows based OS, download and install Java JDK from http://java.sun.com/javase/downloads/index.jsp. In other case visit http://java.sun.com for more information.
+
Another preferred way to install Java in recent Ubuntu releases:
 +
 
 +
  $ sudo add-apt-repository ppa:webupd8team/java
 +
  $ sudo apt-get update
 +
  $ sudo apt-get install oracle-java6-installer
 +
 
 +
Recent OpenKM 6.2.x releases work with Java 7, but it has not been fully tested. If you want to install Java 7:
 +
 
 +
  $ sudo apt-get install oracle-java7-installer
 +
 
 +
If you use a Windows based OS, download and install Java JDK from http://http://www.oracle.com/technetwork/java/javase/downloads/index.html. In other cases visit http://http://www.oracle.com/technetwork/java/index.html for more information.
  
 
[[Category: Installation Guide]]
 
[[Category: Installation Guide]]

Latest revision as of 14:48, 23 May 2013

You should check if there is a previous java version installed in your system. You do this by running this command:

$ java -version

It will tell you the installed version, if any. Keep in mind that OpenKM needs JDK 1.6 (or higher) to run. If you use a Debian based Linux distribution, you can install the Java JDK this way:

$ sudo aptitude install sun-java6-jdk

In case you have another JDK installed (like GCJ), you can select the right one this way:

$ sudo update-alternatives --config java
$ sudo update-alternatives --config javac

Another preferred way to install Java in recent Ubuntu releases:

 $ sudo add-apt-repository ppa:webupd8team/java
 $ sudo apt-get update
 $ sudo apt-get install oracle-java6-installer

Recent OpenKM 6.2.x releases work with Java 7, but it has not been fully tested. If you want to install Java 7:

 $ sudo apt-get install oracle-java7-installer

If you use a Windows based OS, download and install Java JDK from http://http://www.oracle.com/technetwork/java/javase/downloads/index.html. In other cases visit http://http://www.oracle.com/technetwork/java/index.html for more information.