Skip to content

Commit

Permalink
docs: Add //PREVIEW (#1894)
Browse files Browse the repository at this point in the history
  • Loading branch information
vorburger authored Jan 4, 2025
1 parent bc85774 commit 455cde2
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions docs/modules/ROOT/pages/running.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,19 @@ Since Java 9 https://docs.oracle.com/javase/9/tools/java.htm#GUID-3B1CE181-CD30-

For Java 8 and if you want to set explicitly only for `jbang` you can also add flags by setting `JBANG_JAVA_OPTIONS` and `JBANG_JAVAC_OPTIONS` respectively.

== Preview

The example above can alternatively also be written with `PREVIEW` instead of `--enable-preview`, like this:

[source, java]
----
///usr/bin/env jbang "$0" "$@" ; exit $?
//JAVA 14+
//PREVIEW
...
----


== Module support (EXPERIMENTAL)

Expand Down

0 comments on commit 455cde2

Please sign in to comment.