-
Notifications
You must be signed in to change notification settings - Fork 145
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Gui script fails to start on Mac OS Sierra - ilegal option -- f #207
Comments
We're going round in circles on this issue; see the history of the script. |
TL;DR : proposal = drop the scripts, use gradle facilities (or maven if it can do it) The crux of the problem AFAICS is that tools.jar must be on the classpath, which requires the script to be non-trivial (trivial would be to just use the jar). My proposal for resolving this issue, as well as #122 is in #187 : if we switch to gradle (although for all I know the same can be achieved using maven - can anyone comment?) it can be used instead of the generated scripts. In gradle it's easy to declare the necessary dependency on what is used from the tools.jar. The end result is that when the hp project is checked out, all that is needed to run the UI is the command AFAIK, the gradle solution would work on any platform (OSX, Linux, Windows - the only one I haven't tried for now is OSX). The wrapper mechanism (which uses the gradlew script which is checked in, with a version both for Win and non-Win) ensures you don't even need to install gradle. The above is for people who have a JDK installed (gradle will compile and create the jar the first time). If only a JRE is available, we can use a deployment module for gradle (such as https://github.com/shemnon/javafx-gradle) which allows building of a distribution. I've successfully used it in the past to create a self-contained zip/tgz which contains a Win or nonWin executable running the project. The JRE is also included. This I could do in less than half a day. |
on OSX, you can install greadlink via "brew install greadlink" and then use this script content below to replace that in GUI script: #!/bin/sh set -eu java_path=$(greadlink -f $(which javac)) BASEDIR=$(dirname "$0") java -cp |
Is this still an issue? |
@nitsanw this is still an issue. |
@snowe2010 I don't have a Mac to test on, so sadly can't help. Please try the workaround above, and report back. If you can resolve the issue and contribute a PR that would be great. |
Workaround for me was |
The script fails on MacOS with:
The text was updated successfully, but these errors were encountered: