1. 程式人生 > >解決Error:java: System Java Compiler was not found in classpath

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

第一次使用intellij的時候碰到了一個這樣的問題:
Error:java: System Java Compiler was not found in classpath:
java.lang.ClassNotFoundException: com.sun.tools.javac.api.JavacTool
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController
.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.Class.forName0(Native Method) at java.lang
.Class.forName(Unknown Source) at org.jetbrains.jps.builders.impl.java.JavacCompilerTool.createCompiler(JavacCompilerTool.java:70) at org.jetbrains.jps.javac.JavacMain.compile(JavacMain.java:63) at org.jetbrains.jps.javac.ExternalJavacProcess.compile(ExternalJavacProcess.java:196) at org.jetbrains
.jps.javac.ExternalJavacProcess.access$400(ExternalJavacProcess.java:48) at org.jetbrains.jps.javac.ExternalJavacProcess$CompilationRequestsHandler$1.run(ExternalJavacProcess.java:263) at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source)

開始以為是環境變數配置的不對,結果搞了蠻久,最後解決方法如圖:
這裡寫圖片描述
將箭頭標記的這個地方改為eclipse就好了。

相關推薦

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

第一次使用intellij的時候碰到了一個這樣的問題: Error:java: System Java Compiler was not found in classpath: java.lan

java: System Java Compiler was not found in classpath: java.lang.ClassNotFoundException: com.s錯誤改正方法

剛開始編譯java 時候,什麼jdk也都安裝完畢了,但是老是出現 老是出現這個問題。現在出來寫一個博文進行記錄一下。        我的編譯環境:jdk版本:1.8;win7;編輯器:IntelliJ Idea ; 解決方法:

[已解決]Xcode編譯項目最後失敗:Error: Jar file buglySymboliOS.jar was not found. Please copy the jar file into ~/bin folder

iphone prepare pre found inter step lib detail key Xcode去用Archive打包企業版app,在編譯的最後出錯: <div–<————————————————————– Copyright 2014-2015

Python Version 2.7 required which was not found in the registry 問題解決

 今天在安裝numpy時,出現了Python Version 2.7 required which was not found in the registry錯誤,解決方案如下。   Python的一些第三方庫只到登錄檔的HKEY_LOCAL_MACHINE\SO

解決安裝MySQL-python出現的:Python version 2.7 required, which was not found in the registry

安裝MySQL-python-1.2.3.win-amd64-py2.7.exe,時提示:Python version 2.7 required, which was not found in the

對於 Package gstreamer-0.10.23 was not found in the pkg-config search path. 的問題的解決

看是手動安裝還是以二進位制包形式安裝: 把安裝路徑新增到 PKG_CONFIG_LIBDIR 即可。 原文: Manually installed to /usr/local/ ? Or installed as a binary package ? ( You ma

Python version 3.6 required, which was not found in the registry錯誤解決

問題 def eat war use soft 分享 key path 問題: 安裝pywin32出現Python version 3.6 required, which was not found in the registry錯誤解決 解決: 建立一個文件 reg

解決Package fuse was not found in the pkg-config search path.

gcc -Wall `pkg-config fuse --cflags --libs` -D_FILE_OFFSET_BITS=64 fusexmp.c -o fusexmp Package fuse was not found in the pkg-config sear

Package gtk+-3.0 was not found in the pkg-config search path

path 二進制 all 項目 有時 rpm fedora ack share 問題描述:   在fedora21系統上通過rpmbuild構建fcitx的二進制包時出現以上錯誤,經老程序員指點:“是相應的開發包沒有安裝” 解決辦法:   yum installl gtk3

Ubuntu 16.04 LTS 安裝libvips出現”Package vips was not found in the pkg-config search path”

arp dir exp export ron per gconf 部署 director 使用libvips來操作圖像,libvips的部署參考一個Node.js工程:https://github.com/lovell/sharp 在MAC下安裝很順利,到Linux環境下(

python version 2.7 required,which was not found in the registry

.html except http nco com name desc log all # # script to register Python 2.0 or later for use with win32all # and other extensions that

安裝第三方庫 報錯Python version 2.7 required, which was not found in the registry

try 三方庫 64位 req not 安裝 window 是我 found 我的Windows 系統是64位 這個問題有人說是註冊表沒有 ,手動註冊了一下就好了,但是我註冊的時候運行報錯。 那麽我的做法是: 刪掉本機所有安裝過得python , 1、 先進入控制面板,刪除

安裝第三方庫出現 Python version 2.7 required, which was not found in the registry

prefix another odin light admin urn utf n! .py 安裝第三方庫出現 Python version 2.7 required, which was not found in the registry 建立一個文件 register.

Python version 3.3 required, which was not found in the registry

() fix core can war 安裝 錯誤 -c gpa python registry函數語法 在windows下安裝numpy的時候, 出現了"Python version 3.3 required, which was not found in the re

Configuration Annotation Proessor not found in classpath解決

宣告,使用 springboot2.0、JDK8 、maven3.5.4 問題描述: 在springboot中自定義配置檔案 other.properties時候,報錯; 原因: *使用: @ConfigurationProperties(prefix = “other”) 這個

IDEA下報 SpringBoot Configuration Annotation Processor not found in classpath解決方案

一:問題背景.(環境:IDEA 2018 2.5的版本,SpringBoot 1.5.10.RELEASE的版本)      在使用 @ConfigurationProperties(prefix = "")批量注入application.proper

安裝Centos 6.4提示找不到安裝檔案 The centos disc was not found in any of your drives.Please insert the centos d

【1】安裝Centos 6.4提示找不到安裝檔案 The centos disc was not found in any of your drives.Please insert the centos disc and press OK to retry  解決方法: 把CD

hive啟動報錯之2、The specified datastore driver ("com.mysql.jdbc.Driver") was not found in the CLASSPATH.

報錯資訊如下: [[email protected] bin]$ ./hive Missing Hive Execution Jar: /opt/soft/apache-hive-1.1.0-cdh5.7.0-bin/lib/hive-exec-*.jar 考慮的

執行Spark SQL報The specified datastore driver ("com.mysql.jdbc.Driver") was not found in the CLASSPATH.

想啟動spark-sql,結果報了 Caused by: org.datanucleus.store.rdbms.connectionpool.DatastoreDriverNotFoundExcept

Spring Boot Annotion processor not found in classpath問題解決方法

Spring Boot 2.0中使用@ConfigurationProperties(prefix = "xxx")註解時, 會顯示 Spring Boot Annotion processor not found in classpath 處理此問題需要在maven的pom.xml中新增: