Invalid flag when running java and javac command flags
Alan.Bateman at oracle.com
Sat Dec 12 08:49:47 UTC 2015
On 11/12/2015 20:44, José Guilherme Macedo Vieira wrote:
> I'm getting an invalid flag error when running these commands:
> - java -listmods
> - javac - javac -modulepath mods -d
> The errors says that listmods and modulepath are invalid flags. Anyone
> knows how to solve it?
Make sure you have the right download as the JDK 9 EA builds with the
module system / Project Jigsaw is currently a different download . In
time then the module system will work its way into the regular JDK 9
downloads, just not there yet.
More information about the jdk9-dev