compile multiple java files

Bryce McKinlay bmckinlay@gmail.com
Tue Jun 25 09:20:00 GMT 2013


On Tue, Jun 25, 2013 at 10:14 AM, Bucher Fabio <fabio.bucher@ntb.ch> wrote:

> gcj --main=MultiThreadTest -I/home/fabio/eclipse-workspace/workspace-gcj/GCJ_Threading_Test/src/ch/ntb/inf/fabio/gcj/ MultiThreadTest.java ThreadPool.java Calcula.java Logger.java -o tada
>
> It gives me this error:
>  /tmp/ccUNvvnJ.o: In function `main':
> ccbV7AOD.i:(.text+0x24): undefined reference to `MultiThreadTest::class$'
>
> What does this error means?

It means you specified "MultiThreadTest" as your main class, but there
is no class called that. Perhaps you forgot the package name?

Bryce



More information about the Java mailing list