Skip to content

Arduino IDE 1.5.7 cli not working #2298

@nataans

Description

@nataans

Hi,

Whenever I try to compile and upload a sketch file on Linux Debian/CentOS using Arduino IDE command-line I get:

Exception in thread "main" java.lang.ExceptionInInitializerError
at processing.app.Preferences.save(Preferences.java:735)
at processing.app.Preferences.init(Preferences.java:249)
at processing.app.Base.main(Base.java:117)
Caused by: java.awt.HeadlessException:
No X11 DISPLAY variable was set, but this program performed an operation which requires it.
at sun.awt.HeadlessToolkit.getMenuShortcutKeyMask(Unknown Source)
at processing.core.PApplet.(Unknown Source)
... 3 more

I have tried many variations of the command as per suggestion on https://github.com/arduino/Arduino/blob/ide-1.5.x/build/shared/manpage.adoc

Is this a known issue?

Many thanks,
Andris

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: DuplicateAnother item already exists for this topic

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions