Page 1 of 1

ERROR: OpenKM needs Java 1.7 or 1.8

PostPosted:Tue Feb 13, 2018 1:53 am
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)

Re: ERROR: OpenKM needs Java 1.7 or 1.8

PostPosted:Tue Feb 13, 2018 12:31 pm
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

Re: ERROR: OpenKM needs Java 1.7 or 1.8

PostPosted:Thu Feb 15, 2018 5:56 pm
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

Re: ERROR: OpenKM needs Java 1.7 or 1.8

PostPosted:Wed Mar 01, 2023 11:50 am
by Processing2023
@jnmwarren

Could you please share how exactly you solved the java error?

Re: ERROR: OpenKM needs Java 1.7 or 1.8

PostPosted:Sat Mar 04, 2023 9:13 am
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