If the project path contains the character # (e.g. C:\Projects\My#Project), it is impossible to compile the project from IntelliJ.
Javac outputs something like this:
Information: Usage: javac <options> <source files>
Information: Use -help for a list of possible options
Information: 1 error
Information: 0 warnings
Error: javac: invalid flag: C:\Projects\My
Compiling from command line (with the complete path) works flawlessly.
Note: I sometimes put a # in front of a directory name for it to appear at the top of the list in a file manager.
Description
If the project path contains the character # (e.g. C:\Projects\My#Project), it is impossible to compile the project from IntelliJ.
Javac outputs something like this:
Information: Usage: javac <options> <source files>
Information: Use -help for a list of possible options
Information: 1 error
Information: 0 warnings
Error: javac: invalid flag: C:\Projects\My
Compiling from command line (with the complete path) works flawlessly.
Note: I sometimes put a # in front of a directory name for it to appear at the top of the list in a file manager.