Apache NetBeans 9.0 是否支持 java 11?
Does Apache NetBeans 9.0 support java 11?
谁能说说 Apache NetBeans 9.0 是否支持 java11,如果支持,实现该功能的要求是什么?
目前我可以在 NetBeans 9.9 中编译和 运行 java 11 代码,但它带有红色下划线并且错误消息是 "cannot find symbol ...".
下面是我使用的 pom.xml 文件:
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>IoTlite</groupId>
<artifactId>ioTlite</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>jar</packaging>
<name>ioTlite</name>
<description>ioTlite backend project with Spring Boot</description>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.1.0.RC1</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<java.version>11</java.version>
</properties>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>org.postgresql</groupId>
<artifactId>postgresql</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.springframework.restdocs</groupId>
<artifactId>spring-restdocs-mockmvc</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>10</source>
<target>10</target>
</configuration>
</plugin>
</plugins>
</build>
</project>
应该如何更改,例如 pom 文件?
No NetBeans 9 不支持 Java11(仅 9 和 10)[1].
计划于 11 月发布的 NetBeans 10 [2] will support Java 11 [3]。不幸的是,它还不可用(至少作为官方版本)。
可在此处下载最新的候选版本
https://dist.apache.org/repos/dist/dev/incubator/netbeans/incubating-netbeans/
由于 NetBeans 10 最新投票候选人 5 处于最终发布投票阶段[4]我们应该期待在接下来的几天内发布最终版本。
NetBeans 10 has been released 支持 JDK 11:
JDK 11 Support
JDK 11 support has been enhanced in the following ways:
Integration with the nb-javac project, adding support for JDK 11.
Removed the CORBA modules.
Support for JEP 309, Dynamic Class-File Constants.
Support for JEP 323, Local-Variable Syntax for Lambda Parameters.
Support for LVTI Support for Lamdba Parameters
New Hint to convert variable type to 'var' for lambda parameters(JDK
11 and above)
Code completion for var lambda parameters
Code completion support for var type lambda parameters.(JDK 11 and
above)
See the JDK 11 Confluence Page for more detailed features.
谁能说说 Apache NetBeans 9.0 是否支持 java11,如果支持,实现该功能的要求是什么?
目前我可以在 NetBeans 9.9 中编译和 运行 java 11 代码,但它带有红色下划线并且错误消息是 "cannot find symbol ...".
下面是我使用的 pom.xml 文件:
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>IoTlite</groupId>
<artifactId>ioTlite</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>jar</packaging>
<name>ioTlite</name>
<description>ioTlite backend project with Spring Boot</description>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.1.0.RC1</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<java.version>11</java.version>
</properties>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>org.postgresql</groupId>
<artifactId>postgresql</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.springframework.restdocs</groupId>
<artifactId>spring-restdocs-mockmvc</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>10</source>
<target>10</target>
</configuration>
</plugin>
</plugins>
</build>
</project>
应该如何更改,例如 pom 文件?
No NetBeans 9 不支持 Java11(仅 9 和 10)[1].
计划于 11 月发布的 NetBeans 10 [2] will support Java 11 [3]。不幸的是,它还不可用(至少作为官方版本)。
可在此处下载最新的候选版本
https://dist.apache.org/repos/dist/dev/incubator/netbeans/incubating-netbeans/
由于 NetBeans 10 最新投票候选人 5 处于最终发布投票阶段[4]我们应该期待在接下来的几天内发布最终版本。
NetBeans 10 has been released 支持 JDK 11:
JDK 11 Support
JDK 11 support has been enhanced in the following ways:
Integration with the nb-javac project, adding support for JDK 11.
Removed the CORBA modules.
Support for JEP 309, Dynamic Class-File Constants.
Support for JEP 323, Local-Variable Syntax for Lambda Parameters.
Support for LVTI Support for Lamdba Parameters
New Hint to convert variable type to 'var' for lambda parameters(JDK 11 and above)
Code completion for var lambda parameters
Code completion support for var type lambda parameters.(JDK 11 and above)
See the JDK 11 Confluence Page for more detailed features.