This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: Compiling java-files with imports from external jared packages
- From: David Daney <ddaney at avtrex dot com>
- To: Andreas Piening <andreas dot piening at rrz dot uni-hamburg dot de>
- Cc: java at gcc dot gnu dot org
- Date: Tue, 14 Mar 2006 10:42:27 -0800
- Subject: Re: Compiling java-files with imports from external jared packages
- References: <B0F1DA27-60DC-44C6-A51E-2F5BA969288E@rrz.uni-hamburg.de>
Andreas Piening wrote:
/tmp/ccauJxMh.o: In function `xml_rpc_test::XMLRPCServer::XMLRPCServer
[in-charge]()':
XMLRPCServer.java:(.text+0x2e): undefined reference to
`org::apache::xmlrpc::WebServer::class$'
XMLRPCServer.java:(.text+0x45): undefined reference to
`org::apache::xmlrpc::WebServer::WebServer[in-charge](int)'
/tmp/ccauJxMh.o:(.data+0x4): undefined reference to
`org::apache::xmlrpc::WebServer::class$'
collect2: ld returned 1 exit status
...which is confusing me. GCJ seems to have found the files, but I
don't get where it stucks.
Any hint is welcome!
You also need to compile the code in the jar file containing the missing
class. Basically anything in your CLASSPATH at compile time needs to
be compiled and linked into the application (either statically or
dynamically).
David Daney.