Skip to content

How to stop passing a specific flag to jlink? (--strip-native-commands specifically) #130

Answered by ennerf
thagikura asked this question in Q&A
Discussion options

You must be logged in to vote

I have a similar use case where I need to launch various secondary apps from my main application (e.g. I need to decouple the GC of a real-time UI from an offline file viewer). I solved it by adding additional launchers to Conveyor and launching them with the process API:

extra executable:

app.jvm.cli.myOtherApp {
  main-class=some.other.App
  console = false;
}

Finding the directory of the executable:

    /**
     * @return path to directory with executables or empty if not inside conveyor
     */
    public static Optional<Path> getBinDirectory() {
        return Optional.ofNullable(System.getProperty("app.dir"))
                .map(Paths::get)
                .map(Path::toAbsolutePath)…

Replies: 7 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by mikehearn
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@mikehearn
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants