This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: Fwd: Using gcj to compile java
- From: Eric <eric at semsyn dot com>
- To: Bryce McKinlay <mckinlay at redhat dot com>
- Cc: java at gcc dot gnu dot org
- Date: Thu, 28 Jul 2005 18:10:09 -0700 (PDT)
- Subject: Re: Fwd: Using gcj to compile java
Bryce,
Yea, that's got it. Thanks a lot. Sorry to seem like a
simpleton, but I'm a Lisp guy. For reasons that will
remain unmentioned, I am using the abcl compiler to
generate java bytecode from Lisp source. But the
interpreter overhead is killing me. So the obvious
answer of course is to then run things thru gcj :-)
--- Bryce McKinlay <mckinlay@redhat.com> wrote:
> Eric,
>
> Perhaps your java classes are in a package? If the
> class name is
> org.foo.Main, you either need to run gcj from the
> directory that
> contains "org", or specify the top level directory
> using the --classpath
> option.
>
> Bryce
>
>
> Eric wrote:
>
> >>Date: Thu, 28 Jul 2005 08:35:42 -0700 (PDT)
> >>From: Eric <eric@semsyn.com>
> >>Subject: Using gcj to compile java
> >>To: gcc-help@gcc.gnu.org
> >>
> >>Hello,
> >>
> >>I'm trying to use gcj to compile a bunch of .java
> >>files, but it doesn't seem to be able to work out
> >>the
> >>class dependencies.
> >>
> >>If I have all my .java files in one directory, and
> >>if
> >>I do "javac *.java", then java can compile them.
> >>
> >>But if I do "gcj *.java", then gcj gives me a
> bunch
> >>of
> >>errors saying that it can't find the classes, even
> >>though the classes are there in the directory.
> >>
> >>How can I tell gcj that the classes are there?
> >>
> >>
>
>