Does Apache NetBeans 9.0 support java 11?

M.Y. :

Can anyone say if Apache NetBeans 9.0 support java 11 and if so what are the requirements to make that work?

Prensently I can compile and run java 11 code in NetBeans 9.9 but it is underlined with red and the error message is "cannot find symbol ...".

Below is the pom.xml file I use:

   <?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>

How, for example pom-file should be changed?

Paul Wasilewski :

No NetBeans 9 doesn’t support Java 11 (only 9 and 10) [1].

NetBeans 10 which was planned to be released in November [2] will support Java 11 [3]. Unfortunately, it’s not available yet (at least as official release).

The latest release candidate can be downloaded here

https://dist.apache.org/repos/dist/dev/incubator/netbeans/incubating-netbeans/

As NetBeans 10 latest vote candidate 5 is in the final release vote stage [4] we should expect a final release within the next days.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=116711&siteId=1