classpath too long - classpath file mode does not work

hello,
my classpath is too long when running unit tests according to IDEA and IDEA gives me the advice as seen in the picture below
However, this does not work because of some weaving class loader we are using.

Any suggestions on how to solve this? Why is there a limitation on the length of the command line?

Error occurred during initialization of VM
java.lang.Error: java.lang.ClassNotFoundException: com.acme.WeavingURLClassLoader
     at java.lang.ClassLoader.initSystemClassLoader(ClassLoader.java:1357)
     at java.lang.ClassLoader.getSystemClassLoader(ClassLoader.java:1320)
Caused by: java.lang.ClassNotFoundException: com.acme.WeavingURLClassLoader
     at java.net.URLClassLoader$1.run(URLClassLoader.java:202)



pic 2012-02-23_01.jpg
2 comments
Comment actions Permalink

kenhans wrote:

Why is there a limitation on the length of the command line?

The shell itself imposes a limit on a command line's length. The limit for the DOS "shell" is a notoriously shorter limit than most unix shells. It's exact length depends on whom you ask. Additionally, I think the java and javac executables also impose a limit on the length of the command line of, I believe, Integer.MAX_VALUE. But you'd have to check the java  documentation to verify if such a limit exists and what its length is. The limit might just be whatever the limit of the shell is.

kenhans wrote:

Any suggestions on how to solve this?

This StackOverflow thread might be of help.

0
Comment actions Permalink

Long Path Tool is a software that will let you easily delete, copy or rename long path files.

0

Please sign in to leave a comment.