Maven项目出现Perhaps you are running on a JRE rather than a JDK?

  1. On your Eclipse IDE, go into Window > Preferences > Java > Installed JREs > and check your installed JREs. You should choose JDK folder  there.
  2. Maven项目出现Perhaps you are running on a JRE rather than a JDK?
  3.  window --> preferrences --> Select the  Execution Env as show below. Click OKMaven项目出现Perhaps you are running on a JRE rather than a JDK?
  4. Then Right-Click on your Project -> Maven -> Update Project 
  5、如果错误还是出现,看一下java类是否编译成.class文件,如果没有 参考 :http://blog.****.net/u013314786/article/details/49445407 文章进行排查