Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

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.
Suggest Edit

Published January 31, 2016 - Updated October 8, 2020

Did you find this content helpful? Yes No

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us