Wednesday, May 04, 2005

Long classpaths in Java

Yesterday, a colleague had a problem setting the classpath for an application we use. Apparently, the length of environment variables is restricted in Win32. Unfortunately our application is using a lot of external jars, so classpaths tend to grow.
While google'ing for a solution I came accross this post.
There is another solution to solve this issue. Just add the following line to your config.sys file:

shell=command.com /e:4096

I must admit, I like the Runner.class solution though ;)

No comments: