Could not find or load main class ¹Xmx4096m on Tomcat
SummaryFollowed the PegaRULES Process Commander Installation Guide Tomcat Oracle to install Pega 7 on Tomcat. When starting up the server, it fails to start with message:
Error: Could not find or load main class ¹Xmx4096m
When running catalina run the console shows the below error:Error: Could not find or load main class ¹Xmx4096m
Steps to Reproduce1) Follow the procedure as outlined in PegaRULES Process Commander Installation Guide Tomcat Oracle.
2) Create a setenv.bat as documented.
3) Copy the jvm argument of set JAVA_OPTS=-Xms2048m –Xmx4096m –XX:PermSize=64m –XX:MaxPermSize=384m from the pdn document and paste it into setenv.bat
4) Open a command window and run catalina run
Root CauseA software use or operation error. When doing copy and paste text from a PDF document, the data might contain invisible character which the JVM can not process correctly.
ResolutionDo not copy and paste the JVM arguments from the Installation Guide PDF. Manually edit the setenv.bat file to include the JVM arguments.
Published October 21, 2016 - Updated November 3, 2016