-
-
Notifications
You must be signed in to change notification settings - Fork 182
docs: cross-platform compatibility updates #2331
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
docs: cross-platform compatibility updates #2331
Conversation
|
|
||
| === Runtime Options (Cross-Platform Compatibility) | ||
|
|
||
| Most standard Java VM (JVM) options are generic and can be used on all Java versions and on all OS platforms, but some JVM options are platform-specific. If a OS specific option is used on a OS platform that do not support the specific option, JBang will fail to start and an error message will be displayed by the JVM. To prevent this from happening, also add JVM option |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's not really jbang failing but the java.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
|
Besides the jbang vs Java fail looks good. Btw is this also relevant for compile options ? |
Thanks.
No. It is JVM specific. One could pass the option form javac to the JVM running javac
but I don't think that is what you have in mind. |
|
@all-contributors add @wfouche for docs |
|
@wfouche already contributed before to doc |
|
I've updated to use the IgnoreUnrecognizedVMOptions flag so it should work on more platforms now. @wfouche @quintesse can you verify on other platforms than mac? |
|
PR jbangdev/jbang-examples#15 works without issues on Windows 11 and Linux (Debian 13, AMD64). |
Document the use of JVM runtime option -XX:+IgnoreUnrecognizedVMOptions to allow platform specific options to be used generically across platforms.