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:
- Update JAVA_HOME to point to a JDK installation where the BIN directory includes jar.exe.
- 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
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.