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

Error occurs when running the CompilAndLoad.bat

SA-59322

Summary



Error occurs when running the CompileAndLoad.bat.


Error Messages



Will load CodeSet: 'pega-enginecode' with CodeSetVersion: '06-03-10' with patch
date: ''
java.io.FileNotFoundException: C:\myPath\bin
\AESCryptix.jar (The system cannot find the file specified)
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(Unknown Source)
at java.util.zip.ZipFile.<init>(Unknown Source)
at java.util.jar.JarFile.<init>(Unknown Source)
at java.util.jar.JarFile.<init>(Unknown Source)

Below error in the log file is the issue,

Moved to bin directory C:\myPath\bin
Creating an archive AESCryptix.jar in directory C:\myPath\bin
'"C:\Program Files (x86)\Java\jre1.8.0_101\bin\jar"' is not recognized as an internal or external command, operable program or batch file
.


Steps to Reproduce



Unknown


Root Cause



A defect or configuration issue in the operating environment. 

The jar.exe is not available because JAVA_HOME pointed to a JRE and to a JDK. There are spaces in the directory path name for JAVA_HOME which is not supported by the script. Since JAVA_HOME had a space, quotes must be added around the command.



Resolution



Perform the following local-change: 
  1. Update JAVA_HOME to point to a JDK installation where the BIN directory includes jar.exe.
  2. In CompileAndLoad.bat, modify the below,

    %JAVA_HOME%\bin\jar cfvM %jarFile%
    to 
    "%JAVA_HOME%\bin\jar" cfvM %jarFile%

Published July 23, 2018 - Updated October 8, 2020

Was this useful?

0% found this useful

Have a question? Get answers now.

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

Did you find this content helpful?

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