Page 1 of 1

Installation problem with Java cryptography

PostPosted:Sun Jan 30, 2022 9:24 am
by anto2
Hello, failing to install on a Windows system, my log is as follows. Any hint?
Thank you!
Code: Select all
2022-01-30 09:59:19,412 [    main] INFO  com.openkm.installer.Main - Running on Windows: 0.9.19-CE (build: ef7e83a)
2022-01-30 09:59:19,428 [    main] INFO  com.openkm.installer.Main - Local host: ANT-MON-33-NB (192.168.1.139)
2022-01-30 09:59:19,429 [    main] INFO  com.openkm.installer.Main - Java version: 17.0.2
2022-01-30 09:59:19,432 [    main] INFO  com.openkm.installer.Main - JAVA_HOME = C:\Program Files (x86)\Java\jre1.8.0_201
2022-01-30 09:59:19,439 [    main] WARN  com.openkm.installer.c.k - Failed to remove cryptography restrictions
java.lang.reflect.InaccessibleObjectException: Unable to make field private static final boolean javax.crypto.JceSecurity.isRestricted accessible: module java.base does not "opens javax.crypto" to unnamed module @31a5c39e
	at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:354)
	at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:297)
	at java.base/java.lang.reflect.Field.checkCanSetAccessible(Field.java:178)
	at java.base/java.lang.reflect.Field.setAccessible(Field.java:172)
	at com.openkm.installer.c.k.b(SourceFile:129)
	at com.openkm.installer.Main.a(SourceFile:115)
	at com.openkm.installer.Main.main(SourceFile:83)
2022-01-30 09:59:19,443 [    main] INFO  com.openkm.installer.Main - Free disk size: 282.7 GB
2022-01-30 09:59:19,458 [    main] INFO  com.openkm.installer.Main - RAM size: 7.9 GB
2022-01-30 09:59:19,459 [    main] INFO  com.openkm.installer.Main - CPU cores: 4
2022-01-30 09:59:19,472 [    main] INFO  com.openkm.installer.Main - Server IP: 192.168.1.139
2022-01-30 09:59:19,474 [    main] INFO  com.openkm.installer.Main - Supported databases: [h2, hsqldb, mariadb, mysql, oracle, postgresql, sqlserver]
2022-01-30 09:59:19,476 [    main] INFO  com.openkm.installer.Main - Current directory: C:\
2022-01-30 09:59:19,476 [    main] INFO  com.openkm.installer.Main - ERROR: OpenKM needs Java 1.8

Re: Installation problem with Java cryptography

PostPosted:Mon Jan 31, 2022 7:11 am
by pavila
ERROR: OpenKM needs Java 1.8

Re: Installation problem with Java cryptography

PostPosted:Fri Apr 21, 2023 4:12 pm
by gobbledygook
Exactly same issue here!

"Failed to remove cryptography restrictions" & "OpenKM needs Java 1.8".
Though everything is set-up as explained in the official guide: https://www.youtube.com/watch?v=7C40UMajJ0k.
Java is running on version 20.0.1.

Any solution on this?

Re: Installation problem with Java cryptography

PostPosted:Thu May 25, 2023 6:23 pm
by jllort
You are executing openkm with java 17.0.2 as is shown in your log
Code: Select all
2022-01-30 09:59:19,429 [    main] INFO  com.openkm.installer.Main - Java version: 17.0.2
* You must installing java 1.8 ( that's the first )
* Maybe the easiest is to remove the upper java version and let only 1.8 in the server