Skip to content

Commit

Permalink
Tweak README
Browse files Browse the repository at this point in the history
  • Loading branch information
michaellass committed Mar 23, 2019
1 parent 7d55029 commit 3f02e88
Showing 1 changed file with 14 additions and 11 deletions.
25 changes: 14 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,20 @@ this version, the one corresponding to the user's default JVM is used.

## Usage
```
archlinux-java-run [-a|--min MIN] [-b|--max MAX] [-p|--package PKG]
[-f|--feature FEATURE] [-h|--help]
-- JAVA_ARGS
archlinux-java-run [-a|--min MIN] [-b|--max MAX] [-p|--package PKG]
[-f|--feature FEATURE] [-h|--help]
-- JAVA_ARGS
```

Examples:
archlinux-java-run --max 8 -- -jar /path/to/application.jar
(launches java in version 8 or below)
## Available features
* javafx: Test if JVM provides support for JavaFX.

archlinux-java-run --package 'jre/jre|jdk' -- -jar /path/to/application.jar
(launches Oracle's java from one of the jre or jdk AUR packages)
## Examples
* Launch java in version 8 or below:
`archlinux-java-run --max 8 -- -jar /path/to/application.jar`

archlinux-java-run --feature 'javafx' -- -jar /path/to/application.jar
(launches java which contains a javafx implementation)
```
* Launch Oracle's java from one of the jre or jdk AUR packages:
`archlinux-java-run --package 'jre/jre|jdk' -- -jar /path/to/application.jar`

* Launch a JVM that supports JavaFX:
`archlinux-java-run --feature 'javafx' -- -jar /path/to/application.jar`

0 comments on commit 3f02e88

Please sign in to comment.