简体   繁体   English

将Intellij Idea编译器语言级别设置为1.3

[英]Set Intellij Idea Compiler Language Level to 1.3

I'm using Intellij Idea 15.0.1 and have a Java project, it imports class of default package from the class of a named package. 我正在使用Intellij Idea 15.0.1,并且有一个Java项目,它从命名包的类导入默认包的类。

Since it is allowed only in Java 1.3, I've set JDK 1.3 everywhere: 由于仅Java 1.3允许使用,因此我在所有地方都设置了JDK 1.3:
- Project Settings -项目设置
- IDE Settings - Java Compiler -IDE设置-Java编译器
- Edit Configurations (Application) -编辑配置(应用程序)

But still when I make project it stops with "Cannot resolve symbol" error. 但是仍然当我制作项目时,它会因“无法解析符号”错误而停止。 Also making starts with the message: 同样从消息开始:

Information:Using javac 1.8.0_51 to compile java sources

Why Idea still uses javac 1.8 and how to set java 1.3 for the whole project, including syntax highlight? 为什么Idea仍然使用javac 1.8,以及如何为整个项目设置java 1.3,包括语法突出显示?

You need to install JDK 1.3, configure it in Project Structure | 您需要安装JDK 1.3,并在“项目结构” |“配置”中对其进行配置。 SDKs and select it as the project SDK in Project Structure | SDK,并在“项目结构” |“项目结构”中选择它作为项目SDK。 Project. 项目。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM