CMDBuild Forum

Error Installing openmaint on Windows 10

I am getting following error msg when I try to install using java -jar openmaint.war
can you plese help

C:\Users\ABC\Desktop\Open Maint\openmaint-2.3-3.4.4>java -jar openmaint.war
warning: broken temp dir C:\Users\anurabw\AppData\Local\Temp\cmdbuild_cli_1974357b574739b388245e46c74d040c, using next temp dir
loading jars …Exception in thread “main” java.io.FileNotFoundException: C:\Users\ABC\Desktop\Open%20Maint\openmaint-2.3-3.4.4\openmaint.war (The system cannot find the path specified)
at java.base/java.io.FileInputStream.open0(Native Method)
at java.base/java.io.FileInputStream.open(FileInputStream.java:216)
at java.base/java.io.FileInputStream.(FileInputStream.java:157)
at org.cmdbuild.webapp.cli.Main.startFromWarFile(Main.java:65)
at org.cmdbuild.webapp.cli.Main.main(Main.java:37)

image

The error you’re encountering is due to the space in the directory path (“Open Maint”). Java is unable to correctly interpret paths with spaces. You can fix this by either:

  • Renaming the folder to remove the space (e.g., “OpenMaint”), or
  • Quoting the path in your command like this:
java -jar "C:\Users\ABC\Desktop\Open Maint\openmaint-2.3-3.4.4\openmaint.war"

This should resolve the FileNotFoundException.

Thanks