How to use javac -parameters parameter in intellij?

I have everything that works in eclipse, and I'm trying to do it now in intellij. I opened the settings {command and comma}, then went on to build, run and deploy, and then clicked the Compiler and in the VM options for co-assembly. I printed "-parameters", but intellij was wrong when I built the project using the "Unrecognized option: -parameters"

My project compiles in jdk8 and I use jdk 8 lambdas and other jdk functions. I do not understand why I cannot get the code compiled with the parameters.

+10
source share
2 answers

The "Virtual machine parameters field of the general assembly process" field, as its name implies, is used to specify the virtual machine parameters for the general assembly process. The general build process is not javac , and -parameters not a VM option. Therefore, the option is not recognized.

The correct place to enter the -parameters option is Settings> Build, Run, Deploy> Compiler> Java Compiler> Advanced command line options.

+26
source

IntelliJ IDEA 2019.1.2

There are options for the Java compiler "javac" https://docs.oracle.com/javase/9/tools/javac.htm#JSWOR627

0
source

All Articles