Support Article

Could not find or load main class ¹Xmx4096m on Tomcat

SA-29463

Summary



Followed 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


Error Messages



When running catalina run the console shows the below error:
Error: Could not find or load main class ¹Xmx4096m


Steps to Reproduce



1) 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 Cause



A 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.

Resolution



Do 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

Have a question? Get answers now.

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