Skip to content

Get rid of JNA #3190

Closed
Closed
@ffissore

Description

@ffissore

Several issues are related to exceptions like

java.lang.UnsatisfiedLinkError: com.sun.jna.Native.pointerSize()I
        at com.sun.jna.Native.pointerSize(Native Method)
        at com.sun.jna.Native.<clinit>(Native.java:93)
        at processing.app.windows.Advapi32.<clinit>(Advapi32.java:21)
        at processing.app.windows.Registry.getStringValue(Registry.java:115)
        at processing.app.windows.Platform.getSettingsFolder(Platform.java:193)
        at processing.app.BaseNoGui.getSettingsFolder(BaseNoGui.java:287)
        at processing.app.BaseNoGui.getSettingsFile(BaseNoGui.java:272)
        at processing.app.PreferencesData.init(PreferencesData.java:38)
        at processing.app.BaseNoGui.initParameters(BaseNoGui.java:946)
        at processing.app.Base.guardedMain(Base.java:151)
        at processing.app.Base.main(Base.java:131)

Try solving them updating bundled jna to latest stable available

Update
JNA is only used on Windows, to associate .ino files to the unzipped IDE. The same thing is done by the windows installer, only using two different registry keys. Get rid of JNA and thus the registry modifications done by the java code: registry will be modified by the installer only

Metadata

Metadata

Assignees

Labels

Component: IDEThe Arduino IDEOS: WindowsSpecific to the Windows version of the Arduino IDE

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions