On 17.03.22 01:29, Laszlo Kishalmi wrote:

On 3/16/22 15:43, Neil C Smith wrote:
On Wed, 16 Mar 2022, 22:13 Laszlo Kishalmi, <[email protected]>
wrote:

I've tried to deactivate the nb-javac plugin to take the advantage of my
local 17.0.2 JSK installation, but even after restart the nb-javac
plugin is active.

You need to uninstall it rather than deactivate it, otherwise it just gets reactivated by the module system (it's recommended by another module IIRC).

That could be an issue with Snap packaging, since the package it is a read-only filesystem. That was an option before 13, as nb-javac was installed in the user directory.

I'm going to check if I could build a module with 17.0.2 somehow...

building nb-javac is fairly easy, check it out and modify:

diff --git a/make/langtools/netbeans/nb-javac/nbproject/project.properties b/make/langtools/netbeans/nb-javac/nbproject/project.properties
index d7aef9a..b501da6 100644
--- a/make/langtools/netbeans/nb-javac/nbproject/project.properties
+++ b/make/langtools/netbeans/nb-javac/nbproject/project.properties
@@ -1,6 +1,5 @@
-
-jdk.git.url=https://github.com/openjdk/jdk
-jdk.git.commit=jdk-18+25
+jdk.git.url=https://github.com/openjdk/jdk17u/
+jdk.git.commit=jdk-17.0.2+8
 nb-javac-ver=${jdk.git.commit}

build with:

JAVA_HOME=~/dev/java/jdk-17.0.2.8.1-corretto/ ant -f ./make/langtools/netbeans/nb-javac clean JAVA_HOME=~/dev/java/jdk-17.0.2.8.1-corretto/ ant -f ./make/langtools/netbeans/nb-javac jar

-mbien




Best wishes,

Neil


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

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





---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

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



Reply via email to