• ERROR: OpenKM needs Java 1.7 or 1.8

  • 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.
 #45316  by jnmwarren
 
I am trying to install OpenKM. When I click on the file OKMInstaller.jar. I get the following error log. I have Java 8.161 installed as well as Java Development kit 9.0.4. How do I get the software installed and working? Thanks, John
Code: Select all
2018-02-12 18:35:17,604 [    main] INFO  com.openkm.installer.Main - Running in Windows: 0.9.3-CE (build: 32e830e)
2018-02-12 18:35:17,616 [    main] INFO  com.openkm.installer.Main - Local host: DESKTOP-VNDRI0R (192.168.1.9)
2018-02-12 18:35:17,617 [    main] INFO  com.openkm.installer.Main - Java version: 9.0.4
2018-02-12 18:35:17,618 [    main] INFO  com.openkm.installer.Main - JAVA_HOME = C:\openkm-dev\tools\EclipsePortable\App\Java\jdk1.7.0_75
2018-02-12 18:35:17,642 [    main] INFO  com.openkm.installer.Main - Free disk size: 738.6 GB
2018-02-12 18:35:17,671 [    main] INFO  com.openkm.installer.Main - RAM size: 15.9 GB
2018-02-12 18:35:17,671 [    main] INFO  com.openkm.installer.Main - CPU cores: 8
2018-02-12 18:35:17,672 [    main] INFO  com.openkm.installer.Main - Current directory: D:\@Data\Downloads
2018-02-12 18:35:17,673 [    main] INFO  com.openkm.installer.Main - ERROR: OpenKM needs Java 1.7 or 1.8
2018-02-12 18:35:17,674 [    main] ERROR com.openkm.installer.Main - OpenKM needs Java 1.7 or 1.8
java.lang.Exception: OpenKM needs Java 1.7 or 1.8
	at com.openkm.installer.Main.a(SourceFile:188)
	at com.openkm.installer.Main.main(SourceFile:87)
 #45319  by jnmwarren
 
I have solved the Java error. I am now trying to start the Tomcat Apache server. However it is not listed in the Services part of Windows. How do I get it to show up so that I can start it?

Thanks,
John
 #45325  by jllort
 
About the question, you should use JDK 1.8 ( 64 bits architecture )
Here are explained how to configure windows service ( might be the only difference from the screenshots will be the paths and if you do not find a file named tomcat7w.exe is becaused has renamed to openkmw.exe, but these might be the only differences from your scenario )
https://docs.openkm.com/kcenter/view/ok ... asaservice
 #54090  by jllort
 
First, take a look at your openkm.log which indicates what java version are using, it appears at the beginning of the start-up
Code: Select all
2018-02-12 18:35:17,618 [    main] INFO  com.openkm.installer.Main - JAVA_HOME = C:\openkm-dev\tools\EclipsePortable\App\Java\jdk1.7.0_75
You can set JAVA_HOME variable in setenv.sh or setenv.bat ( in the case of windows when configuring as a service can set what JDK wishes to be used ) https://docs.openkm.com/kcenter/view/ok ... mcat7wtool

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.