How to overcome Jaspersoft Java issue during Install

Document ID : KB000032860
Last Modified Date : 14/02/2018
Show Technical Document Details

Issue:

How can we resolve the issue while installing Jaspersoft we get the following error ?

D:\Installables\Clarity14-2\Jasper-studio561\DVD11092647E\ca_ppm_jaspersoft_5.6.1_4.7\buildomatic\bin\import-export.xml:285: The following error occurred while executing this line:
D:\Installables\Clarity14-2\Jasper-studio561\DVD11092647E\ca_ppm_jaspersoft_5.6.1_4.7\buildomatic\bin\import-export.xml:158: java.io.IOException: Cannot run program "D:\ca\Java\jdk1.7.0_21\jre\bin\java.exe": CreateProcess error=206, The filename or extension is too long
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1042)
at java.lang.Runtime.exec(Runtime.java:615)

Caused by: java.io.IOException: CreateProcess error=206, The filename or extension is too long
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.<init>(ProcessImpl.java:288)
at java.lang.ProcessImpl.start(ProcessImpl.java:133)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1023)
... 38 more

Cause: 

The path or filename is too long for the program to process.

Resolution: 

1. Ensure the Java Path is set accordingly

  a. JAVA_HOME = C:\Java\jdk1.8.0_40

  b. JRE_HOME = C:\Program Files\Java\jre1.8.0_40

2.  Extract/Unzip your Jaspersoft install files in a shorter path. For example: C:\ Installables\Jaspersoft 

3.  Install the tomcat also in shorter path. For example C:\Installables\JSTomcat