You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
MacOS X does not ship with Java installed by default. Instead it
includes binary stubs that upon execution pop up a message suggesting
the installation of the JDK.
Since `javac` is only used when `antlr4` is available, it is possible
to work around the popup by only probing for `javac` if `antlr4` has
been successfully detected (in which case the JDK is probably already
installed on the system).
Fixesrust-lang#23138.
…excrichton
MacOS X does not ship with Java installed by default. Instead it
includes binary stubs that upon execution pop up a message suggesting
the installation of the JDK.
Since `javac` is only used when `antlr4` is available, it is possible
to work around the popup by only probing for `javac` if `antlr4` has
been successfully detected (in which case the JDK is probably already
installed on the system).
Fixesrust-lang#23138.
…excrichton
MacOS X does not ship with Java installed by default. Instead it
includes binary stubs that upon execution pop up a message suggesting
the installation of the JDK.
Since `javac` is only used when `antlr4` is available, it is possible
to work around the popup by only probing for `javac` if `antlr4` has
been successfully detected (in which case the JDK is probably already
installed on the system).
Fixesrust-lang#23138.
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 withantlr4
andgrun
, 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.The text was updated successfully, but these errors were encountered: