You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@netbeans.apache.org by John Kostaras <jk...@gmail.com> on 2020/02/18 22:03:16 UTC
Build in 8, run in 13
Hallo,
I wonder if you have come across this dilemma. I 'm trying to fix some bugs
in NetBeans JShell by using the NetBeans debugger. However, to build
the *jshell.support
*module, one needs to set the Java platform to 8, but in order to execute
it in debug mode, one needs to set the Java platform to 13 (or something
>=9 anyway). The problem is that then the debugger tries to build the
module again using JDK >=9 and of course it fails.
netbeans/nbbuild/templates/projectized.xml:74: You are attempting to build
NetBeans using JDK 9 (or higher).
This is forbidden as it may lead to accidental usage of JDK 9+ APIs.
Either run Ant with JDK 8, or set nbjdk.home=<JDK 8 home> in
/Users/MyMacBook/Projects/netbeans/incubator-netbeans/nbbuild/user.build.properties
(can be set from IDE by opening a module project's Properties dialog and
picking the right Java Platform in Libraries).
You can alternatively set this property in
/Users/MyMacBook/.nbbuild.properties to affect all checkouts on this
machine.
If you are sure you want to build with JDK 9+ anyway, use:
-Dpermit.jdk9.builds=true
BUILD FAILED (total time: 0 seconds)
I wonder where to add -Dpermit.jdk9.builds=true to. I tried in
project.properties
javac.compilerargs=-Dpermit.jdk9.builds=true -Xlint -Xlint:-serial
but it doesn't find it. Any suggestions are welcome.
Kind regards,
John.
Re: Build in 8, run in 13
Posted by Ernie Rael <er...@raelity.com>.
In <netbeans-repo>/nbbuild I've got
$ cat nbbuild/user.build.properties
#nbjdk.home=F:/j/jdk/jdk1.8.0_241
nbjdk.home=F:/j/jdk/jdk-13.0.2
permit.jdk9.builds=true
-ernie
On 2/18/2020 2:03 PM, John Kostaras wrote:
> Hallo,
>
> I wonder if you have come across this dilemma. I 'm trying to fix some bugs
> in NetBeans JShell by using the NetBeans debugger. However, to build
> the *jshell.support
> *module, one needs to set the Java platform to 8, but in order to execute
> it in debug mode, one needs to set the Java platform to 13 (or something
>> =9 anyway). The problem is that then the debugger tries to build the
> module again using JDK >=9 and of course it fails.
> netbeans/nbbuild/templates/projectized.xml:74: You are attempting to build
> NetBeans using JDK 9 (or higher).
> This is forbidden as it may lead to accidental usage of JDK 9+ APIs.
> Either run Ant with JDK 8, or set nbjdk.home=<JDK 8 home> in
> /Users/MyMacBook/Projects/netbeans/incubator-netbeans/nbbuild/user.build.properties
> (can be set from IDE by opening a module project's Properties dialog and
> picking the right Java Platform in Libraries).
> You can alternatively set this property in
> /Users/MyMacBook/.nbbuild.properties to affect all checkouts on this
> machine.
> If you are sure you want to build with JDK 9+ anyway, use:
> -Dpermit.jdk9.builds=true
> BUILD FAILED (total time: 0 seconds)
>
> I wonder where to add -Dpermit.jdk9.builds=true to. I tried in
> project.properties
> javac.compilerargs=-Dpermit.jdk9.builds=true -Xlint -Xlint:-serial
>
> but it doesn't find it. Any suggestions are welcome.
>
> Kind regards,
>
> John.
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
For additional commands, e-mail: dev-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists