关于IDEA:idea中运行main-或-启动项目出现-Command-line-is-too-long

10次阅读

共计 410 个字符,预计需要花费 2 分钟才能阅读完成。

运行个 test 的 main 办法 始终呈现:Command line is too long

一搜一片全是 批改.idea 目录下 workspace.xml 中 name 为 PropertiesComponent 的 component

<component name="PropertiesComponent">
   <property name="dynamic.classpath" value="true" />
<component>


然而这种形式并不好用 也不举荐

如果你是运行一般的 main 那么你能够这么干
1. 点击 Modify options

2. 抉择 Shorten command line

3. 会多出一个 Shorten command line 的选项

4. 能够抉择 JAR manifest 或者 classpath file

而后再试就能够运行了!

非 main 办法(Spring)的操作相似 不须要 点击 Modify options Shorten command line

记录一下
扣腚去了···

正文完
 0