Difference between revisions of "Changing Java Virtual Machine On Windows"

From LogicalDOC Community Wiki
Jump to navigationJump to search
Line 1: Line 1:
 +
Please read first [https://docs.logicaldoc.com/en/installation | how to install the right Java to use with LogicalDOC].
 +
 +
As soon as you have the right java installed in the LogicalDOC's server, then proceed to configure it as follows.
 
Assuming '''<LDOC_HOME>''' the installation folder of LogicalDOC (eg: C:\LogicalDOC).
 
Assuming '''<LDOC_HOME>''' the installation folder of LogicalDOC (eg: C:\LogicalDOC).
 
'''''Open a Command Prompt with elevated privileges (Run as Administrator)''''' and execute these commands:
 
'''''Open a Command Prompt with elevated privileges (Run as Administrator)''''' and execute these commands:
Line 13: Line 16:
 
[[Image:java-virtual-machine.png]]
 
[[Image:java-virtual-machine.png]]
  
In the field '''Java Virtual Machine''' choose the path where is the '''jvm.dll''' file of the Java runtime you want to use.<br />
+
In the field '''Java Virtual Machine''' choose the path where is located the '''jvm.dll''' file of the Java runtime you want to use.<br />
  
 
When done click on '''Apply''' and restart the '''LogicalDOC''' service
 
When done click on '''Apply''' and restart the '''LogicalDOC''' service

Revision as of 10:05, 4 March 2024

Please read first | how to install the right Java to use with LogicalDOC.

As soon as you have the right java installed in the LogicalDOC's server, then proceed to configure it as follows. Assuming <LDOC_HOME> the installation folder of LogicalDOC (eg: C:\LogicalDOC). Open a Command Prompt with elevated privileges (Run as Administrator) and execute these commands:

cd C:\LogicalDOC\tomcat\bin
LogicalDOCw.exe //MS//LogicalDOC    (if you do not have LogicalDOCw.exe use tomcat8w.exe instead)

A new tray icon with the LogicalDOC logo appears:
Ldoc tray.png

Right click on it and choose Configure...
Now open the Java tab:
Java-virtual-machine.png

In the field Java Virtual Machine choose the path where is located the jvm.dll file of the Java runtime you want to use.

When done click on Apply and restart the LogicalDOC service