Skip to content

androidjs build fails without error message when _JAVA_OPTIONS environment variable is set #124

Open
@jaarenhoevel

Description

@jaarenhoevel

Describe the bug
I've set some custom java environment variables on my system:
_JAVA_OPTIONS=-Dawt.useSystemAAFontSettings=on -Dswing.aatext=true -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel

When trying to build width androidjs build there's no error message and no apk is generated.

Output of androidjs build -d:

updating app name...
Setting app version ...
Version Code: 1000032
Version Name: 1.0.0
Adding: android.permission.INTERNET
updating theme ...
Using SDK: 2.0.8
Building Apk ...
Build process started:
building ...6 :██████████████████████████████████████████████████ √
Generating apk in debug mode. use '--release' to generate release build
Picked up _JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=on -Dswing.aatext=true -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel

Expected behavior
Maybe some form of error message telling to unset _JAVA_OPTIONS.

OS: Arch Linux x86_64

Additional context
Running androidjs build without _JAVA_OPTIONS env -u _JAVA_OPTIONS androidjs build works and generates an apk.
Build also fails when _JAVA_OPTIONS is set but empty.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomershacktoberfestIssues that are meant for Hacktober Fest

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions