This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Having some trouble building a simple app.
- From: Patrick Twohig <p-twohig at ieee dot org>
- To: java at gcc dot gnu dot org
- Date: Tue, 21 Feb 2006 23:33:25 -0500
- Subject: Having some trouble building a simple app.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
This may sound dumb, and I've read the docs, at least I think I've read
all that applies to this problem I've been having. The program just
test a threading scheme I'm going to put into a bigger project (which
compiles just fine in eclipse). One is called "ThreadWorker" and one is
called "ThreadTester". I do this..
gcj -c ThreadWorker.java
and it works just fine, making ThreadWorker.o
But, then I do this....
gcj -c ThreadTester.java
I get this
ThreadTester.java:13: error: Class `ThreadWorker' not found in type
declaration.
tmp = new Thread(new ThreadWorker());
^
Both .java files are part of the same package and live in the same
directory! I even tried invoking gcj as gcj -I. I'm not sure what i'm
doing wrong and why it errors out at that point. Does anybody have any
suggestions?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFD++mU4zW84eMcVisRAnd+AKDcHPNQKj6FsT8BzMnjFpj3CJsUtwCdELoJ
HfZ70QBCJmIOnll+cp2zD8E=
=yrAB
-----END PGP SIGNATURE-----