RE: Java 17 and NetBeans

2021-10-01 Thread Richard Grin
Yes, it is what I have done in order to use Java 17 in my application.
If the default Java version is not Java 17, I receive an error message.



Envoyé depuis mon appareil Galaxy



 Message d'origine 
De : Pieter van den Hombergh 
Date : 01/10/2021 21:47 (GMT+01:00)
À : Richard Grin 
Cc : NetBeans Mailing List 
Objet : Re: Java 17 and NetBeans

Richard,
Typically the default that the maven compiler assumes is not the Java version 
you run it on. You need to set the release to 17 in your case. Easiest is to do 
that in a property in the pom file. The property is named maven.compiler.release



On Fri, Oct 1, 2021, 14:07 Richard Grin 
mailto:richard.g...@univ-cotedazur.fr>> wrote:
Hello,

I created a Maven project with Java 17 and I received an error:
Failed to execute goal
org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile
(default-compile) on project XXXWithRecord: Fatal error compiling:
error: release version 17 not supported -> [Help 1]

In order to write code with Java 17, I had to change the default JDK of
NetBeans in etc/netbeans.conf.

Is it always true that you can't write code in a version later than the
default version of NetBeans? Besides running NetBeans code, what is the
purpose of this default version?

Regards,

Richard


-
To unsubscribe, e-mail: 
users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: 
users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



Re: Java 17 and NetBeans

2021-10-01 Thread Pieter van den Hombergh
Richard,
Typically the default that the maven compiler assumes is not the Java
version you run it on. You need to set the release to 17 in your case.
Easiest is to do that in a property in the pom file. The property is named
maven.compiler.release



On Fri, Oct 1, 2021, 14:07 Richard Grin 
wrote:

> Hello,
>
> I created a Maven project with Java 17 and I received an error:
> Failed to execute goal
> org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile
> (default-compile) on project XXXWithRecord: Fatal error compiling:
> error: release version 17 not supported -> [Help 1]
>
> In order to write code with Java 17, I had to change the default JDK of
> NetBeans in etc/netbeans.conf.
>
> Is it always true that you can't write code in a version later than the
> default version of NetBeans? Besides running NetBeans code, what is the
> purpose of this default version?
>
> Regards,
>
> Richard
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
> For additional commands, e-mail: users-h...@netbeans.apache.org
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
>


Java 17 and NetBeans

2021-10-01 Thread Richard Grin

Hello,

I created a Maven project with Java 17 and I received an error:
Failed to execute goal 
org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile 
(default-compile) on project XXXWithRecord: Fatal error compiling: 
error: release version 17 not supported -> [Help 1]


In order to write code with Java 17, I had to change the default JDK of 
NetBeans in etc/netbeans.conf.


Is it always true that you can't write code in a version later than the 
default version of NetBeans? Besides running NetBeans code, what is the 
purpose of this default version?


Regards,

Richard


-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



Show Javadoc in Gradle project

2021-10-01 Thread Helmut Leininger

Hi,

in Netbeans, I can define a library with a .jar file and Javadoc (ZIP or
folder).

In an Ant-project, I can add the library and then use Show Javadoc or
Alt-F1 to get the documentation.

In a Gradle-project this does not work. How can this be achieved (given
that the jar is added in build - implementation files()).


Regards
Helmut Leininger
begin:vcard
fn:Helmut Leininger
n:Leininger;Helmut
email;internet:h.leinin...@gmx.at
x-mozilla-html:TRUE
version:2.1
end:vcard


-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists