File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes classpath length Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "classpath length" Watch "classpath length" New topic

classpath length

Sharnag Thorat

Joined: Nov 22, 2000
Posts: 2
is there any limitation on classpath length while
setting the classpath
Barry Andrews
Ranch Hand

Joined: Sep 05, 2000
Posts: 523

I have ran into problems a while back where the classpath was too long. Unfortunately, I do not remember exactly how long it was. Maybe someone else knows??? I can tell you what I did to shorten it on Windows. You can shorten each directory name with the first 6 characters followed by ~1 For example: C:\MyDirectory\MyTextFile.txt becomes C:\MyDire~1\MyText~1.txt This only shortened it by 5 characters, but for a long classpath, it can make a big difference. I do not know if there is something like this on Unix. Hope this helps!
I agree. Here's the link:
subject: classpath length
It's not a secret anymore!