Skip to content
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

MAVEN_OPTS="--add-modules jdk.incubator.jpackage" not working on windows #2

Closed
o4codes opened this issue Jan 20, 2021 · 4 comments
Closed

Comments

@o4codes
Copy link

o4codes commented Jan 20, 2021

adding MAVEN_OPTS="--add-modules jdk.incubator.jpackage" to env on windows does not yield appropriate results when mvn --version is ran. this is what it produces as output on windows:

Unrecognized option: --add-modules jdk.incubator.jpackage
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

How can this be solved ?

@wiverson
Copy link
Owner

What is the output of running java --version at the command line?

@wiverson
Copy link
Owner

Was able to repro. Don't put the --add-modules jdk.incubator.jpackage inside of quotes in the Windows env variable pane.
mvn opts for windows

@wiverson
Copy link
Owner

Let me know if this works. If not, feel free to reopen.

@o4codes
Copy link
Author

o4codes commented Jan 20, 2021

Thanks.
This works

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants