Build issue: error: option --upgrade-module-path cannot be used together with --release

Scott Palmer swpalmer at gmail.com
Wed Jan 18 20:18:26 UTC 2023


I'm trying to build OpenJFX on my Mac.  I figured out an issue with the
Gradle scripts, they fail if there is a stale mac_tools.properties file. A
'clean' also fails for the same reason so you have to manually delete the
file to get it to be re-built.  But now the build fails with the following
error:

> Task :graphics:compileJava FAILED
You specified both --module-source-path and a sourcepath. These options are
mutually exclusive. Ignoring sourcepath.
error: option --upgrade-module-path cannot be used together with --release
Usage: javac <options> <source files>
use --help for a list of possible options

FAILURE: Build failed with an exception.

I'm not sure why I would be seeing this error if the build is working for
everyone else.  I'm using JDK 19.

Any hints?

Btw, the Mac section of
https://wiki.openjdk.org/display/OpenJFX/Building+OpenJFX still mentions
needing Mercurial.  I don't think that's true anymore.

Regards,

Scott
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/openjfx-dev/attachments/20230118/8b82650a/attachment.htm>


More information about the openjfx-dev mailing list