現(xiàn)象: 執(zhí)行demo,比如helloexample ,點(diǎn)擊“run as mule application”,彈出框“Could not find the main class.Program will exit”
控制臺出現(xiàn):
java.lang.NoClassDefFoundError: org/mule/tooling/server/application/ApplicationDeployer
Exception in thread "main"
解決方法: 是因?yàn)閖dk 有問題,在mule官網(wǎng)上要求
Before installing Mule Studio, ensure that the host machine has one of the following Java Development Kit versions installed on it:
- Standard Edition 1.6.0_26 (also known as JDK SE 6 Update 26) or more recent
- Enterprise Edition 1.6u3 (JDK EE 6 Update 3) or more recent
- Any version (SE or EE) of JDK 7
在java build path--》libraries 選擇jre system library 為jdk1.7就可以。