如何在IntelliJ中使用-parameters javac选项? [英] How to use -parameters javac option in intellij?

查看:417
本文介绍了如何在IntelliJ中使用-parameters javac选项?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我所有这些都在Eclipse中工作,现在正尝试在intellij中进行.我打开设置{command and逗号},然后转到Build,Execution and Deployment,然后单击Compiler,然后在Shared Build Process VM Options中键入"-parameters",但是当我使用"Unrecognized option:-parameters"构建项目时,intellij错误

I have this all working in eclipse and am trying to do so in intellij now. I opened settings {command and comma} then went to Build, Execution and Deployment and clicked Compiler and in Shared Build Process VM Options I typed in "-parameters" but intellij errored out when I built the project with "Unrecognized option: -parameters"

我的项目在jdk8中可以正常编译,并且我正在使用jdk 8 lambdas和其他jdk功能.我不明白为什么我无法使用内置参数编译我的代码.

My project is compiling fine in jdk8 and I am using jdk 8 lambdas and other jdk features. I don't get why I can't get my code compiled with parameters build in.

推荐答案

顾名思义,共享的构建过程VM选项"字段用于指定共享的构建过程的VM选项.共享的构建过程不是javac,并且-parameters不是VM选项.因此,该选项无法识别.

The "Shared build process VM options" field, as its name implies, is used to specify the VM options for the shared build process. The shared build process is not javac, and -parameters is not a VM option. Therefore, the option is not recognized.

输入-parameters选项的正确位置是设置">构建,执行,部署">编译器">"Java编译器">其他命令行参数".

The correct place to enter the -parameters option is Settings > Build, Execution, Deployment > Compiler > Java Compiler > Additional command line parameters.

这篇关于如何在IntelliJ中使用-parameters javac选项?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