This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: classpaths and jar files
- To: "Anthony Green" <green at redhat dot com>
- Subject: Re: classpaths and jar files
- From: Per Bothner <per at bothner dot com>
- Date: 06 Jul 2001 22:56:01 -0700
- Cc: "Java at Gcc dot Gnu. Org" <java at gcc dot gnu dot org>
- References: <000101c1069a$a134b200$5be6b4cd@cygnus.com>
"Anthony Green" <green@redhat.com> writes:
> It would be convenient if the compiler would arrange for the fully linked
> executable's built-in classpath to include any installed jar files used at
> time of compilation.
I don't think that is the right model. I would rather have any
resource files etc from a .jar be compiled into the executable
(or shared library). Our model is that gcj uses .so files where
jdk uses .jar files. (At least at run time - we do use .jars
at compile time.)
Thus a resource file should be compiled to an initialized
byte array in a read-only data segment.
--
--Per Bothner
per@bothner.com http://www.bothner.com/per/