Skip to content

Swing GUI Builder crashes - ClassNotFoundException: java.applet.Applet on JDK 26 #9374

@nz-cloud

Description

@nz-cloud

Apache NetBeans version

Apache NetBeans 29

What happened

I am using NetBeans on CachyOS (Arch-based Linux).

When trying to use the Swing GUI Builder (Design tab), I get an exception:

java.lang.ClassNotFoundException: java.applet.Applet

This happens when adding components in Design view.

Java version:
openjdk 26.0.2

Expected behavior:
GUI Builder should allow adding components normally.

Actual behavior:
Unexpected Exception dialog appears and components cannot be added.

messages.log attached.

Language / Project Type / NetBeans Component

Java with Ant

How to reproduce

Steps to reproduce:

  1. Create JFrame Form
  2. Open Design tab
  3. Try to add a Swing component
  4. Exception occurs

messages.log

Did this work correctly in an earlier version?

No / Don't know

Operating System

CachyOS (Arch-based Linux)

JDK

openjdk 26.0.2

Apache NetBeans packaging

Other

Anything else

No response

Are you willing to submit a pull request?

No

Metadata

Metadata

Assignees

No one assigned

    Labels

    FormDesignerGUI builder, also known as MatisseJava[ci] enable extra Java tests (java.completion, java.source.base, java.hints, refactoring.java, form)invalidkind:bugBug report or fix

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions