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]

Xerces2-j compile errors


I'm writing a parsing relay server for handling XML messages from XMLSocket object in Flash 6. However, my webmaster tells me he will absolutely not install java runtime on the server.
So I'm trying to use GCJ to make an executable out of it.


When I tried that, I got the following:
-bash-2.05b$ gcj CommServer.java CSClient.java CSHandler.java --main=CommServer --classpath=../xerces-2_6_2/xercesImpl.jar:.:../xerces-2_6_2/xml-apis.jar
/tmp/ccLdd4lK.o(.text+0x24a): In function `CSClient::CSClient(CommServer*, java::net::Socket*)':
: undefined reference to `javax::xml::parsers::SAXParserFactory::newInstance()'
/tmp/ccLdd4lK.o(.data+0x64): undefined reference to `javax::xml::parsers::SAXParserFactory::class$'
/tmp/ccLdd4lK.o(.data+0x74): undefined reference to `javax::xml::parsers::SAXParser::class$'
/tmp/ccLdd4lK.o(.gcc_except_table+0x30): undefined reference to `javax::xml::parsers::FactoryConfigurationError::class$'
/tmp/ccLdd4lK.o(.gcc_except_table+0x34): undefined reference to `javax::xml::parsers::ParserConfigurationException::class$'
collect2: ld returned 1 exit status


So I'm wondering, do I have to compile xerces first as libraries, then include them? Or is there something fundamentally broken?
Using GCJ 3.2.3 and Xerces 2.6.2


Alex Lee


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