Support Article
Getting Exception While Generating Library
SA-1272
Summary
While clicking "Generate Library" button following errors are seen:
Error Messages:
Error(s) detected while generating java. Compiler reported: ----------
1. ERROR in com/pegarules/generated/ssappfwint_ssapputilities.java (at line 51)
import java.nio.file.*;
^^^^^^^^^^^^^
The import java.nio.file cannot be resolved
----------
----------
2. ERROR in com/pegarules/generated/AESEncryptDecrypt_010138_DbxSajfoxDHATyDTU4_CWw.java (at line 51)
import java.nio.file.*;
^^^^^^^^^^^^^
The import java.nio.file cannot be resolved
----------
3. ERROR in com/pegarules/generated/AESEncryptDecrypt_010138_DbxSajfoxDHATyDTU4_CWw.java (at line 179)
key = Files.readAllBytes(Paths.get(path));
^^^^^
Files cannot be resolved
....
Steps to Reproduce
Try to compile a function with reference to Java libraries java.nio.file.* with JDK 6 on the PRPC server.
Root Cause
The root cause of this problem is defect/misconfiguration in the PRPC operating environment.
The missing libraries are only available in Java 7.This is a limitation of Java 6.
Resolution
This issue is resolved by making the following change to the PRPC operating environment: JVM was upgraded to Java 7.
Published January 31, 2016 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.