码迷,mamicode.com
首页 > 编程语言 > 详细

Intellij编译时报“java: System Java Compiler was not found in classpath”

时间:2014-12-21 22:03:20      阅读:528      评论:0      收藏:0      [点我收藏+]

标签:

问题如下:

http://stackoverflow.com/questions/19889145/setting-up-intellij-12-idea-with-java-1-7-and-resolve-java-system-java-compile

  1. IntelliJ 12 CE downloaded and installed
  2. Latest Java 1.7 downloaded and installed
  3. JDK was setup to make and run the project

I faced the following strange error

Error: java: System Java Compiler was not found in classpath

 

The solution that fixed my problem was as follows:

In:

Project Settings > Compiler > Java Compiler

I changed the drop down Use compiler from Javac to Eclipse!

Non of the other solutions I found on the web was helpful. Hope this helps you my unknown fellow reader.

IMPORTANT: THIS HAD NOTHING TO DO WITH MY JAVA_HOME AS IT WAS SET CORRECTLY.

Intellij编译时报“java: System Java Compiler was not found in classpath”

标签:

原文地址:http://www.cnblogs.com/elvalad/p/4177009.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!