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
Copy file name to clipboardExpand all lines: docs/graalvm-as-a-platform/implement-language.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -227,7 +227,7 @@ Apply the `--upgrade-module-path` option together with `-Dgraalvm.locatorDisable
227
227
A sample POM using `--upgrade-module-path` to export Language API packages can be found in the [Simple Language POM.xml](https://github.com/graalvm/simplelanguage/blob/master/language/pom.xml#L58) file.
228
228
229
229
> Note: Disabling the locator effectively removes all installed languages from the module path as the locator also creates the class loader for the languages.
230
-
To still use the builtin languages add them to the module-path by pointing the module-path to all needed language homes (for example, `$GRAALVM/languages/js`).
230
+
To still use the built-in languages, add them to the modulepath by updating the modulepath to include the paths of all the languages you need (for example, `$GRAALVM/languages/js`).
Copy file name to clipboardExpand all lines: docs/introduction.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -28,7 +28,7 @@ Subject to the conditions in the license, including the License for Early Adopte
28
28
Oracle GraalVM is also free to use on Oracle Cloud Infrastructure.
29
29
For more information about Oracle GraalVM licensing, see the [Oracle Java SE Licensing FAQ](https://www.oracle.com/java/technologies/javase/jdk-faqs.html#GraalVM-licensing).
30
30
31
-
GraalVM Community Edition is open-source software built from the sources available on [GitHub](https://github.com/oracle/graal) and distributed under [version 2 of the GNU General Public License with the “Classpath” Exception](https://github.com/oracle/graal/blob/master/LICENSE), which are the same terms as for Java.
31
+
GraalVM Community Edition is open-source project built from the sources available on [GitHub](https://github.com/oracle/graal) and distributed under [version 2 of the GNU General Public License with the “Classpath” Exception](https://github.com/oracle/graal/blob/master/LICENSE), which are the same terms as for Java.
32
32
Check the [licenses](https://github.com/oracle/graal#license) of individual GraalVM components which are generally derivative of the license of a particular language and may differ.
In this example, `lib/polyglot` directory should contain all polyglot and language JAR files.
95
-
In order to access polyglot classes from the class-path you also need to specify the `--add-modules=org.graalvm.polyglot` JVM option.
96
-
If you are using [native-image](https://www.graalvm.org/latest/reference-manual/embed-languages/#build-native-executables-from-polyglot-applications) polyglot modules on the class-path will be automatically upgraded to the module-path.
95
+
To access polyglot classes from the classpath, you must also specify the `--add-modules=org.graalvm.polyglot` JVM option.
96
+
If you are using [native-image](https://www.graalvm.org/latest/reference-manual/embed-languages/#build-native-executables-from-polyglot-applications), polyglot modules on the classpath will be automatically upgraded to the modulepath.
97
97
98
98
While we do support creating single uber JAR files from polyglot libraries, for example using the Maven Assembly plugin, we do not recommend it.
99
99
Also note that uber JAR files are not supported in combination with creating native-images.
@@ -499,7 +499,7 @@ If the runtime was excluded successfully, you should see the following log messa
499
499
```
500
500
[engine] WARNING: The polyglot engine uses a fallback runtime that does not support runtime compilation to native code.
501
501
Execution without runtime compilation will negatively impact the guest application performance.
502
-
The following cause was found: No optimizing Truffle runtime found on the module or class-path.
502
+
The following cause was found: No optimizing Truffle runtime found on the module or classpath.
503
503
For more information see: https://www.graalvm.org/latest/reference-manual/embed-languages/.
504
504
To disable this warning use the '--engine.WarnInterpreterOnly=false' option or the '-Dpolyglot.engine.WarnInterpreterOnly=false' system property.
Copy file name to clipboardExpand all lines: docs/reference-manual/java-on-truffle/README.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,7 @@ See the [Implementation Details](ImplementationDetails.md) for more information.
14
14
The project name behind this implementation is "Espresso".
15
15
Its open source version is available on [GitHub](https://github.com/oracle/graal/tree/master/espresso).
16
16
17
-
The Java on Truffle execution mode runs Java via a Java bytecode interpreter, implemented with the [Truffle framework](../../../truffle/docs/README.md) – an open-source library for writing interpreters for programming languages.
17
+
The Java on Truffle execution mode runs Java via a Java bytecode interpreter, implemented with the [Truffle framework](../../../truffle/docs/README.md) – an opensource library for writing interpreters for programming languages.
18
18
Now Java can be executed by the same principle as other languages in the GraalVM ecosystem (JavaScript, Ruby, Python, R), directly interoperate with those languages, and pass data back and forth in the same memory space.
19
19
Besides complete language interoperability, with Java on Truffle you can:
Copy file name to clipboardExpand all lines: docs/reference-manual/native-image/BuildConfiguration.md
+4-4
Original file line number
Diff line number
Diff line change
@@ -144,15 +144,15 @@ However, you can prevent unwanted linking errors by specifying which classes are
144
144
For that, use the `--link-at-build-time` option.
145
145
If the option is used in the right context (see below), you can specify required classes to link at build time without explicitly listing classes and packages.
146
146
It is designed in a way that libraries can only configure their own classes, to avoid any side effects on other libraries.
147
-
You can pass the option to the `native-image` tool on the command line, embed it in a `native-image.properties` file on the module-path or the classpath.
147
+
You can pass the option to the `native-image` tool on the command line, embed it in a _native-image.properties_ file on the modulepath or the class path.
148
148
149
149
Depending on how and where the option is used it behaves differently:
150
150
151
-
* If you use `--link-at-build-time` without arguments, all classes in the scope are required to be fully defined. If used without arguments on command line, all classes will be treated as "link-at-build-time" classes. If used without arguments embedded in a `native-image.properties` file on the module-path, all classes of the module will be treated as "link-at-build-time" classes. If you use `--link-at-build-time` embedded in a `native-image.properties` file on the classpath, the following error will be thrown:
151
+
* If you use `--link-at-build-time` without arguments, all classes in the scope are required to be fully defined. If used without arguments on command line, all classes will be treated as "link-at-build-time" classes. If used without arguments embedded in a _native-image.properties_ file on the modulepath, all classes of the module will be treated as "link-at-build-time" classes. If you use `--link-at-build-time` embedded in a _native-image.properties_ file on the class path, the following error will be thrown:
152
152
```
153
-
Error: Using '--link-at-build-time' without args only allowed on module-path. 'META-INF/native-image/org.mylibrary/native-image.properties' in 'file:///home/test/myapp/MyLibrary.jar' not part of module-path.
153
+
Error: Using '--link-at-build-time' without args only allowed on modulepath. 'META-INF/native-image/org.mylibrary/native-image.properties' in 'file:///home/test/myapp/MyLibrary.jar' not part of modulepath.
154
154
```
155
-
* If you use the `--link-at-build-time` option with arguments, for example, `--link-at-build-time=foo.bar.Foobar,demo.myLibrary.Name,...`, the arguments should be fully qualified class names or package names. When used on the module-path or classpath (embedded in `native-image.properties` files), only classes and packages defined in the same JAR file can be specified. Packages for libraries used on the classpath need to be listed explicitly. To make this process easy, use the `@<prop-values-file>` syntax to generate a package list (or a class list) in a separate file automatically.
155
+
* If you use the `--link-at-build-time` option with arguments, for example, `--link-at-build-time=foo.bar.Foobar,demo.myLibrary.Name,...`, the arguments should be fully qualified class names or package names. When used on the modulepath or class path (embedded in `native-image.properties` files), only classes and packages defined in the same JAR file can be specified. Packages for libraries used on the class path need to be listed explicitly. To make this process easy, use the `@<prop-values-file>` syntax to generate a package list (or a class list) in a separate file automatically.
156
156
157
157
Another handy option is `--link-at-build-time-paths` which allows to specify which classes are required to be fully defined at build time by other means.
158
158
This variant requires arguments that are of the same type as the arguments passed via `-p` (`--module-path`) or `-cp` (`--class-path`):
Copy file name to clipboardExpand all lines: docs/reference-manual/native-image/BuildOptions.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -89,7 +89,7 @@ Run `native-image --help` for help on build options.
89
89
90
90
Run `native-image --help-extra` for help on additional options.
91
91
92
-
*`--exclude-config`: exclude configuration for a comma-separated pair of classpath/modulepath pattern and resource pattern. For example: `--exclude-config foo.jar,META-INF\/native-image\/.*.properties` ignores all properties files in _META-INF/native-image_ in all JAR files named _foo.jar_.
92
+
*`--exclude-config`: exclude configuration for a comma-separated pair of class path/module path pattern and resource pattern. For example: `--exclude-config foo.jar,META-INF\/native-image\/.*.properties` ignores all properties files in _META-INF/native-image_ in all JAR files named _foo.jar_.
93
93
*`--expert-options`: list image build options for experts
94
94
*`--expert-options-all`: list all image build options for experts (use at your own risk). Options marked with _Extra help available_ contain help that can be shown with `--expert-options-detail`
95
95
*`--expert-options-detail`: display all available help for a comma-separated list of option names. Pass `*` to show extra help for all options that contain it.
-`native-image [options] <mainclass> [imagename] [options]` to build a native binary from the main class in the current working directory. The classpath may optionally be provided with the `-cp <classpath>` option where `<classpath>` is a colon-separated (on Windows, semicolon-separated) list of paths to directories and JAR files.
13
+
-`native-image [options] <mainclass> [imagename] [options]` to build a native binary from the main class in the current working directory. The class path may optionally be provided with the `-cp <classpath>` option where `<classpath>` is a colon-separated (on Windows, semicolon-separated) list of paths to directories and JAR files.
14
14
-`native-image [options] -jar jarfile [imagename] [options]` to build a native binary from a JAR file.
15
15
-`native-image [options] -m <module>/<mainClass> [imagename] [options]` to build a native binary from a Java module.
Copy file name to clipboardExpand all lines: docs/reference-manual/native-image/Bundles.md
+4-4
Original file line number
Diff line number
Diff line change
@@ -175,7 +175,7 @@ The full option help of `--bundle-apply` shows a more advanced use case that wil
175
175
### Building in a Container
176
176
177
177
Another addition to the `--bundle-create` and `--bundle-apply` options is to perform image building inside a container image.
178
-
This ensures that during the image build `native-image` can not access any resources that were not explicitly specified via the classpath or module path.
178
+
This ensures that during the image build `native-image` can not access any resources that were not explicitly specified via the class path or module path.
179
179
180
180
Modify the `--bundle-create` argument in the Maven / Gradle Native Image plugin configuration above to `<buildArg>--bundle-create,container<buildArg>`.
As described later in [Bundle File Format](#bundle-file-format), a bundle file is a JAR file with a contained launcher for launching the bundled application.
324
324
This means you can use a native image bundle with any JDK and execute it as a JAR file with `<jdk>/bin/java -jar [bundle-file.nib]`.
325
-
The launcher uses the command line arguments stored in _run.json_ and adds all JAR files and folders in _input/classes/cp_ and _input/classes/p_ to the classpath and module path respectively.
325
+
The launcher uses the command line arguments stored in _run.json_ and adds all JAR files and directories in _input/classes/cp/_ and _input/classes/p/_ to the class path and module path, respectively.
326
326
327
327
The launcher also comes with a separate command-line interface described in its help text:
0 commit comments