This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
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

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
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!
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: classpath length
It's not a secret anymore!