按照setting_up_environment'IntelliJ Platform SDK DevGuide'和checkout_and_build_community中的说明进行操作:
以上所有内容在Ubuntu 15和Windows 8.1 vm上完成了两次。 当我尝试构建项目时,我收到了许多关于弃用类和两个错误的警告:
C:\IdeaProjects\community\plugins\cvs\cvs-core\src\com\intellij\cvsSupport2\config\ProxySettings.java
Warning:Warning:line (19)java: com.intellij.openapi.util.DefaultJDOMExternalizer in com.intellij.openapi.util has been deprecated
Warning:Warning:line (21)java: com.intellij.openapi.util.JDOMExternalizable in com.intellij.openapi.util has been deprecated
Warning:Warning:line (25)java: com.intellij.openapi.util.JDOMExternalizable in com.intellij.openapi.util has been deprecated
Warning:Warning:line (72)java: com.intellij.openapi.util.DefaultJDOMExternalizer in com.intellij.openapi.util has been deprecated
Warning:Warning:line (77)java: com.intellij.openapi.util.DefaultJDOMExternalizer in com.intellij.openapi.util has been deprecated
C:\IdeaProjects\community\plugins\cvs\cvs-core\src\com\intellij\cvsSupport2\config\ExtConfiguration.java
Warning:Warning:line (20)java: com.intellij.openapi.util.DefaultJDOMExternalizer in com.intellij.openapi.util has been deprecated
Warning:Warning:line (22)java: com.intellij.openapi.util.JDOMExternalizable in com.intellij.openapi.util has been deprecated
Warning:Warning:line (29)java: com.intellij.openapi.util.JDOMExternalizable in com.intellij.openapi.util has been deprecated
Warning:Warning:line (39)java: com.intellij.openapi.util.DefaultJDOMExternalizer in com.intellij.openapi.util has been deprecated
Warning:Warning:line (44)java: com.intellij.openapi.util.DefaultJDOMExternalizer in com.intellij.openapi.util has been deprecated
C:\IdeaProjects\community\platform\built-in-server-api\src\org\jetbrains\builtInWebServer\WebServerRootsProvider.java
Error:Error:line (13)java: cannot find symbol
symbol: class PathInfo
location: class org.jetbrains.builtInWebServer.WebServerRootsProvider
Error:Error:line (16)java: cannot find symbol
symbol: class PathInfo
location: class org.jetbrains.builtInWebServer.WebServerRootsProvider
我已经google了,但未能找到与PathInfo,builtInWebServer或WebServerRootsProvider相关的任何内容。可能是因为谷歌自动假设我的意思是“路径信息”并默默地混合这些结果。
我怀疑这可能是我没有用IDEA下载的东西,比如J2EE或者一些Apache库,但几个小时之后,我已经准备好放弃并问。
回答答案时的一些评论:
答案 0 :(得分:3)
IDEA SDK部分用Kotlin编写,Kotlin是一种在Java虚拟机上运行的静态类型编程语言。
缺少的PathInfo类在PathInfo.kt中定义,即Kotlin文件。
选择文件|设置|插件并单击“安装JetBrains插件”。 选择Kotlin插件,错误就会消失。
答案 1 :(得分:0)
可能是IntelliJ找不到Java的路径...在IntelliJ中设置JDK(已安装)的路径