Hello,
We are trying to use groupdocs-viewer-25.2.jar
in a closed network environment with the following stack:
- Java 1.8
- Gradle 4.6
- Spring Boot 1.5.x
- No internet access (air-gapped network)
We have added the GroupDocs JAR like this in build.gradle
:
compile files('libs/groupdocs/groupdocs-viewer-25.2.jar')
The JAR is correctly present and included in the final packaged JAR file.
-----Issue-----
When calling any class or function from the GroupDocs library, we get:
java.lang.NoClassDefFoundError
We tried unpacking groupdocs-viewer-25.2.jar
using:
from { zipTree('libs/groupdocs/groupdocs-viewer-25.2.jar') }
However, Spring Boot 1.5 throws the following error:
java.lang.IllegalStateException: Zip64 archives are not supported
We realized that Spring Boot 1.5 does not support zip64, and the GroupDocs JAR appears to be in zip64 format.
The feature we are implementing is:
Convert DWG files to image, encode as Base64, and return the result (in a Spring REST API).
It works fine in local dev environments like Eclipse (non-packaged), but fails when running the Spring Boot packaged JAR.
-----Constraints-----
- Upgrading Spring Boot or Gradle is not feasible due to internal security and legacy policies.
- Internet access is strictly restricted (closed network).
-----Request-----
- Is there any non-zip64 version of
groupdocs-viewer-25.2.jar
that we can use in Spring Boot 1.5? - Alternatively, can you provide a lighter-weight or modular version of the JAR that avoids this issue?
- Any recommended workaround for use in a legacy Spring Boot environment?
Thanks in advance for your help!