Thanks Michael!
Took your advice, got this one as a result:
-separate-jars:
[copy] Copying 1 file to
/home/lkishalmi/NetBeansProjects/nb-javac/make/langtools/netbeans/nb-javac/build/classes/META-INF/versions/11/javax/lang/model
[jar] Building jar:
/home/lkishalmi/NetBeansProjects/nb-javac/make/langtools/netbeans/nb-javac/dist/nb-javac-jdk-17.0.2+8-api.jar
[jar] Building jar:
/home/lkishalmi/NetBeansProjects/nb-javac/make/langtools/netbeans/nb-javac/dist/nb-javac-jdk-17.0.2+8-impl.jar
[delete] Deleting:
/home/lkishalmi/NetBeansProjects/nb-javac/make/langtools/netbeans/nb-javac/dist/nb-javac.jar
-verify-source-version-classes:
BUILD FAILED
/home/lkishalmi/NetBeansProjects/nb-javac/make/langtools/netbeans/nb-javac/build.xml:309:
Patched version of SourceVersion should be different!
I'm clueless from here.
BTW I've used the master branch from
https://github.com/JaroslavTulach/nb-javac as the oracle/nb-javac seems
to be outdated.
On 3/16/22 17:33, Michael Bien wrote:
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