zoukankan      html  css  js  c++  java
  • idea 启动shorten command line too long 错误解析

    因为项目启动的命令行太长了经常是带一些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 if it was shortened using this method, not just the classpath of the temporary  classpath.jar.
    
    classpath.file: IntelliJ IDEA will write a long classpath into a text file.
    
    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  ide/workspace.xml and idea.config.path/options/options.xml files.
    
    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

     转自:https://www.jianshu.com/p/6b1c94da4c47 
  • 相关阅读:
    第二周作业第1题——滕飞
    现代软件工程_第02周_第01题_纪梓潼
    计算机系统分类
    1,性能测试关键指标
    01,python变量
    2.7 生命周期各测试方法对比
    2.6 软件测试方法
    2.5 软件的开发文档和测试文档
    2.4 软件的开发模块
    2.3 软件的生命周期
  • 原文地址:https://www.cnblogs.com/javalinux/p/15336699.html
Copyright © 2011-2022 走看看