You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@netbeans.apache.org by Ioannis Torounoglou <jo...@gmail.com> on 2025/03/22 14:21:42 UTC

ΝΒ25 crashes with JDK24 on WIndows

I just updated my OpenJDK to version 24 and the Netbeans fail to launch.

Reverting to JDK 23 NB is starting normally.

my 
netbeans_default_options="

-J-javaagent:./clipboard-agent.jar 

-J-DTopSecurityManager.disable=true 

-J-Dstdout.encoding=UTF-8 

--fontsize 16 

-J-XX:+UseStringDeduplication 

-J-Xss2m  

-J-Djava.lang.Runtime.level=FINE 

-J-Dapple.laf.useScreenMenuBar=true 

-J-Dapple.awt.application.appearance=system 

-J-Dsun.java2d.noddraw=true 

-J-Dsun.java2d.dpiaware=true 

-J-Dplugin.manager.check.updates=false 

-J-Dnetbeans.extbrowser.manual_chrome_plugin_install=yes  

-J--enable-native-access=ALL-UNNAMED 

-J--add-opens=java.base/java.net=ALL-UNNAMED 

-J--add-opens=java.base/java.lang.ref=ALL-UNNAMED 

-J--add-opens=java.base/java.lang=ALL-UNNAMED 

-J--add-opens=java.base/java.security=ALL-UNNAMED 

-J--add-opens=java.base/java.util=ALL-UNNAMED 

-J--add-opens=java.base/java.nio=ALL-UNNAMED 

-J--add-exports=java.base/sun.reflect.annotation=ALL-UNNAMED 

-J--add-opens=java.prefs/java.util.prefs=ALL-UNNAMED 

-J--add-opens=java.desktop/javax.swing.plaf.basic=ALL-UNNAMED 

-J--add-opens=java.desktop/javax.swing.text=ALL-UNNAMED 

-J--add-opens=java.desktop/javax.swing=ALL-UNNAMED 

-J--add-opens=java.desktop/java.awt=ALL-UNNAMED 

-J--add-opens=java.desktop/java.awt.event=ALL-UNNAMED 

-J--add-opens=java.desktop/sun.awt.X11=ALL-UNNAMED 

-J--add-opens=java.desktop/javax.swing.plaf.synth=ALL-UNNAMED 

-J--add-opens=java.desktop/com.sun.java.swing.plaf.gtk=ALL-UNNAMED 

-J--add-opens=java.desktop/com.sun.java.swing.plaf.windows=ALL-UNNAMED 

-J--add-opens=java.desktop/com.apple.laf=ALL-UNNAMED 

-J--add-opens=java.desktop/sun.awt.shell=ALL-UNNAMED 

-J--add-opens=java.desktop/sun.awt.im=ALL-UNNAMED 

-J--add-exports=java.desktop/sun.awt=ALL-UNNAMED 

-J--add-exports=java.desktop/java.awt.peer=ALL-UNNAMED 

-J--add-exports=java.desktop/com.sun.beans.editors=ALL-UNNAMED 

-J--add-exports=java.desktop/sun.swing=ALL-UNNAMED 

-J--add-exports=java.desktop/sun.awt.im=ALL-UNNAMED 

-J--add-exports=java.desktop/com.sun.java.swing.plaf.motif=ALL-UNNAMED 

-J--add-exports=java.desktop/com.apple.eio=ALL-UNNAMED 

-J--add-opens=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED 

-J--add-opens=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED 

-J--add-opens=jdk.compiler/com.sun.tools.javac.comp=ALL-UNNAMED 

-J--add-opens=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED 

-J--add-opens=jdk.compiler/com.sun.tools.javac.jvm=ALL-UNNAMED 

-J--add-opens=jdk.compiler/com.sun.tools.javac.main=ALL-UNNAMED 

-J--add-opens=jdk.compiler/com.sun.tools.javac.model=ALL-UNNAMED 

-J--add-opens=jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED 

-J--add-opens=jdk.compiler/com.sun.tools.javac.processing=ALL-UNNAMED 

-J--add-opens=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED 

-J--add-opens=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED 

-J--add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED 

-J--add-exports=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED 

-J--add-exports=jdk.compiler/com.sun.tools.javac.comp=ALL-UNNAMED 

-J--add-exports=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED 

-J--add-exports=jdk.compiler/com.sun.tools.javac.jvm=ALL-UNNAMED 

-J--add-exports=jdk.compiler/com.sun.tools.javac.main=ALL-UNNAMED 

-J--add-exports=jdk.compiler/com.sun.tools.javac.model=ALL-UNNAMED 

-J--add-exports=jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED 

-J--add-exports=jdk.compiler/com.sun.tools.javac.processing=ALL-UNNAMED 

-J--add-exports=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED 

-J--add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED 

-J--add-modules=jdk.jshell 

-J--add-opens=jdk.jshell/jdk.jshell=ALL-UNNAMED 

-J--add-exports=jdk.jshell/jdk.internal.jshell.debug=ALL-UNNAMED 

-J--add-exports=jdk.jdeps/com.sun.tools.classfile=ALL-UNNAMED 

-J--add-exports=jdk.jdeps/com.sun.tools.javap=ALL-UNNAMED 

-J--add-exports=jdk.internal.jvmstat/sun.jvmstat.monitor=ALL-UNNAMED 

