Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/389.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
从IntelliJ IDEA运行Mule应用程序时java.lang.ClassNotFoundException_Java_Intellij Idea_Mule_Classnotfoundexception - Fatal编程技术网

从IntelliJ IDEA运行Mule应用程序时java.lang.ClassNotFoundException

从IntelliJ IDEA运行Mule应用程序时java.lang.ClassNotFoundException,java,intellij-idea,mule,classnotfoundexception,Java,Intellij Idea,Mule,Classnotfoundexception,同事们,我正在尝试在IntelliJ IDEA中运行Mule应用程序。我配置了运行配置: Main class: org.mule.MuleServer VM options: -Dmule.verbose.exceptions=true Program arguments: -config \src\main\app\mule-config.xml Working directory: C:\Users\Maya\app-services JRE: Default

同事们,我正在尝试在IntelliJ IDEA中运行Mule应用程序。我配置了运行配置:

 Main class: org.mule.MuleServer
   VM options: -Dmule.verbose.exceptions=true
   Program arguments:  -config \src\main\app\mule-config.xml
   Working directory:  C:\Users\Maya\app-services
   JRE: Default (1.8 - SDK of 'app-services' module)
当我运行时,然后接收下一个堆栈跟踪:


我需要检查和更正什么?

这似乎是一个类路径问题。
org.mule.MuleServer
在您的类路径中吗?

I我的案例:

  • 按照上述说明设置运行配置
  • 在项目上按F4
  • 将所有Maven库从提供的
    更改为
    compile
  • 按Ok。运行应用程序


  • 我研究了系统变量,路径变量,但并没有关于Mule的内容。它在Eclipse中也起作用。我没有使用IntelliJ。我指的是Eclipse构建路径。我想IntelliJ中也可以提供类似的功能来引用外部JAR。