Invalid flag when running java and javac command flags

Alan Bateman Alan.Bateman at
Sat Dec 12 08:49:47 UTC 2015

On 11/12/2015 20:44, José Guilherme Macedo Vieira wrote:
> Hi,
> I'm getting an invalid flag error when running these commands:
>     - java -listmods
>     - javac - javac -modulepath mods -d
>     %COM_GREETINGS_FOLDER%\src\com.greetings\
>     src\com.greetings\com/greetings/
> 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 [1]. 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 mailing list