-J--add-exports=jdk.internal.opt/jdk.internal.opt=ALL-UNNAMED 

-J--add-exports=java.management/sun.management=ALL-UNNAMED 

-J-XX:+IgnoreUnrecognizedVMOptions"


Re: ΝΒ25 crashes with JDK24 on Windows

Posted by Michael Bien <mb...@gmail.com>.
On 3/22/25 17:24, Eirik Bakke wrote:
>> I suspect this is the ASM issue with the agent raised in the GitHub discussion thread.
> Which issue was that? (Looked around in the thread but had trouble finding it...)

the ASM lib is known to be java bytecode version sensitive. v7.1 will work on JDK 24 but fail on EA JDK 25 for example, which makes it very annoying for projects which have to test on upstream JDKs early.

in general:

It is the number one reason why jdk upgrades are more difficult than they should be, since the first task is often having to find which of your dependencies uses ASM (which is sometimes shaded) and upgrade that first.

If you ever had to upgrade dusty java projects - ASM is the first thing which would typically fail, it is not uncommon that a single project has 5+ versions of that lib in it.

so what are the solutions?

- keep it always up to date (which can be "interesting" once a dependency shades the lib)

- use JDK's new Classfile API which went final in JDK 24, this should improve the situation over the long therm since less and less libs will use ASM (most don't really need such powerful lib anyway). If its in the JDK it fits to the bytecode version -> problem solved.


best regards,

michael


>
> -- Eirik
>
> From: Neil C Smith <ne...@apache.org>
> Reply-To: "dev@netbeans.apache.org" <de...@netbeans.apache.org>
> Date: Saturday, March 22, 2025 at 12:18 PM
> To: dev <de...@netbeans.apache.org>
> Subject: Re: ΝΒ25 crashes with JDK24 on Windows
>
> On Sat, 22 Mar 2025, 15:41 Ioannis Torounoglou, <jo...@gmail.com>>
> wrote:
>
>
> Without the agent is staring but Clipboard is not working...
>
> The good news is that with java_desktop_clipboard_patch_17plus.jar is
> starting and working fine...
>
> If you need any other testing, just ask...
>
>
> Good to know. Thanks.
>
> I suspect this is the ASM issue with the agent raised in the GitHub
> discussion thread.
>
> Best wishes,
>
> Neil
>


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




Re: ΝΒ25 crashes with JDK24 on Windows

Posted by Eirik Bakke <eb...@ultorg.com.INVALID>.
> I suspect this is the ASM issue with the agent raised in the GitHub discussion thread.

Which issue was that? (Looked around in the thread but had trouble finding it...)

-- Eirik

From: Neil C Smith <ne...@apache.org>
Reply-To: "dev@netbeans.apache.org" <de...@netbeans.apache.org>
Date: Saturday, March 22, 2025 at 12:18 PM
To: dev <de...@netbeans.apache.org>
Subject: Re: ΝΒ25 crashes with JDK24 on Windows

On Sat, 22 Mar 2025, 15:41 Ioannis Torounoglou, <jo...@gmail.com>>
wrote:


Without the agent is staring but Clipboard is not working...

The good news is that with java_desktop_clipboard_patch_17plus.jar is
starting and working fine...

If you need any other testing, just ask...


Good to know. Thanks.

I suspect this is the ASM issue with the agent raised in the GitHub
discussion thread.

Best wishes,

Neil


Re: ΝΒ25 crashes with JDK24 on Windows

Posted by Neil C Smith <ne...@apache.org>.
On Sat, 22 Mar 2025, 15:41 Ioannis Torounoglou, <jo...@gmail.com>
wrote:

>
> Without the agent is staring but Clipboard is not working...
>
> The good news is that with java_desktop_clipboard_patch_17plus.jar is
> starting and working fine...
>
> If you need any other testing, just ask...
>

Good to know. Thanks.

I suspect this is the ASM issue with the agent raised in the GitHub
discussion thread.

Best wishes,

Neil

RE: ΝΒ25 crashes with JDK24 on Windows

Posted by Ioannis Torounoglou <jo...@gmail.com>.
Without the agent is staring but Clipboard is not working...

The good news is that with java_desktop_clipboard_patch_17plus.jar is starting and working fine...

If you need any other testing, just ask...

J!

-----Original Message-----
From: Neil C Smith <ne...@apache.org> 
Sent: Saturday, March 22, 2025 5:28 PM
To: dev <de...@netbeans.apache.org>
Subject: Re: ΝΒ25 crashes with JDK24 on WIndows

On Sat, 22 Mar 2025, 14:22 Ioannis Torounoglou, <jo...@gmail.com>
wrote:

> I just updated my OpenJDK to version 24 and the Netbeans fail to launch.
>
> Reverting to JDK 23 NB is starting normally.
>
> my
> netbeans_default_options="
>
> -J-javaagent:./clipboard-agent.jar


What about without the agent?

Neil


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




Re: ΝΒ25 crashes with JDK24 on WIndows

Posted by Neil C Smith <ne...@apache.org>.
On Sat, 22 Mar 2025, 14:22 Ioannis Torounoglou, <jo...@gmail.com>
wrote:

> I just updated my OpenJDK to version 24 and the Netbeans fail to launch.
>
> Reverting to JDK 23 NB is starting normally.
>
> my
> netbeans_default_options="
>
> -J-javaagent:./clipboard-agent.jar


What about without the agent?

Neil