Re: Java libraries and proposal.

2001-05-22 Thread Peter Moulder
On Sun, May 20, 2001 at 04:13:31PM -0500, Adam Heath wrote: > On Thu, 12 Apr 2001, Joe Emenaker wrote: > > [...] > > Well, each JVM on the system could have a script that builds the classpath > > that it needs. That would be the first thing in the actual classpath passed > > to the JVM. Next, you t

Re: Java libraries and proposal.

2001-05-22 Thread Peter Moulder
On Sun, May 20, 2001 at 04:13:31PM -0500, Adam Heath wrote: > On Thu, 12 Apr 2001, Joe Emenaker wrote: > > [...] > > Well, each JVM on the system could have a script that builds the classpath > > that it needs. That would be the first thing in the actual classpath passed > > to the JVM. Next, you

Re: Java libraries and proposal.

2001-05-21 Thread Adam Heath
On Thu, 12 Apr 2001, Joe Emenaker wrote: > > Just to complicate the situation > > > > Any script that builds a PATHS,CLASSPATH, must also consider stripping > > conflicts from them. > > Well, each JVM on the system could have a script that builds the classpath > that it needs. That would be th

Re: Java libraries and proposal.

2001-05-21 Thread Adam Heath
On Thu, 12 Apr 2001, Joe Emenaker wrote: > > Just to complicate the situation > > > > Any script that builds a PATHS,CLASSPATH, must also consider stripping > > conflicts from them. > > Well, each JVM on the system could have a script that builds the classpath > that it needs. That would be t

Re: Java libraries and proposal.

2001-04-12 Thread Jeff Sturm
On Thu, 12 Apr 2001, Cedric Berger wrote: > > If I understand this extension mechanism correctly, the class loader can > > potentially search the entire extensions directory at runtime. That seems > > horribly inefficient if that directory can grow to dozens or hundreds of > > .jar's. > > Isn't

Re: Java libraries and proposal.

2001-04-12 Thread james
On Thu, Apr 12, 2001 at 02:06:33PM -0400, Jeff Sturm wrote: > However I like the idea of a Class-path: entry in the MANIFEST, to list > dependencies by name. If an application is built as a .jar, it can have a > Class-path: too. Then the linking mechanism is similar to ELF shared > objects, and c

Re: Java libraries and proposal.

2001-04-12 Thread Cedric Berger
Jeff Sturm wrote: > On 11 Apr 2001, Per Bothner wrote: > > > The 'add everything' approach only invites DLL hell. > > > > Well, first this is what Sun does, at least to some extent, with the > > "extensions" mechanism. > > If I understand this extension mechanism correctly, the class loader can >

Re: Java libraries and proposal.

2001-04-12 Thread james
On Wed, Apr 11, 2001 at 12:32:12PM -0700, Per Bothner wrote: > That is fine for nicely-packaged libraries and applications. However, > I'm concerned about a random Java programmer who should not have to > manually fiddle with their classpath. Such programmers should be able > to write Java code w

Re: Java libraries and proposal.

2001-04-12 Thread Jeff Sturm
On Thu, 12 Apr 2001, Cedric Berger wrote: > > If I understand this extension mechanism correctly, the class loader can > > potentially search the entire extensions directory at runtime. That seems > > horribly inefficient if that directory can grow to dozens or hundreds of > > .jar's. > > Isn'

Re: Java libraries and proposal.

2001-04-12 Thread james
On Thu, Apr 12, 2001 at 02:06:33PM -0400, Jeff Sturm wrote: > However I like the idea of a Class-path: entry in the MANIFEST, to list > dependencies by name. If an application is built as a .jar, it can have a > Class-path: too. Then the linking mechanism is similar to ELF shared > objects, and

Re: Java libraries and proposal.

2001-04-12 Thread Cedric Berger
Jeff Sturm wrote: > On 11 Apr 2001, Per Bothner wrote: > > > The 'add everything' approach only invites DLL hell. > > > > Well, first this is what Sun does, at least to some extent, with the > > "extensions" mechanism. > > If I understand this extension mechanism correctly, the class loader can >

Re: Java libraries and proposal.

2001-04-12 Thread james
On Wed, Apr 11, 2001 at 12:32:12PM -0700, Per Bothner wrote: > That is fine for nicely-packaged libraries and applications. However, > I'm concerned about a random Java programmer who should not have to > manually fiddle with their classpath. Such programmers should be able > to write Java code

Re: Java libraries and proposal.

2001-04-12 Thread Joe Emenaker
> (As I'm reading this thread I'm debugging a classpath with 118 entries. > It is a terrible mess, and the application is extremely slow to load. Have you tried changing the classpath around so that the more commonly needed classes appear earlier in the path? - Joe

Re: Java libraries and proposal.

2001-04-12 Thread Joe Emenaker
> Just to complicate the situation > > Any script that builds a PATHS,CLASSPATH, must also consider stripping > conflicts from them. Well, each JVM on the system could have a script that builds the classpath that it needs. That would be the first thing in the actual classpath passed to the JVM

Re: Java libraries and proposal.

2001-04-12 Thread Jeff Sturm
On 11 Apr 2001, Per Bothner wrote: > > The 'add everything' approach only invites DLL hell. > > Well, first this is what Sun does, at least to some extent, with the > "extensions" mechanism. If I understand this extension mechanism correctly, the class loader can potentially search the entire e

Re: Java libraries and proposal.

2001-04-12 Thread Joe Emenaker
> (As I'm reading this thread I'm debugging a classpath with 118 entries. > It is a terrible mess, and the application is extremely slow to load. Have you tried changing the classpath around so that the more commonly needed classes appear earlier in the path? - Joe -- To UNSUBSCRIBE, email

Re: Java libraries and proposal.

2001-04-12 Thread Joe Emenaker
> Just to complicate the situation > > Any script that builds a PATHS,CLASSPATH, must also consider stripping > conflicts from them. Well, each JVM on the system could have a script that builds the classpath that it needs. That would be the first thing in the actual classpath passed to the JV

Re: Java libraries and proposal.

2001-04-12 Thread Jeff Sturm
On 11 Apr 2001, Per Bothner wrote: > > The 'add everything' approach only invites DLL hell. > > Well, first this is what Sun does, at least to some extent, with the > "extensions" mechanism. If I understand this extension mechanism correctly, the class loader can potentially search the entire

Re: Java libraries and proposal.

2001-04-12 Thread Greg Wilkins
Just to complicate the situation Any script that builds a PATHS,CLASSPATH, must also consider stripping conflicts from them. On my system, I have a set of use scripts, with which I can say: use jdk -v 1.2 use jaxp use jmx -v 1.0 If later I decide to do a use jmx -v 1.0 then the old

Re: Java libraries and proposal.

2001-04-12 Thread Greg Wilkins
Just to complicate the situation Any script that builds a PATHS,CLASSPATH, must also consider stripping conflicts from them. On my system, I have a set of use scripts, with which I can say: use jdk -v 1.2 use jaxp use jmx -v 1.0 If later I decide to do a use jmx -v 1.0 t

Re: Java libraries and proposal.

2001-04-11 Thread Joe Emenaker
> On Sat, Apr 07, 2001 at 07:47:29PM -0700, Per Bothner wrote: > > I disagree. My goal is that that /usr/share/java (or > > /usr/share/java/lib if you prefer) should be similar to Sun's > > extensions directory: a directory where *all* .jars > > (i.e. /usr/share/java/*.jar) are added to the impli

Re: Java libraries and proposal.

2001-04-11 Thread Per Bothner
[EMAIL PROTECTED] writes: > I think explicitly specifying the .jars you want to import into your > library or application, with sonames if necessary, seems better. That is fine for nicely-packaged libraries and applications. However, I'm concerned about a random Java programmer who should not ha

Re: Java libraries and proposal.

2001-04-11 Thread james
On Sat, Apr 07, 2001 at 07:47:29PM -0700, Per Bothner wrote: > I disagree. My goal is that that /usr/share/java (or > /usr/share/java/lib if you prefer) should be similar to Sun's > extensions directory: a directory where *all* .jars > (i.e. /usr/share/java/*.jar) are added to the implied classpat

Re: Java libraries and proposal.

2001-04-11 Thread Joe Emenaker
> On Sat, Apr 07, 2001 at 07:47:29PM -0700, Per Bothner wrote: > > I disagree. My goal is that that /usr/share/java (or > > /usr/share/java/lib if you prefer) should be similar to Sun's > > extensions directory: a directory where *all* .jars > > (i.e. /usr/share/java/*.jar) are added to the impl

Re: Java libraries and proposal.

2001-04-11 Thread Per Bothner
[EMAIL PROTECTED] writes: > I think explicitly specifying the .jars you want to import into your > library or application, with sonames if necessary, seems better. That is fine for nicely-packaged libraries and applications. However, I'm concerned about a random Java programmer who should not h

Re: Java libraries and proposal.

2001-04-11 Thread james
On Sat, Apr 07, 2001 at 07:47:29PM -0700, Per Bothner wrote: > I disagree. My goal is that that /usr/share/java (or > /usr/share/java/lib if you prefer) should be similar to Sun's > extensions directory: a directory where *all* .jars > (i.e. /usr/share/java/*.jar) are added to the implied classpa

Re: Java libraries and proposal.

2001-04-09 Thread Tom Tromey
> "Joe" == Joe Emenaker <[EMAIL PROTECTED]> writes: Joe> Does the GNU definition say that the arch-independent stuff Joe> "must" or "should" go there, or do they just say that it "can"? Joe> Is /usr/lib/appname just as legal for the stuff that's Joe> arch-independent or is it discouraged? GNU

Re: Java libraries and proposal.

2001-04-09 Thread Tom Tromey
> "Joe" == Joe Emenaker <[EMAIL PROTECTED]> writes: Joe> Does the GNU definition say that the arch-independent stuff Joe> "must" or "should" go there, or do they just say that it "can"? Joe> Is /usr/lib/appname just as legal for the stuff that's Joe> arch-independent or is it discouraged? GN

Re: Java libraries and proposal.

2001-04-08 Thread Joe Emenaker
Joe> Well, to me, "share" means share, which the jvm-specific libs Joe> aren't meant for. FYI, traditionally `share' has actually meant `architecture-independent'. Fair enough. Since I only go into /usr/share/java and /usr/share/doc, I had come to view it as the place where architecture-independe

Re: Java libraries and proposal.

2001-04-08 Thread Joe Emenaker
> > > Joe> Well, to me, "share" means share, which the jvm-specific libs > Joe> aren't meant for. > > FYI, traditionally `share' has actually meant > `architecture-independent'. Fair enough. Since I only go into /usr/share/java and /usr/share/doc, I had come to view it as the place where arch

Re: Java libraries and proposal.

2001-04-07 Thread Per Bothner
[Please cc this discussion to [EMAIL PROTECTED], the mailing list for Gcj. A goal for this dicussion is to work out a policy that GNU tools and applications, including Gcj and automake, can implement as their default when configured with prefix=/usr. This is is a general GNU and FHS standardizati

Re: Java libraries and proposal.

2001-04-07 Thread Per Bothner
[Please cc this discussion to [EMAIL PROTECTED], the mailing list for Gcj. A goal for this dicussion is to work out a policy that GNU tools and applications, including Gcj and automake, can implement as their default when configured with prefix=/usr. This is is a general GNU and FHS standardizat

Re: Java libraries and proposal.

2001-04-07 Thread Greg Wilkins
Joe Emenaker wrote: It's also possible that 2 different (but very close) APIs have classes in the same package. What is Java supposed to do if it encounters two different classes of the same name in the same package? Does it just take the first one that it encounters? While having classes for a

Re: Java libraries and proposal.

2001-04-07 Thread Greg Wilkins
Joe Emenaker wrote: >> It's also possible that 2 different (but very close) APIs have classes in >> the same package. > > What is Java supposed to do if it encounters two different classes of the > same name in the same package? Does it just take the first one that it > encounters? While havi

Re: Java libraries and proposal.

2001-04-06 Thread Tom Tromey
> "Joe" == Joe Emenaker <[EMAIL PROTECTED]> writes: >> * Maybe putting jvm implementation jars in /usr/share/java/$impl >> is the solution. Joe> Well, to me, "share" means share, which the jvm-specific libs Joe> aren't meant for. FYI, traditionally `share' has actually meant `architecture-in

Re: Java libraries and proposal.

2001-04-06 Thread Joe Emenaker
> No, it's not that simple: you can always use the completely specified name > to refer to a class (e.g. "java.util.Vector", even if you don't import the > package nor the class). The "import" keyword is only there to ease the > developer's work. Correct. Many people assume that Java's "import" wo

Re: Java libraries and proposal.

2001-04-06 Thread Joe Emenaker
> Java libraries: > * Java libraries should go to /usr/share/java if they are > jar files and /usr/share/java/repository if they are a collection > of classes. Well, being a big fan of Tomcat, I'd much more prefer to see .jar files in "/usr/share/java/lib" and .class hierarchies in "/usr/shar

Re: Java libraries and proposal.

2001-04-06 Thread Tom Tromey
> "Joe" == Joe Emenaker <[EMAIL PROTECTED]> writes: >> * Maybe putting jvm implementation jars in /usr/share/java/$impl >> is the solution. Joe> Well, to me, "share" means share, which the jvm-specific libs Joe> aren't meant for. FYI, traditionally `share' has actually meant `architecture-i

Re: Java libraries and proposal.

2001-04-06 Thread Joe Emenaker
> No, it's not that simple: you can always use the completely specified name > to refer to a class (e.g. "java.util.Vector", even if you don't import the > package nor the class). The "import" keyword is only there to ease the > developer's work. Correct. Many people assume that Java's "import" w

Re: Java libraries and proposal.

2001-04-06 Thread Joe Emenaker
> Java libraries: > * Java libraries should go to /usr/share/java if they are > jar files and /usr/share/java/repository if they are a collection > of classes. Well, being a big fan of Tomcat, I'd much more prefer to see .jar files in "/usr/share/java/lib" and .class hierarchies in "/usr/sha

Re: Java libraries and proposal.

2001-04-06 Thread Francois BOTTIN
--- Seth Arnold <[EMAIL PROTECTED]> wrote: > * Ola Lundqvist <[EMAIL PROTECTED]> [010406 04:09]: > > Build: > > Is it possible to create a script that generates this automaticly? > > Like a dh_javadeps... It should also generate the dependencies > > in the control file... > > I like this id

Re: Java libraries and proposal.

2001-04-06 Thread Seth Arnold
* Ola Lundqvist <[EMAIL PROTECTED]> [010406 04:41]: > Well to me it seems that this system will have some name clashes. > Why not use the debian package name? The initial revitalization of this thread comes from Per Bothner. His own machine is Red Hat, and he seems pretty happy with it. :) He chos

Re: Java libraries and proposal.

2001-04-06 Thread Ola Lundqvist
On Fri, Apr 06, 2001 at 04:32:17AM -0700, Seth Arnold wrote: > * Ola Lundqvist <[EMAIL PROTECTED]> [010406 04:09]: > > Build: > > Is it possible to create a script that generates this automaticly? > > Like a dh_javadeps... It should also generate the dependencies > > in the control file... >

Re: Java libraries and proposal.

2001-04-06 Thread Ola Lundqvist
On Fri, Apr 06, 2001 at 01:14:24PM +0100, Greg Wilkins wrote: > > Comments inline: > > Ola Lundqvist wrote: > > > Hi > > > > I have followed the java instalation issues thread. So I'l try > > to summarize and give some new proposals. > > > > Java libraries: > > * Java libraries should go to /u

Re: Java libraries and proposal.

2001-04-06 Thread Seth Arnold
* Ola Lundqvist <[EMAIL PROTECTED]> [010406 04:09]: > Build: > Is it possible to create a script that generates this automaticly? > Like a dh_javadeps... It should also generate the dependencies > in the control file... I like this idea. It *ought* to be fairly straightforward (famous last w

Re: Java libraries and proposal.

2001-04-06 Thread Greg Wilkins
Comments inline: Ola Lundqvist wrote: Hi I have followed the java instalation issues thread. So I'l try to summarize and give some new proposals. Java libraries: * Java libraries should go to /usr/share/java if they are jar files and /usr/share/java/repository if they are a collection of classe

Re: Java libraries and proposal.

2001-04-06 Thread Francois BOTTIN
--- Seth Arnold <[EMAIL PROTECTED]> wrote: > * Ola Lundqvist <[EMAIL PROTECTED]> [010406 04:09]: > > Build: > > Is it possible to create a script that generates this automaticly? > > Like a dh_javadeps... It should also generate the dependencies > > in the control file... > > I like this i

Re: Java libraries and proposal.

2001-04-06 Thread Seth Arnold
* Ola Lundqvist <[EMAIL PROTECTED]> [010406 04:41]: > Well to me it seems that this system will have some name clashes. > Why not use the debian package name? The initial revitalization of this thread comes from Per Bothner. His own machine is Red Hat, and he seems pretty happy with it. :) He cho

Re: Java libraries and proposal.

2001-04-06 Thread Ola Lundqvist
On Fri, Apr 06, 2001 at 04:32:17AM -0700, Seth Arnold wrote: > * Ola Lundqvist <[EMAIL PROTECTED]> [010406 04:09]: > > Build: > > Is it possible to create a script that generates this automaticly? > > Like a dh_javadeps... It should also generate the dependencies > > in the control file... >

Re: Java libraries and proposal.

2001-04-06 Thread Ola Lundqvist
On Fri, Apr 06, 2001 at 01:14:24PM +0100, Greg Wilkins wrote: > > Comments inline: > > Ola Lundqvist wrote: > > > Hi > > > > I have followed the java instalation issues thread. So I'l try > > to summarize and give some new proposals. > > > > Java libraries: > > * Java libraries should go to /

Re: Java libraries and proposal.

2001-04-06 Thread Seth Arnold
* Ola Lundqvist <[EMAIL PROTECTED]> [010406 04:09]: > Build: > Is it possible to create a script that generates this automaticly? > Like a dh_javadeps... It should also generate the dependencies > in the control file... I like this idea. It *ought* to be fairly straightforward (famous last

Re: Java libraries and proposal.

2001-04-06 Thread Greg Wilkins
Comments inline: Ola Lundqvist wrote: > Hi > > I have followed the java instalation issues thread. So I'l try > to summarize and give some new proposals. > > Java libraries: > * Java libraries should go to /usr/share/java if they are > jar files and /usr/share/java/repository if they are a