• JAVA_HOME / JRE_HOME variable missing

  • 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.
 #19629  by raiko
 
Hi, I've installed OpenKM 6.2 community on Ubuntu 12.04 LTS. After issued this command:
Code: Select all
./opt/openkm/tomcat/bin/catalina.sh start
Following error has returned:
Code: Select all
Neither the JAVA_HOME nor the JRE_HOME environment variable is defined
At least one of these environment variable is needed to run this program
From my understanding, OKM installer has JAVA bundled and I shouldn't need to install JAVA by my own. How can I fix it?

Thank You!
 #19636  by raiko
 
I followed this page to install JAVA 1.6 and with this errors:
Code: Select all
./jre-6u31-linux-i586.bin: line 1: html: No such file or directory
./jre-6u31-linux-i586.bin: line 2: head: No such file or directory
./jre-6u31-linux-i586.bin: line 3: title: No such file or directory
./jre-6u31-linux-i586.bin: line 4: META: No such file or directory
./jre-6u31-linux-i586.bin: line 5: link: No such file or directory
./jre-6u31-linux-i586.bin: line 6: link: No such file or directory
./jre-6u31-linux-i586.bin: line 7: $'\r': command not found
./jre-6u31-linux-i586.bin: line 8: body: No such file or directory
./jre-6u31-linux-i586.bin: line 9: div: No such file or directory
./jre-6u31-linux-i586.bin: line 10: table: No such file or directory
./jre-6u31-linux-i586.bin: line 11: tr: No such file or directory
./jre-6u31-linux-i586.bin: line 12: syntax error near unexpected token `<'
./jre-6u31-linux-i586.bin: line 12: `      <td rowspan="2" valign="middle" nowrap><a href="http://www.oracle.com"><img src="/errors/us/assets/oralogo-small.gif"'width="154" height="19" hspace="10" vspace="25" border="0" ></a></td>
I also tried to add the JRE_HOME variables manually from terminal:
Code: Select all
JRE_HOME=/opt/openkm/java
And catalina returns the same error.
 #19690  by jllort
 
For install java in ubuntu take a look here https://help.ubuntu.com/community/Java

About openkm installer, comes with java but this kind of configuration is only to make openkm starting and initial configuration more easy. Really the java installed by openkm bundle does not install at your OS in a normal way, only is exploded and used by openkm start scripts. Here I suppose you installed openkm with installer not .zip
 #19725  by raiko
 
Yes, I installed openkm with the installer. Unlike the windows version, I don't see there is any starting script. I have seen there was 2 scripts with "desktop" extension, but they have no action after double-click.

Since I have removed ubuntu. This thread can be closed.

Thanks for all the inputs.
 #19736  by jllort
 
Seems has been some problem during installation process. Anyway if you want to test other time script to execute from terminal are:
Code: Select all
tomcat/bin/catalina.sh start
tomcat/bin/catalina.sh stop
 #19834  by jllort
 
Seems has been some problem with your installation ? take a look in openkm folder you got java folder and then take a look at tomcat/setenv.sh that JAVA_HOME variable is correctly set, otherside change it.

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.