Skip to content

Get error "Could not initialize class com.sun.jna.Native" running arduino_debug.exe #9758

@hellyzh

Description

@hellyzh

Get error "Could not initialize class com.sun.jna.Native" running arduino_debug.exe for Arduino IDE 1.8.11 on Windows 10

C:\>"C:\Program Files (x86)\Arduino\arduino_debug.exe"
java.lang.NoClassDefFoundError: Could not initialize class com.sun.jna.Native
        at com.sun.jna.platform.win32.Shell32.<clinit>(Shell32.java:32)
        at com.sun.jna.platform.win32.Shell32Util.getFolderPath(Shell32Util.java:44)
        at com.sun.jna.platform.win32.Shell32Util.getFolderPath(Shell32Util.java:61)
        at cc.arduino.os.windows.Win32KnownFolders.getLocalAppDataFolder(Win32KnownFolders.java:53)
        at processing.app.windows.Platform.recoverSettingsFolderPath(Platform.java:64)
        at processing.app.windows.Platform.init(Platform.java:54)
        at processing.app.Base.<init>(Base.java:207)
        at processing.app.Base.main(Base.java:150)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Component: IDEThe Arduino IDEOpenJDKIssues to be verified once OpenJDK (AdoptOpenJDK) is implementedType: Bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions