Skip to content

Illegal reflective access by org.netbeans.swing.plaf.Startup #5378

@far-soft

Description

@far-soft

Apache NetBeans version

Apache NetBeans 16

What happened

i try to start netbeans from an bath script and i get this warnings

Press any key to continue . . .

The launcher has determined that the parent process has a console and will reuse it for its own console output.
Closing the console will result in termination of the running program.
Use '--console suppress' to suppress console output.
Use '--console new' to create a separate console window.


The launcher has determined that the parent process has a console and will reuse it for its own console output.
Closing the console will result in termination of the running program.
Use '--console suppress' to suppress console output.
Use '--console new' to create a separate console window.
WARNING: package com.apple.eio not in java.desktop
WARNING: package sun.awt.X11 not in java.desktop
WARNING: package com.sun.java.swing.plaf.gtk not in java.desktop
WARNING: package com.apple.eio not in java.desktop
WARNING: package sun.awt.X11 not in java.desktop
WARNING: package com.sun.java.swing.plaf.gtk not in java.desktop
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.netbeans.swing.plaf.Startup (jar:file:/D:/portable/PortableApps/NetBeans/platform/modules/org-netbeans-swing-plaf.jar!/) to constructor com.sun.java.swing.plaf.windows.WindowsLookAndFeel()
WARNING: Please consider reporting this to the maintainers of org.netbeans.swing.plaf.Startup
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release

How to reproduce

my netbeans.bat script command:

@echo off
IF EXIST "%PROGRAMFILES(X86)%" (GOTO 64BIT) ELSE (GOTO 32BIT)

:64BIT
start "" /b bin/netbeans64.exe

:32BIT
start "" /b bin/netbeans.exe

pause

Did this work correctly in an earlier version?

No / Don't know

Operating System

windows 10 x64

JDK

openjdk version "17.0.5" 2022-10-18 LTS OpenJDK Runtime Environment Zulu17.38+21-CA (build 17.0.5+8-LTS) OpenJDK 64-Bit Server VM Zulu17.38+21-CA (build 17.0.5+8-LTS, mixed mode, sharing)

Apache NetBeans packaging

Apache NetBeans provided installer

Anything else

No response

Are you willing to submit a pull request?

No

Code of Conduct

Yes

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind:bugBug report or fixneeds:triageRequires attention from one of the committersos:windows

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions