Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WSO2 API Manager : Error: Could not find or load main class Enterprise

I am new to WSO2 API Manager. As per the documentation i tried to start the server locally but i got error stating that Could not find or load main class Enterprise.

Can someone please help me to fix this issue to proceed further

D:\softwares\WSO2\WSO2 API Manager\wso2am-2.0.0\wso2am-2.0.0\bin>wso2server.bat

JAVA_HOME environment variable is set to C:\Program Files\Java\jdk1.8.0_111
CARBON_HOME environment variable is set to D:\softwares\WSO2\WSO2 Enterprise Service Bus\wso2esb-5.0.0
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
Error: Could not find or load main class Enterprise

D:\softwares\WSO2\WSO2 API Manager\wso2am-2.0.0\wso2am-2.0.0\bin>

Thanks Munna

like image 922
munna Avatar asked Oct 28 '25 15:10

munna


1 Answers

My suggestion is:

  1. Set the CARBON_HOME environment variable system wide, according to wso2am_HOME, but do not use the ending backslash ('\'). e.g. CARBON_HOME=D:\Program Files\WSO2\API Manager\2.6.0
  2. missing quote marks at one place in the wso2server.bat, at the starting java VM part, that's why the spaces in path not works, but if you correct it, you do not need to avoid spaces... the wrong place is the wso2.carbon.xml parameter path. The correct syntax is with quote marks: -Dwso2.carbon.xml="%CARBON_HOME%\repository\conf\carbon.xml"
like image 103
tibi Avatar answered Oct 31 '25 12:10

tibi



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!