[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [orp] gnu_classpath class files
From: |
Chandra Krintz |
Subject: |
Re: [orp] gnu_classpath class files |
Date: |
Fri, 29 Sep 2000 16:53:50 -0400 (EDT) |
(* for the classpath mailing list: this is an ORP mailing list
thread about using the classpath classes with ORP *)
Oh, you're right, I thought that the classes in gnu/java/lang were
of the package java.lang...., not gnu.java.lang... - just separated
for some reason.
Thanks for pointing that out!
so now with the class files from my gnuclasses.tar.gz file all that
is needed to run orp is
orp -classpath .:/tools/java/classes/gnu_classpath HelloWorld
Thanks!
Chandra
> Chandra,
>
> I've just realized something. You should not add the 'gnu' subdirectory to
> the -classpath list. Files in that directory are part of the gnu.* family
> of packages. If you add the /tools/java/classes/gnu_classpath/gnu directory
> as you suggest, the class loader will look for files in the gnu/java/lang
> directory as if they were part of the java.lang package, but they really are
> in the gnu.java.lang package and you may get all sorts of strange linking
> errors. It probably worked for you so far, because the class names in
> java.lang happen to be different from class names in gnu.java.lang, but if
> Classpath ever added a class gnu.java.lang.foo which collides which
> java.lang.foo, there could be problems. Well, in our current implementation
> we search the directories in the -classpath argument left to right, so it
> would be actually harmless, but it would be more elegant to just change your
> arguments to:
>
> orp -classpath
> .:/tools/java/classes/gnu_classpath:/tools/java/classes/gnu_classpath/vm/ref
> erence HelloWorld
>
> Of course, with your new setup you don't need the vm/reference directory
> either.
>
> Michal
>
> > -----Original Message-----
> > From: address@hidden [mailto:address@hidden
> > Sent: Thursday, September 28, 2000 10:48 AM
> > To: address@hidden
> > Subject: [orp] gnu_classpath class files
> >
> >
> > Hi.
> >
> > I've put the gnu classpath classes in
> > http://www.cs.ucsd.edu/~ckrintz/orp/gnuclasses.tar.gz
> >
> > for anyone to grab. Note that the ORP file thread_dot_data.class
> > is also included in this tar file and is located in java/lang.
> >
> > They work for me (Linux) and I incorporate them
> > with the following command (assuming that they are in the
> > directory /tools/java/classes/gnu_classpath):
> >
> > orp -classpath
> > .:/tools/java/classes/gnu_classpath:/tools/java/classes/gnu_cl
> > asspath/gnu
> > :/tools/java/classes/gnu_classpath/vm/reference HelloWorld
> >
> > Where HelloWorld.class is in the current directory.
> >
> > Let me know if you have trouble with the file for some reason.
> >
> > -Chandra
>
>
> -------------------------- eGroups Sponsor -------------------------~-~>
> eGroups eLerts
> It's Easy. It's Fun. Best of All, it's Free!
> http://click.egroups.com/1/9067/15/_/_/_/970265266/
> ---------------------------------------------------------------------_->
>
> To unsubscribe from this group, send an email to:
> address@hidden
>
>
>
>
>