如何在IntelliJ中使用

编程入门 行业动态 更新时间:2024-10-21 12:45:10
本文介绍了如何在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中使用

本文发布于:2023-11-23 19:51:21,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1622681.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:如何在   IntelliJ

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!