-classpath @FILE

Martin Buchholz martinrb at google.com
Mon Jul 6 21:17:48 UTC 2009


Hi launcher team,

We have a local mod to openjdk's launcher here at Google
that we would be willing to send upstream.
We were hitting the 128kb command line arg limit
(that is, the Linux limit on the size of *one* argument,
not the entire command line) and made the simple expedient
of allowing the classpath to be specified via a file,
using the familiar
-cp @FILE
syntax.

It's hard to create a uniform support for @FILE
across all jdk commands, because the jar and javac
commands already do their own @FILE parsing.
So although -cp @FILE is a bit of a hack,
it is useful enough that it probably should be part of the jdk.
Remember that jdk engineers tend not to experience "jar hell"
themselves.

Martin



More information about the core-libs-dev mailing list