idea启动shortencommandlinetoolong错误解析
因为项⽬启动的命令⾏太长了经常是带⼀些vm参数或者⼀些依赖jar
idea提供了三种⽅式
Select a method that will be used to shorten the command line if the classpath gets too long or you have many VM arguments that exceed your OS command line length limitation:
none: IntelliJ IDEA will not shorten a long classpath. If the command line exceeds the OS limitation, IntelliJ IDEA will be unable to run your application and will display a message suggesting you to specify the shortening method.
JAR manifest: IntelliJ IDEA will pass a long classpath via a temporary classpath.jar. The original classpath is defined in the manifest file as a class-path attribute in classpath.jar. Note that you will be able to preview the full command line classpath.file: IntelliJ IDEA will write a long classpath into a text file.
idea debug
User-local default: this legacy option is set automatically for projects created before IntelliJ IDEA version 2017.3. IntelliJ IDEA will configure this setting depending on the properties set in the l fig.path
This setting is shared if you select to share your run/debug configuration, so the same method will be applied for your team members irrespective of their operating system.
none 是不改变启动命令⾏
jar manifest是合并内容到manifest后启动
classpath 是通过把参数封装进⽂件后启动
2、3都⾏推荐3
转⾃:www.jianshu/p/6b1c94da4c47
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。
发表评论