How to set a long Java classpath in Windows?

后端 未结 12 1087
清酒与你
清酒与你 2020-11-27 15:18

I\'m trying to run a particular JUnit test by hand on a Windows XP command line, which has an unusually high number of elements in the class path. I\'ve tried several varia

12条回答
  •  一整个雨季
    2020-11-27 16:00

    Since Java 6 you can use classpath wildcards.

    Example: foo/*, refers to all .jar files in the directory foo

    • this will not match class files (only jar files). To match both use: foo;foo/* or foo/*;foo. The order determines what is loaded first.
    • The search is NOT recursive

提交回复
热议问题