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]

Trying to build from a jar with gcj... many "undefined reference" issues


Hello-
I'm trying to compile an executable from a jar and not having much sucess.

Here's the command I'm running:
gcj controlpanel-runtime.jar
--classpath=lib/commons-cli-1.0.jar:lib/commons-io-1.0.jar:lib/commons-logging.jar:lib/xercesImpl.jar:lib/xmlrpc-1.2-b1.jar:lib/xml-apis.jar:lib/xalan.jar
--main=com.spikesource.controlpanel.cli.Console

and here's the output:
/tmp/cc9PdYTE.o(.text+0x185): In function `com::spikesource::controlpanel::api::
CallBackActionFactory$ActionDefinitions::CallBackActionFactory$ActionDefinitions
()':
: undefined reference to `javax::xml::parsers::DocumentBuilderFactory::newInstan
ce()'
/tmp/cc9PdYTE.o(.text+0x2e6): In function `com::spikesource::controlpanel::api::
CallBackActionFactory$ActionDefinitions::parse(org::w3c::dom::Document*)':
: undefined reference to `org::w3c::dom::Document::class$'
/tmp/cc9PdYTE.o(.text+0x313): In function `com::spikesource::controlpanel::api::
CallBackActionFactory$ActionDefinitions::parse(org::w3c::dom::Document*)':
: undefined reference to `org::w3c::dom::Element::class$'
/tmp/cc9PdYTE.o(.text+0x353): In function `com::spikesource::controlpanel::api::
CallBackActionFactory$ActionDefinitions::parse(org::w3c::dom::Document*)':
: undefined reference to `org::w3c::dom::NodeList::class$'
/tmp/cc9PdYTE.o(.text+0x38a): In function `com::spikesource::controlpanel::api::
CallBackActionFactory$ActionDefinitions::parse(org::w3c::dom::Document*)':
: undefined reference to `org::w3c::dom::NodeList::class$'
/tmp/cc9PdYTE.o(.text+0x3ad): In function `com::spikesource::controlpanel::api::
CallBackActionFactory$ActionDefinitions::parse(org::w3c::dom::Document*)':
: undefined reference to `org::w3c::dom::Element::class$'
...
Big scissors used to snip here!
...
/tmp/cc9PdYTE.o(.data+0x8954): undefined reference to
`org::w3c::dom::Document::class$'
/tmp/cc9PdYTE.o(.data+0xa064): undefined reference to
`org::w3c::dom::Document::class$'
/tmp/cc9PdYTE.o(.data+0xa330): undefined reference to
`org::xml::sax::ErrorHandler::class$'
/tmp/cc9PdYTE.o(.data+0xa484): undefined reference to
`org::w3c::dom::Element::class$'
/tmp/cc9PdYTE.o(.data+0xa494): undefined reference to
`org::w3c::dom::Element::class$'
/tmp/cc9PdYTE.o(.data+0xa744): undefined reference to
`org::w3c::dom::Document::class$'
/tmp/cc9PdYTE.o(.data+0xb244): undefined reference to
`org::apache::commons::logging::Log::class$'
/tmp/cc9PdYTE.o(.data+0xb7c4): undefined reference to
`org::apache::commons::logging::Log::class$'
/tmp/cc9PdYTE.o(.data+0xb7e4): undefined reference to
`org::apache::xmlrpc::WebServer::class$'
collect2: ld returned 1 exit status

I'm assumming this is just a newbie error.  I've searched through the
mailing list and google and have tried various other switches, but the
above command appears to be the farthest that I've gotten.  All of the
"undefined reference" classes appear to be in the jars in the lib
directory.

Any hints or suggestions would be appreciated.

thanks

matt

ps.  doing this on fc3
gcj --version
gcj (GCC) 3.4.4 20050721 (Red Hat 3.4.4-2)
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


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