What does the dynamic.classpath flag do? (IntelliJ project settings)

前端 未结 2 494
名媛妹妹
名媛妹妹 2020-11-28 09:42

Within the file .idea/workspace.xml the following can be found:


  ...
  

        
2条回答
  •  情话喂你
    2020-11-28 10:30

    This option controls how classpath is passed to the JVM: via the command line, or via a file. Most operating systems have maximum command line limit, when it's exceeded, IDEA will not be able to run your application.

    When command line is longer than 32768 chars, IDEA suggests you switching to the dynamic classpath. Long classpath is written to a file, then read by the application launcher and loaded via system classloader.

    If you are interested in the implementation details, you can check IDEA Community edition source code, JdkUtil.java file, setupJVMCommandLine method.

提交回复
热议问题