Difference between revisions of "Switch to Java21 on Windows"

From LogicalDOC Community Wiki
Jump to navigationJump to search
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 
=== Reconfigure LogicalDOC to use Java 21 on Windows ===
 
=== Reconfigure LogicalDOC to use Java 21 on Windows ===
  
Starting from version 9.0.1 LogicalDOC does not work with Java17 anymore so you have to install Java21.
+
Starting from version 9.0.1 LogicalDOC does not work with Java 17 anymore so you have to install Java 21.
 
Please read first [https://docs.logicaldoc.com/en/installation how to install the right Java to use with LogicalDOC].
 
Please read first [https://docs.logicaldoc.com/en/installation how to install the right Java to use with LogicalDOC].
  
It is important to install Java21 and not Java22 nor Java23, because Java21 is the latest LTS (Long Term Support) release available at the moment.<br><br>
+
It is important to install Java 21 and not Java 22 nor Java 23, because Java21 is the latest LTS (Long Term Support) release available at the moment.<br><br>
  
 
Given '''<LDOC_HOME>''' the installation path of LogicalDOC (by default it is C:\LogicalDOC), please proceed as follows:
 
Given '''<LDOC_HOME>''' the installation path of LogicalDOC (by default it is C:\LogicalDOC), please proceed as follows:
Line 38: Line 38:
  
 
14. Now open the <b>Java</b> tab<br/>
 
14. Now open the <b>Java</b> tab<br/>
[[Image:udpatewd-java21.png]]
+
[[Image:udpatewd-java21.png|400px]]
  
 
15. In the '''Java Virtual Machine''' put the full path of your jvm.dll (something like C:\Program Files\Java\jdk-21\bin\server)
 
15. In the '''Java Virtual Machine''' put the full path of your jvm.dll (something like C:\Program Files\Java\jdk-21\bin\server)
Line 44: Line 44:
 
16. Click on '''Apply''' and then '''Ok'''
 
16. Click on '''Apply''' and then '''Ok'''
  
17. Define the a system variable '''JAVA_HOME''' pointing to the Java17 installation path (something like C:\Program Files\Java\jdk-21)
+
17. Define the a system variable '''JAVA_HOME''' pointing to the Java 21 installation path (something like C:\Program Files\Java\jdk-21)
  
 
18. Restart the '''LogicalDOC Update''' service
 
18. Restart the '''LogicalDOC Update''' service

Latest revision as of 07:32, 26 August 2024

Reconfigure LogicalDOC to use Java 21 on Windows

Starting from version 9.0.1 LogicalDOC does not work with Java 17 anymore so you have to install Java 21. Please read first how to install the right Java to use with LogicalDOC.

It is important to install Java 21 and not Java 22 nor Java 23, because Java21 is the latest LTS (Long Term Support) release available at the moment.

Given <LDOC_HOME> the installation path of LogicalDOC (by default it is C:\LogicalDOC), please proceed as follows:

1. Install Java21 from Oracle or OpenJDK21

2. Open a shell as Administator and go to <LDOC_HOME>\tomcat\bin\

3. Execute the command LogicalDOCw.exe //MS/LogicalDOC

4. This creates a tray icon with the LogicalDOC’s logo

5. Right click on it and choose Configure...
Ldoc tray.png

6. Now open the Java tab
Udpate-java21.png

7. In the Java Virtual Machine put the full path of your jvm.dll (something like C:\Program Files\Java\jdk-21\bin\server)

8. Click on Apply and then Ok

9. Restart the LogicalDOC service

10. Open a shell as Administator and go to <LDOC_HOME>\update-wd

11. Execute the command 'update-wdw.exe //MS/LogicalDOC-Update

12. This creates another tray icon with the LogicalDOC’s logo

13. Right click on it and choose Configure...
Update tray.png

14. Now open the Java tab
Udpatewd-java21.png

15. In the Java Virtual Machine put the full path of your jvm.dll (something like C:\Program Files\Java\jdk-21\bin\server)

16. Click on Apply and then Ok

17. Define the a system variable JAVA_HOME pointing to the Java 21 installation path (something like C:\Program Files\Java\jdk-21)

18. Restart the LogicalDOC Update service