Skip to content

rustc configure pops up dialog about javac on OS X #23138

Closed
@comex

Description

@comex

This is a fairly trivial issue, but on current OS X, javac, along with other commands from the JDK, is actually a wrapper program which checks if a JDK is installed; if one is not, it quits and pops up this message in the UI:

The rust configure script checks for javac by attempting to run it, so it produces the dialog, which is a bit annoying.

This is pretty poor behavior on OS X's part, since it should be no surprise that scripts would try to execute a command line tool. And, of course, it can be avoided by either installing the JDK or removing the wrapper binary. However, the configure script could work around this easily: since javac is only used by Rust in combination with antlr4 and grun, neither of which is likely to be installed if a JDK isn't, the script should check for those first, and skip the javac check if they aren't found.

Metadata

Metadata

Assignees

No one assigned

    Labels

    O-macosOperating system: macOS

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions