This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Fwd: Using gcj to compile java


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?




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]