Switch to Java25 on Linux
Reconfigure LogicalDOC to use Java 25 on Linux
Starting from version 9.3.1 LogicalDOC does not work with Java 21 anymore so you have to install Java 25. Please read first how to install the right Java to use with LogicalDOC.
It is important to install Java 25 and not Java 26 nor Java 27, because Java 25 is the latest LTS (Long Term Support) release available at the moment.
Given <LDOC_HOME> the installation path of LogicalDOC (by default it is /LogicalDOC), please proceed as follows:
1. Install Java 26 from Oracle or OpenJDK25
Hint for Ubuntu:
$ apt install -y openjdk-25-jdk
2. manage othe version of Java on the same server
If you have a previous version of Java installed, you should set the latest installed as default version using the update-alternatives command.
$ sudo update-alternatives --config java
3. With VI, or any other text editor, open the file <LDOC_HOME>/bin/logicaldoc.sh.
Inside that file, locate the variable JAVA_HOME and make sure it points to the Java 25 installation folder:
Probable path in Ubuntu:
export JAVA_HOME=/usr/lib/jvm/default-java
4. Iterate the point 2 for this list of additional files:
- <LDOC_HOME>/bin/update.sh
- <LDOC_HOME>/bin/patch.sh
- <LDOC_HOME>/bin/restart.sh
- <LDOC_HOME>/bin/reset-passwd.sh
5. Restart LogicalDOC