javacompiler-users Mailing List for javaCompiler (Page 12)
Status: Beta
Brought to you by:
soapy
You can subscribe to this list here.
2006 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(3) |
Jul
(15) |
Aug
(12) |
Sep
(57) |
Oct
(14) |
Nov
(23) |
Dec
(15) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2007 |
Jan
(17) |
Feb
(35) |
Mar
(18) |
Apr
|
May
(4) |
Jun
(2) |
Jul
|
Aug
(12) |
Sep
(15) |
Oct
(15) |
Nov
(8) |
Dec
(4) |
2008 |
Jan
|
Feb
|
Mar
(6) |
Apr
|
May
(2) |
Jun
|
Jul
(6) |
Aug
(4) |
Sep
|
Oct
|
Nov
|
Dec
|
2009 |
Jan
|
Feb
|
Mar
(2) |
Apr
|
May
|
Jun
(5) |
Jul
(2) |
Aug
|
Sep
|
Oct
|
Nov
(9) |
Dec
(7) |
2010 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(2) |
Jul
(1) |
Aug
(4) |
Sep
|
Oct
(2) |
Nov
|
Dec
|
2011 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(2) |
Nov
|
Dec
|
2012 |
Jan
|
Feb
(2) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2013 |
Jan
(2) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2014 |
Jan
(3) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Marco T. <mt...@gm...> - 2006-09-05 18:47:39
|
I suggest do: 1. ask google 2. remove all classes that are defined multiple times and add the ones that are missed 3. ask the gcj guys Unfortunately I can't help you with this... Marco john sonal wrote: > Here's the actual error I get when I try to compile > with an XML parser. It does this with any SAX parser I > try. > > > > C:\temp>gcj --main=fsdf -o blahnew blah.o jaxen-core.o > jaxen-jdom.o jdom.o saxpa > th.o Piccolo.o > c:/gcj/thisiscool-gcc/gcc-4.0/bin/../lib/gcc/i686-pc-mingw32/4.0.2/../../../../i > 686-pc-mingw32/lib/libgcj.a(javax-xml.o):ccfIfzI6jx:(.text+0x3030): > multiple def > inition of > `javax::xml::parsers::SAXParserFactory::SAXParserFactory()' > Piccolo.o:C:/temp/Piccolo.jar:(.text+0xcb162): first > defined here > c:/gcj/thisiscool-gcc/gcc-4.0/bin/../lib/gcc/i686-pc-mingw32/4.0.2/../../../../i > 686-pc-mingw32/lib/libgcj.a(javax-xml.o):ccfIfzI6jx:(.text+0x3050): > multiple def > inition of > `javax::xml::parsers::SAXParserFactory::newInstance()' > Piccolo.o:C:/temp/Piccolo.jar:(.text+0xcb1ba): first > defined here > c:/gcj/thisiscool-gcc/gcc-4.0/bin/../lib/gcc/i686-pc-mingw32/4.0.2/../../../../i > 686-pc-mingw32/lib/libgcj.a(javax-xml.o):ccfIfzI6jx:(.text+0x37d0): > multiple def > inition of > `javax::xml::parsers::SAXParserFactory::setNamespaceAware(bool)' > Piccolo.o:C:/temp/Piccolo.jar:(.text+0xcb33e): first > defined here > c:/gcj/thisiscool-gcc/gcc-4.0/bin/../lib/gcc/i686-pc-mingw32/4.0.2/../../../../i > 686-pc-mingw32/lib/libgcj.a(javax-xml.o):ccfIfzI6jx:(.text+0x37f0): > multiple def > inition of > `javax::xml::parsers::SAXParserFactory::setValidating(bool)' > Piccolo.o:C:/temp/Piccolo.jar:(.text+0xcb376): first > defined here > c:/gcj/thisiscool-gcc/gcc-4.0/bin/../lib/gcc/i686-pc-mingw32/4.0.2/../../../../i > 686-pc-mingw32/lib/libgcj.a(javax-xml.o):ccfIfzI6jx:(.text+0x3810): > multiple def > inition of > `javax::xml::parsers::SAXParserFactory::isNamespaceAware()' > Piccolo.o:C:/temp/Piccolo.jar:(.text+0xcb3ae): first > defined here > c:/gcj/thisiscool-gcc/gcc-4.0/bin/../lib/gcc/i686-pc-mingw32/4.0.2/../../../../i > 686-pc-mingw32/lib/libgcj.a(javax-xml.o):ccfIfzI6jx:(.text+0x3830): > multiple def > inition of > `javax::xml::parsers::SAXParserFactory::isValidating()' > Piccolo.o:C:/temp/Piccolo.jar:(.text+0xcb3d8): first > defined here > c:/gcj/thisiscool-gcc/gcc-4.0/bin/../lib/gcc/i686-pc-mingw32/4.0.2/../../../../i > 686-pc-mingw32/lib/libgcj.a(javax-xml.o):ccfIfzI6jx:(.text+0x38c0): > multiple def > inition of > `javax::xml::parsers::SAXParser::SAXParser()' > Piccolo.o:C:/temp/Piccolo.jar:(.text+0xca244): first > defined here > c:/gcj/thisiscool-gcc/gcc-4.0/bin/../lib/gcc/i686-pc-mingw32/4.0.2/../../../../i > 686-pc-mingw32/lib/libgcj.a(javax-xml.o):ccfIfzI6jx:(.text+0x38e0): > multiple def > inition of > `javax::xml::parsers::SAXParser::parse(java::io::InputStream*, > org::x > ml::sax::HandlerBase*)' > Piccolo.o:C:/temp/Piccolo.jar:(.text+0xca25e): first > defined here > c:/gcj/thisiscool-gcc/gcc-4.0/bin/../lib/gcc/i686-pc-mingw32/4.0.2/../../../../i > 686-pc-mingw32/lib/libgcj.a(javax-xml.o):ccfIfzI6jx:(.text+0x3970): > multiple def > inition of > `javax::xml::parsers::SAXParser::parse(java::io::InputStream*, > org::x > ml::sax::HandlerBase*, java::lang::String*)' > Piccolo.o:C:/temp/Piccolo.jar:(.text+0xca33e): first > defined here > c:/gcj/thisiscool-gcc/gcc-4.0/bin/../lib/gcc/i686-pc-mingw32/4.0.2/../../../../i > 686-pc-mingw32/lib/libgcj.a(javax-xml.o):ccfIfzI6jx:(.text+0x3a20): > multiple def > inition of > `javax::xml::parsers::SAXParser::parse(java::io::InputStream*, > org::x > ml::sax::helpers::DefaultHandler*)' > Piccolo.o:C:/temp/Piccolo.jar:(.text+0xca458): first > defined here > c:/gcj/thisiscool-gcc/gcc-4.0/bin/../lib/gcc/i686-pc-mingw32/4.0.2/../../../../i > 686-pc-mingw32/lib/libgcj.a(javax-xml.o):ccfIfzI6jx:(.text+0x3ab0): > multiple def > inition of > `javax::xml::parsers::SAXParser::parse(java::io::InputStream*, > org::x > ml::sax::helpers::DefaultHandler*, > java::lang::String*)' > Piccolo.o:C:/temp/Piccolo.jar:(.text+0xca538): first > defined here > c:/gcj/thisiscool-gcc/gcc-4.0/bin/../lib/gcc/i686-pc-mingw32/4.0.2/../../../../i > 686-pc-mingw32/lib/libgcj.a(javax-xml.o):ccfIfzI6jx:(.text+0x3b60): > multiple def > inition of > `javax::xml::parsers::SAXParser::parse(java::lang::String*, > org::xml: > :sax::HandlerBase*)' > Piccolo.o:C:/temp/Piccolo.jar:(.text+0xca652): first > defined here > c:/gcj/thisiscool-gcc/gcc-4.0/bin/../lib/gcc/i686-pc-mingw32/4.0.2/../../../../i > 686-pc-mingw32/lib/libgcj.a(javax-xml.o):ccfIfzI6jx:(.text+0x3bf0): > multiple def > inition of > `javax::xml::parsers::SAXParser::parse(java::lang::String*, > org::xml: > :sax::helpers::DefaultHandler*)' > Piccolo.o:C:/temp/Piccolo.jar:(.text+0xca732): first > defined here > c:/gcj/thisiscool-gcc/gcc-4.0/bin/../lib/gcc/i686-pc-mingw32/4.0.2/../../../../i > 686-pc-mingw32/lib/libgcj.a(javax-xml.o):ccfIfzI6jx:(.text+0x3c80): > multiple def > inition of > `javax::xml::parsers::SAXParser::parse(java::io::File*, > org::xml::sax > ::HandlerBase*)' > Piccolo.o:C:/temp/Piccolo.jar:(.text+0xca812): first > defined here > c:/gcj/thisiscool-gcc/gcc-4.0/bin/../lib/gcc/i686-pc-mingw32/4.0.2/../../../../i > 686-pc-mingw32/lib/libgcj.a(javax-xml.o):ccfIfzI6jx:(.text+0x3d60): > multiple def > inition of > `javax::xml::parsers::SAXParser::parse(java::io::File*, > org::xml::sax > ::helpers::DefaultHandler*)' > Piccolo.o:C:/temp/Piccolo.jar:(.text+0xcaa32): first > defined here > c:/gcj/thisiscool-gcc/gcc-4.0/bin/../lib/gcc/i686-pc-mingw32/4.0.2/../../../../i > 686-pc-mingw32/lib/libgcj.a(javax-xml.o):ccfIfzI6jx:(.text+0x3e40): > multiple def > inition of > `javax::xml::parsers::SAXParser::parse(org::xml::sax::InputSource*, > o > rg::xml::sax::HandlerBase*)' > Piccolo.o:C:/temp/Piccolo.jar:(.text+0xcac52): first > defined here > c:/gcj/thisiscool-gcc/gcc-4.0/bin/../lib/gcc/i686-pc-mingw32/4.0.2/../../../../i > 686-pc-mingw32/lib/libgcj.a(javax-xml.o):ccfIfzI6jx:(.text+0x3fa0): > multiple def > inition of > `javax::xml::parsers::SAXParser::parse(org::xml::sax::InputSource*, > o > rg::xml::sax::helpers::DefaultHandler*)' > Piccolo.o:C:/temp/Piccolo.jar:(.text+0xcaeda): first > defined here > c:/gcj/thisiscool-gcc/gcc-4.0/bin/../lib/gcc/i686-pc-mingw32/4.0.2/../../../../i > 686-pc-mingw32/lib/libgcj.a(javax-xml.o):ccfIfzI6jx:(.text+0x4130): > multiple def > inition of > `javax::xml::parsers::ParserConfigurationException::ParserConfigurati > onException()' > Piccolo.o:C:/temp/Piccolo.jar:(.text+0xca204): first > defined here > c:/gcj/thisiscool-gcc/gcc-4.0/bin/../lib/gcc/i686-pc-mingw32/4.0.2/../../../../i > 686-pc-mingw32/lib/libgcj.a(javax-xml.o):ccfIfzI6jx:(.text+0x4150): > multiple def > inition of > `javax::xml::parsers::ParserConfigurationException::ParserConfigurati > onException(java::lang::String*)' > Piccolo.o:C:/temp/Piccolo.jar:(.text+0xca21e): first > defined here > c:/gcj/thisiscool-gcc/gcc-4.0/bin/../lib/gcc/i686-pc-mingw32/4.0.2/../../../../i > 686-pc-mingw32/lib/libgcj.a(javax-xml.o):ccfIfzI6jx:(.text+0x4170): > multiple def > inition of > `javax::xml::parsers::FactoryConfigurationError::FactoryConfiguration > Error()' > Piccolo.o:C:/temp/Piccolo.jar:(.text+0xc7bb6): first > defined here > c:/gcj/thisiscool-gcc/gcc-4.0/bin/../lib/gcc/i686-pc-mingw32/4.0.2/../../../../i > 686-pc-mingw32/lib/libgcj.a(javax-xml.o):ccfIfzI6jx:(.text+0x4190): > multiple def > inition of > `javax::xml::parsers::FactoryConfigurationError::FactoryConfiguration > Error(java::lang::String*)' > Piccolo.o:C:/temp/Piccolo.jar:(.text+0xc7bf2): first > defined here > c:/gcj/thisiscool-gcc/gcc-4.0/bin/../lib/gcc/i686-pc-mingw32/4.0.2/../../../../i > 686-pc-mingw32/lib/libgcj.a(javax-xml.o):ccfIfzI6jx:(.text+0x41b0): > multiple def > inition of > `javax::xml::parsers::FactoryConfigurationError::FactoryConfiguration > Error(java::lang::Exception*)' > Piccolo.o:C:/temp/Piccolo.jar:(.text+0xc7c3a): first > defined here > c:/gcj/thisiscool-gcc/gcc-4.0/bin/../lib/gcc/i686-pc-mingw32/4.0.2/../../../../i > 686-pc-mingw32/lib/libgcj.a(javax-xml.o):ccfIfzI6jx:(.text+0x41f0): > multiple def > inition of > `javax::xml::parsers::FactoryConfigurationError::FactoryConfiguration > Error(java::lang::Exception*, java::lang::String*)' > Piccolo.o:C:/temp/Piccolo.jar:(.text+0xc7cae): first > defined here > c:/gcj/thisiscool-gcc/gcc-4.0/bin/../lib/gcc/i686-pc-mingw32/4.0.2/../../../../i > 686-pc-mingw32/lib/libgcj.a(javax-xml.o):ccfIfzI6jx:(.text+0x4230): > multiple def > inition of > `javax::xml::parsers::FactoryConfigurationError::getMessage()' > Piccolo.o:C:/temp/Piccolo.jar:(.text+0xc7cfc): first > defined here > c:/gcj/thisiscool-gcc/gcc-4.0/bin/../lib/gcc/i686-pc-mingw32/4.0.2/../../../../i > 686-pc-mingw32/lib/libgcj.a(javax-xml.o):ccfIfzI6jx:(.text+0x4280): > multiple def > inition of > `javax::xml::parsers::FactoryConfigurationError::getException()' > Piccolo.o:C:/temp/Piccolo.jar:(.text+0xc7dd0): first > defined here > c:/gcj/thisiscool-gcc/gcc-4.0/bin/../lib/gcc/i686-pc-mingw32/4.0.2/../../../../i > 686-pc-mingw32/lib/libgcj.a(javax-xml.o):ccfIfzI6jx:(.text+0x42b0): > multiple def > inition of > `javax::xml::parsers::DocumentBuilderFactory::DocumentBuilderFactory( > )' > Piccolo.o:C:/temp/Piccolo.jar:(.text+0xc7712): first > defined here > c:/gcj/thisiscool-gcc/gcc-4.0/bin/../lib/gcc/i686-pc-mingw32/4.0.2/../../../../i > 686-pc-mingw32/lib/libgcj.a(javax-xml.o):ccfIfzI6jx:(.text+0x42e0): > multiple def > inition of > `javax::xml::parsers::DocumentBuilderFactory::newInstance()' > Piccolo.o:C:/temp/Piccolo.jar:(.text+0xc77e6): first > defined here > c:/gcj/thisiscool-gcc/gcc-4.0/bin/../lib/gcc/i686-pc-mingw32/4.0.2/../../../../i > 686-pc-mingw32/lib/libgcj.a(javax-xml.o):ccfIfzI6jx:(.text+0x4a60): > multiple def > inition of > `javax::xml::parsers::DocumentBuilderFactory::setNamespaceAware(bool) > ' > Piccolo.o:C:/temp/Piccolo.jar:(.text+0xc796a): first > defined here > c:/gcj/thisiscool-gcc/gcc-4.0/bin/../lib/gcc/i686-pc-mingw32/4.0.2/../../../../i > 686-pc-mingw32/lib/libgcj.a(javax-xml.o):ccfIfzI6jx:(.text+0x4a80): > multiple def > inition of > `javax::xml::parsers::DocumentBuilderFactory::setValidating(bool)' > Piccolo.o:C:/temp/Piccolo.jar:(.text+0xc79a2): first > defined here > c:/gcj/thisiscool-gcc/gcc-4.0/bin/../lib/gcc/i686-pc-mingw32/4.0.2/../../../../i > 686-pc-mingw32/lib/libgcj.a(javax-xml.o):ccfIfzI6jx:(.text+0x4aa0): > multiple def > inition of > `javax::xml::parsers::DocumentBuilderFactory::setIgnoringElementConte > ntWhitespace(bool)' > Piccolo.o:C:/temp/Piccolo.jar:(.text+0xc79da): first > defined here > c:/gcj/thisiscool-gcc/gcc-4.0/bin/../lib/gcc/i686-pc-mingw32/4.0.2/../../../../i > 686-pc-mingw32/lib/libgcj.a(javax-xml.o):ccfIfzI6jx:(.text+0x4ac0): > multiple def > inition of > `javax::xml::parsers::DocumentBuilderFactory::setExpandEntityReferenc > es(bool)' > Piccolo.o:C:/temp/Piccolo.jar:(.text+0xc7a12): first > defined here > c:/gcj/thisiscool-gcc/gcc-4.0/bin/../lib/gcc/i686-pc-mingw32/4.0.2/../../../../i > 686-pc-mingw32/lib/libgcj.a(javax-xml.o):ccfIfzI6jx:(.text+0x4ae0): > multiple def > inition of > `javax::xml::parsers::DocumentBuilderFactory::setIgnoringComments(boo > l)' > Piccolo.o:C:/temp/Piccolo.jar:(.text+0xc7a4a): first > defined here > c:/gcj/thisiscool-gcc/gcc-4.0/bin/../lib/gcc/i686-pc-mingw32/4.0.2/../../../../i > 686-pc-mingw32/lib/libgcj.a(javax-xml.o):ccfIfzI6jx:(.text+0x4b00): > multiple def > inition of > `javax::xml::parsers::DocumentBuilderFactory::setCoalescing(bool)' > Piccolo.o:C:/temp/Piccolo.jar:(.text+0xc7a82): first > defined here > c:/gcj/thisiscool-gcc/gcc-4.0/bin/../lib/gcc/i686-pc-mingw32/4.0.2/../../../../i > 686-pc-mingw32/lib/libgcj.a(javax-xml.o):ccfIfzI6jx:(.text+0x4b20): > multiple def > inition of > `javax::xml::parsers::DocumentBuilderFactory::isNamespaceAware()' > Piccolo.o:C:/temp/Piccolo.jar:(.text+0xc7aba): first > defined here > c:/gcj/thisiscool-gcc/gcc-4.0/bin/../lib/gcc/i686-pc-mingw32/4.0.2/../../../../i > 686-pc-mingw32/lib/libgcj.a(javax-xml.o):ccfIfzI6jx:(.text+0x4b40): > multiple def > inition of > `javax::xml::parsers::DocumentBuilderFactory::isValidating()' > Piccolo.o:C:/temp/Piccolo.jar:(.text+0xc7ae4): first > defined here > c:/gcj/thisiscool-gcc/gcc-4.0/bin/../lib/gcc/i686-pc-mingw32/4.0.2/../../../../i > 686-pc-mingw32/lib/libgcj.a(javax-xml.o):ccfIfzI6jx:(.text+0x4b60): > multiple def > inition of > `javax::xml::parsers::DocumentBuilderFactory::isIgnoringElementConten > tWhitespace()' > Piccolo.o:C:/temp/Piccolo.jar:(.text+0xc7b0e): first > defined here > c:/gcj/thisiscool-gcc/gcc-4.0/bin/../lib/gcc/i686-pc-mingw32/4.0.2/../../../../i > 686-pc-mingw32/lib/libgcj.a(javax-xml.o):ccfIfzI6jx:(.text+0x4b80): > multiple def > inition of > `javax::xml::parsers::DocumentBuilderFactory::isExpandEntityReference > s()' > Piccolo.o:C:/temp/Piccolo.jar:(.text+0xc7b38): first > defined here > c:/gcj/thisiscool-gcc/gcc-4.0/bin/../lib/gcc/i686-pc-mingw32/4.0.2/../../../../i > 686-pc-mingw32/lib/libgcj.a(javax-xml.o):ccfIfzI6jx:(.text+0x4ba0): > multiple def > inition of > `javax::xml::parsers::DocumentBuilderFactory::isIgnoringComments()' > Piccolo.o:C:/temp/Piccolo.jar:(.text+0xc7b62): first > defined here > c:/gcj/thisiscool-gcc/gcc-4.0/bin/../lib/gcc/i686-pc-mingw32/4.0.2/../../../../i > 686-pc-mingw32/lib/libgcj.a(javax-xml.o):ccfIfzI6jx:(.text+0x4bc0): > multiple def > inition of > `javax::xml::parsers::DocumentBuilderFactory::isCoalescing()' > Piccolo.o:C:/temp/Piccolo.jar:(.text+0xc7b8c): first > defined here > c:/gcj/thisiscool-gcc/gcc-4.0/bin/../lib/gcc/i686-pc-mingw32/4.0.2/../../../../i > 686-pc-mingw32/lib/libgcj.a(javax-xml.o):ccfIfzI6jx:(.text+0x4c50): > multiple def > inition of > `javax::xml::parsers::DocumentBuilder::DocumentBuilder()' > Piccolo.o:C:/temp/Piccolo.jar:(.text+0xc721a): first > defined here > c:/gcj/thisiscool-gcc/gcc-4.0/bin/../lib/gcc/i686-pc-mingw32/4.0.2/../../../../i > 686-pc-mingw32/lib/libgcj.a(javax-xml.o):ccfIfzI6jx:(.text+0x4c70): > multiple def > inition of > `javax::xml::parsers::DocumentBuilder::parse(java::io::InputStream*)' > > Piccolo.o:C:/temp/Piccolo.jar:(.text+0xc7234): first > defined here > c:/gcj/thisiscool-gcc/gcc-4.0/bin/../lib/gcc/i686-pc-mingw32/4.0.2/../../../../i > 686-pc-mingw32/lib/libgcj.a(javax-xml.o):ccfIfzI6jx:(.text+0x4d00): > multiple def > inition of > `javax::xml::parsers::DocumentBuilder::parse(java::io::InputStream*, > java::lang::String*)' > Piccolo.o:C:/temp/Piccolo.jar:(.text+0xc730e): first > defined here > c:/gcj/thisiscool-gcc/gcc-4.0/bin/../lib/gcc/i686-pc-mingw32/4.0.2/../../../../i > 686-pc-mingw32/lib/libgcj.a(javax-xml.o):ccfIfzI6jx:(.text+0x4da0): > multiple def > inition of > `javax::xml::parsers::DocumentBuilder::parse(java::lang::String*)' > Piccolo.o:C:/temp/Piccolo.jar:(.text+0xc7420): first > defined here > c:/gcj/thisiscool-gcc/gcc-4.0/bin/../lib/gcc/i686-pc-mingw32/4.0.2/../../../../i > 686-pc-mingw32/lib/libgcj.a(javax-xml.o):ccfIfzI6jx:(.text+0x4e30): > multiple def > inition of > `javax::xml::parsers::DocumentBuilder::parse(java::io::File*)' > Piccolo.o:C:/temp/Piccolo.jar:(.text+0xc74fa): first > defined here > c:/gcj/thisiscool-gcc/gcc-4.0/bin/../lib/gcc/i686-pc-mingw32/4.0.2/../../../../i > 686-pc-mingw32/lib/libgcj.a(javax-xml.o):ccfIfzI6jx:(.data+0x4b40): > multiple def > inition of > `javax::xml::parsers::SAXParserFactory::class$' > Piccolo.o:C:/temp/Piccolo.jar:(.data+0xa4e0): first > defined here > c:/gcj/thisiscool-gcc/gcc-4.0/bin/../lib/gcc/i686-pc-mingw32/4.0.2/../../../../i > 686-pc-mingw32/lib/libgcj.a(javax-xml.o):ccfIfzI6jx:(.data+0x5020): > multiple def > inition of `javax::xml::parsers::SAXParser::class$' > Piccolo.o:C:/temp/Piccolo.jar:(.data+0xa2a0): first > defined here > c:/gcj/thisiscool-gcc/gcc-4.0/bin/../lib/gcc/i686-pc-mingw32/4.0.2/../../../../i > 686-pc-mingw32/lib/libgcj.a(javax-xml.o):ccfIfzI6jx:(.data+0x5160): > multiple def > inition of > `javax::xml::parsers::ParserConfigurationException::class$' > Piccolo.o:C:/temp/Piccolo.jar:(.data+0x9f60): first > defined here > c:/gcj/thisiscool-gcc/gcc-4.0/bin/../lib/gcc/i686-pc-mingw32/4.0.2/../../../../i > 686-pc-mingw32/lib/libgcj.a(javax-xml.o):ccfIfzI6jx:(.data+0x5340): > multiple def > inition of > `javax::xml::parsers::FactoryConfigurationError::class$' > Piccolo.o:C:/temp/Piccolo.jar:(.data+0x9720): first > defined here > c:/gcj/thisiscool-gcc/gcc-4.0/bin/../lib/gcc/i686-pc-mingw32/4.0.2/../../../../i > 686-pc-mingw32/lib/libgcj.a(javax-xml.o):ccfIfzI6jx:(.data+0x5960): > multiple def > inition of > `javax::xml::parsers::DocumentBuilderFactory::class$' > Piccolo.o:C:/temp/Piccolo.jar:(.data+0x9580): first > defined here > c:/gcj/thisiscool-gcc/gcc-4.0/bin/../lib/gcc/i686-pc-mingw32/4.0.2/../../../../i > 686-pc-mingw32/lib/libgcj.a(javax-xml.o):ccfIfzI6jx:(.data+0x5c80): > multiple def > inition of > `javax::xml::parsers::DocumentBuilder::class$' > Piccolo.o:C:/temp/Piccolo.jar:(.data+0x9260): first > defined here > > C:\temp> > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > javaCompiler-users mailing list > jav...@li... > https://lists.sourceforge.net/lists/listinfo/javacompiler-users > > |
From: john s. <kmk...@ya...> - 2006-09-05 18:29:46
|
Here's the actual error I get when I try to compile with an XML parser. It does this with any SAX parser I try. C:\temp>gcj --main=fsdf -o blahnew blah.o jaxen-core.o jaxen-jdom.o jdom.o saxpa th.o Piccolo.o c:/gcj/thisiscool-gcc/gcc-4.0/bin/../lib/gcc/i686-pc-mingw32/4.0.2/../../../../i 686-pc-mingw32/lib/libgcj.a(javax-xml.o):ccfIfzI6jx:(.text+0x3030): multiple def inition of `javax::xml::parsers::SAXParserFactory::SAXParserFactory()' Piccolo.o:C:/temp/Piccolo.jar:(.text+0xcb162): first defined here c:/gcj/thisiscool-gcc/gcc-4.0/bin/../lib/gcc/i686-pc-mingw32/4.0.2/../../../../i 686-pc-mingw32/lib/libgcj.a(javax-xml.o):ccfIfzI6jx:(.text+0x3050): multiple def inition of `javax::xml::parsers::SAXParserFactory::newInstance()' Piccolo.o:C:/temp/Piccolo.jar:(.text+0xcb1ba): first defined here c:/gcj/thisiscool-gcc/gcc-4.0/bin/../lib/gcc/i686-pc-mingw32/4.0.2/../../../../i 686-pc-mingw32/lib/libgcj.a(javax-xml.o):ccfIfzI6jx:(.text+0x37d0): multiple def inition of `javax::xml::parsers::SAXParserFactory::setNamespaceAware(bool)' Piccolo.o:C:/temp/Piccolo.jar:(.text+0xcb33e): first defined here c:/gcj/thisiscool-gcc/gcc-4.0/bin/../lib/gcc/i686-pc-mingw32/4.0.2/../../../../i 686-pc-mingw32/lib/libgcj.a(javax-xml.o):ccfIfzI6jx:(.text+0x37f0): multiple def inition of `javax::xml::parsers::SAXParserFactory::setValidating(bool)' Piccolo.o:C:/temp/Piccolo.jar:(.text+0xcb376): first defined here c:/gcj/thisiscool-gcc/gcc-4.0/bin/../lib/gcc/i686-pc-mingw32/4.0.2/../../../../i 686-pc-mingw32/lib/libgcj.a(javax-xml.o):ccfIfzI6jx:(.text+0x3810): multiple def inition of `javax::xml::parsers::SAXParserFactory::isNamespaceAware()' Piccolo.o:C:/temp/Piccolo.jar:(.text+0xcb3ae): first defined here c:/gcj/thisiscool-gcc/gcc-4.0/bin/../lib/gcc/i686-pc-mingw32/4.0.2/../../../../i 686-pc-mingw32/lib/libgcj.a(javax-xml.o):ccfIfzI6jx:(.text+0x3830): multiple def inition of `javax::xml::parsers::SAXParserFactory::isValidating()' Piccolo.o:C:/temp/Piccolo.jar:(.text+0xcb3d8): first defined here c:/gcj/thisiscool-gcc/gcc-4.0/bin/../lib/gcc/i686-pc-mingw32/4.0.2/../../../../i 686-pc-mingw32/lib/libgcj.a(javax-xml.o):ccfIfzI6jx:(.text+0x38c0): multiple def inition of `javax::xml::parsers::SAXParser::SAXParser()' Piccolo.o:C:/temp/Piccolo.jar:(.text+0xca244): first defined here c:/gcj/thisiscool-gcc/gcc-4.0/bin/../lib/gcc/i686-pc-mingw32/4.0.2/../../../../i 686-pc-mingw32/lib/libgcj.a(javax-xml.o):ccfIfzI6jx:(.text+0x38e0): multiple def inition of `javax::xml::parsers::SAXParser::parse(java::io::InputStream*, org::x ml::sax::HandlerBase*)' Piccolo.o:C:/temp/Piccolo.jar:(.text+0xca25e): first defined here c:/gcj/thisiscool-gcc/gcc-4.0/bin/../lib/gcc/i686-pc-mingw32/4.0.2/../../../../i 686-pc-mingw32/lib/libgcj.a(javax-xml.o):ccfIfzI6jx:(.text+0x3970): multiple def inition of `javax::xml::parsers::SAXParser::parse(java::io::InputStream*, org::x ml::sax::HandlerBase*, java::lang::String*)' Piccolo.o:C:/temp/Piccolo.jar:(.text+0xca33e): first defined here c:/gcj/thisiscool-gcc/gcc-4.0/bin/../lib/gcc/i686-pc-mingw32/4.0.2/../../../../i 686-pc-mingw32/lib/libgcj.a(javax-xml.o):ccfIfzI6jx:(.text+0x3a20): multiple def inition of `javax::xml::parsers::SAXParser::parse(java::io::InputStream*, org::x ml::sax::helpers::DefaultHandler*)' Piccolo.o:C:/temp/Piccolo.jar:(.text+0xca458): first defined here c:/gcj/thisiscool-gcc/gcc-4.0/bin/../lib/gcc/i686-pc-mingw32/4.0.2/../../../../i 686-pc-mingw32/lib/libgcj.a(javax-xml.o):ccfIfzI6jx:(.text+0x3ab0): multiple def inition of `javax::xml::parsers::SAXParser::parse(java::io::InputStream*, org::x ml::sax::helpers::DefaultHandler*, java::lang::String*)' Piccolo.o:C:/temp/Piccolo.jar:(.text+0xca538): first defined here c:/gcj/thisiscool-gcc/gcc-4.0/bin/../lib/gcc/i686-pc-mingw32/4.0.2/../../../../i 686-pc-mingw32/lib/libgcj.a(javax-xml.o):ccfIfzI6jx:(.text+0x3b60): multiple def inition of `javax::xml::parsers::SAXParser::parse(java::lang::String*, org::xml: :sax::HandlerBase*)' Piccolo.o:C:/temp/Piccolo.jar:(.text+0xca652): first defined here c:/gcj/thisiscool-gcc/gcc-4.0/bin/../lib/gcc/i686-pc-mingw32/4.0.2/../../../../i 686-pc-mingw32/lib/libgcj.a(javax-xml.o):ccfIfzI6jx:(.text+0x3bf0): multiple def inition of `javax::xml::parsers::SAXParser::parse(java::lang::String*, org::xml: :sax::helpers::DefaultHandler*)' Piccolo.o:C:/temp/Piccolo.jar:(.text+0xca732): first defined here c:/gcj/thisiscool-gcc/gcc-4.0/bin/../lib/gcc/i686-pc-mingw32/4.0.2/../../../../i 686-pc-mingw32/lib/libgcj.a(javax-xml.o):ccfIfzI6jx:(.text+0x3c80): multiple def inition of `javax::xml::parsers::SAXParser::parse(java::io::File*, org::xml::sax ::HandlerBase*)' Piccolo.o:C:/temp/Piccolo.jar:(.text+0xca812): first defined here c:/gcj/thisiscool-gcc/gcc-4.0/bin/../lib/gcc/i686-pc-mingw32/4.0.2/../../../../i 686-pc-mingw32/lib/libgcj.a(javax-xml.o):ccfIfzI6jx:(.text+0x3d60): multiple def inition of `javax::xml::parsers::SAXParser::parse(java::io::File*, org::xml::sax ::helpers::DefaultHandler*)' Piccolo.o:C:/temp/Piccolo.jar:(.text+0xcaa32): first defined here c:/gcj/thisiscool-gcc/gcc-4.0/bin/../lib/gcc/i686-pc-mingw32/4.0.2/../../../../i 686-pc-mingw32/lib/libgcj.a(javax-xml.o):ccfIfzI6jx:(.text+0x3e40): multiple def inition of `javax::xml::parsers::SAXParser::parse(org::xml::sax::InputSource*, o rg::xml::sax::HandlerBase*)' Piccolo.o:C:/temp/Piccolo.jar:(.text+0xcac52): first defined here c:/gcj/thisiscool-gcc/gcc-4.0/bin/../lib/gcc/i686-pc-mingw32/4.0.2/../../../../i 686-pc-mingw32/lib/libgcj.a(javax-xml.o):ccfIfzI6jx:(.text+0x3fa0): multiple def inition of `javax::xml::parsers::SAXParser::parse(org::xml::sax::InputSource*, o rg::xml::sax::helpers::DefaultHandler*)' Piccolo.o:C:/temp/Piccolo.jar:(.text+0xcaeda): first defined here c:/gcj/thisiscool-gcc/gcc-4.0/bin/../lib/gcc/i686-pc-mingw32/4.0.2/../../../../i 686-pc-mingw32/lib/libgcj.a(javax-xml.o):ccfIfzI6jx:(.text+0x4130): multiple def inition of `javax::xml::parsers::ParserConfigurationException::ParserConfigurati onException()' Piccolo.o:C:/temp/Piccolo.jar:(.text+0xca204): first defined here c:/gcj/thisiscool-gcc/gcc-4.0/bin/../lib/gcc/i686-pc-mingw32/4.0.2/../../../../i 686-pc-mingw32/lib/libgcj.a(javax-xml.o):ccfIfzI6jx:(.text+0x4150): multiple def inition of `javax::xml::parsers::ParserConfigurationException::ParserConfigurati onException(java::lang::String*)' Piccolo.o:C:/temp/Piccolo.jar:(.text+0xca21e): first defined here c:/gcj/thisiscool-gcc/gcc-4.0/bin/../lib/gcc/i686-pc-mingw32/4.0.2/../../../../i 686-pc-mingw32/lib/libgcj.a(javax-xml.o):ccfIfzI6jx:(.text+0x4170): multiple def inition of `javax::xml::parsers::FactoryConfigurationError::FactoryConfiguration Error()' Piccolo.o:C:/temp/Piccolo.jar:(.text+0xc7bb6): first defined here c:/gcj/thisiscool-gcc/gcc-4.0/bin/../lib/gcc/i686-pc-mingw32/4.0.2/../../../../i 686-pc-mingw32/lib/libgcj.a(javax-xml.o):ccfIfzI6jx:(.text+0x4190): multiple def inition of `javax::xml::parsers::FactoryConfigurationError::FactoryConfiguration Error(java::lang::String*)' Piccolo.o:C:/temp/Piccolo.jar:(.text+0xc7bf2): first defined here c:/gcj/thisiscool-gcc/gcc-4.0/bin/../lib/gcc/i686-pc-mingw32/4.0.2/../../../../i 686-pc-mingw32/lib/libgcj.a(javax-xml.o):ccfIfzI6jx:(.text+0x41b0): multiple def inition of `javax::xml::parsers::FactoryConfigurationError::FactoryConfiguration Error(java::lang::Exception*)' Piccolo.o:C:/temp/Piccolo.jar:(.text+0xc7c3a): first defined here c:/gcj/thisiscool-gcc/gcc-4.0/bin/../lib/gcc/i686-pc-mingw32/4.0.2/../../../../i 686-pc-mingw32/lib/libgcj.a(javax-xml.o):ccfIfzI6jx:(.text+0x41f0): multiple def inition of `javax::xml::parsers::FactoryConfigurationError::FactoryConfiguration Error(java::lang::Exception*, java::lang::String*)' Piccolo.o:C:/temp/Piccolo.jar:(.text+0xc7cae): first defined here c:/gcj/thisiscool-gcc/gcc-4.0/bin/../lib/gcc/i686-pc-mingw32/4.0.2/../../../../i 686-pc-mingw32/lib/libgcj.a(javax-xml.o):ccfIfzI6jx:(.text+0x4230): multiple def inition of `javax::xml::parsers::FactoryConfigurationError::getMessage()' Piccolo.o:C:/temp/Piccolo.jar:(.text+0xc7cfc): first defined here c:/gcj/thisiscool-gcc/gcc-4.0/bin/../lib/gcc/i686-pc-mingw32/4.0.2/../../../../i 686-pc-mingw32/lib/libgcj.a(javax-xml.o):ccfIfzI6jx:(.text+0x4280): multiple def inition of `javax::xml::parsers::FactoryConfigurationError::getException()' Piccolo.o:C:/temp/Piccolo.jar:(.text+0xc7dd0): first defined here c:/gcj/thisiscool-gcc/gcc-4.0/bin/../lib/gcc/i686-pc-mingw32/4.0.2/../../../../i 686-pc-mingw32/lib/libgcj.a(javax-xml.o):ccfIfzI6jx:(.text+0x42b0): multiple def inition of `javax::xml::parsers::DocumentBuilderFactory::DocumentBuilderFactory( )' Piccolo.o:C:/temp/Piccolo.jar:(.text+0xc7712): first defined here c:/gcj/thisiscool-gcc/gcc-4.0/bin/../lib/gcc/i686-pc-mingw32/4.0.2/../../../../i 686-pc-mingw32/lib/libgcj.a(javax-xml.o):ccfIfzI6jx:(.text+0x42e0): multiple def inition of `javax::xml::parsers::DocumentBuilderFactory::newInstance()' Piccolo.o:C:/temp/Piccolo.jar:(.text+0xc77e6): first defined here c:/gcj/thisiscool-gcc/gcc-4.0/bin/../lib/gcc/i686-pc-mingw32/4.0.2/../../../../i 686-pc-mingw32/lib/libgcj.a(javax-xml.o):ccfIfzI6jx:(.text+0x4a60): multiple def inition of `javax::xml::parsers::DocumentBuilderFactory::setNamespaceAware(bool) ' Piccolo.o:C:/temp/Piccolo.jar:(.text+0xc796a): first defined here c:/gcj/thisiscool-gcc/gcc-4.0/bin/../lib/gcc/i686-pc-mingw32/4.0.2/../../../../i 686-pc-mingw32/lib/libgcj.a(javax-xml.o):ccfIfzI6jx:(.text+0x4a80): multiple def inition of `javax::xml::parsers::DocumentBuilderFactory::setValidating(bool)' Piccolo.o:C:/temp/Piccolo.jar:(.text+0xc79a2): first defined here c:/gcj/thisiscool-gcc/gcc-4.0/bin/../lib/gcc/i686-pc-mingw32/4.0.2/../../../../i 686-pc-mingw32/lib/libgcj.a(javax-xml.o):ccfIfzI6jx:(.text+0x4aa0): multiple def inition of `javax::xml::parsers::DocumentBuilderFactory::setIgnoringElementConte ntWhitespace(bool)' Piccolo.o:C:/temp/Piccolo.jar:(.text+0xc79da): first defined here c:/gcj/thisiscool-gcc/gcc-4.0/bin/../lib/gcc/i686-pc-mingw32/4.0.2/../../../../i 686-pc-mingw32/lib/libgcj.a(javax-xml.o):ccfIfzI6jx:(.text+0x4ac0): multiple def inition of `javax::xml::parsers::DocumentBuilderFactory::setExpandEntityReferenc es(bool)' Piccolo.o:C:/temp/Piccolo.jar:(.text+0xc7a12): first defined here c:/gcj/thisiscool-gcc/gcc-4.0/bin/../lib/gcc/i686-pc-mingw32/4.0.2/../../../../i 686-pc-mingw32/lib/libgcj.a(javax-xml.o):ccfIfzI6jx:(.text+0x4ae0): multiple def inition of `javax::xml::parsers::DocumentBuilderFactory::setIgnoringComments(boo l)' Piccolo.o:C:/temp/Piccolo.jar:(.text+0xc7a4a): first defined here c:/gcj/thisiscool-gcc/gcc-4.0/bin/../lib/gcc/i686-pc-mingw32/4.0.2/../../../../i 686-pc-mingw32/lib/libgcj.a(javax-xml.o):ccfIfzI6jx:(.text+0x4b00): multiple def inition of `javax::xml::parsers::DocumentBuilderFactory::setCoalescing(bool)' Piccolo.o:C:/temp/Piccolo.jar:(.text+0xc7a82): first defined here c:/gcj/thisiscool-gcc/gcc-4.0/bin/../lib/gcc/i686-pc-mingw32/4.0.2/../../../../i 686-pc-mingw32/lib/libgcj.a(javax-xml.o):ccfIfzI6jx:(.text+0x4b20): multiple def inition of `javax::xml::parsers::DocumentBuilderFactory::isNamespaceAware()' Piccolo.o:C:/temp/Piccolo.jar:(.text+0xc7aba): first defined here c:/gcj/thisiscool-gcc/gcc-4.0/bin/../lib/gcc/i686-pc-mingw32/4.0.2/../../../../i 686-pc-mingw32/lib/libgcj.a(javax-xml.o):ccfIfzI6jx:(.text+0x4b40): multiple def inition of `javax::xml::parsers::DocumentBuilderFactory::isValidating()' Piccolo.o:C:/temp/Piccolo.jar:(.text+0xc7ae4): first defined here c:/gcj/thisiscool-gcc/gcc-4.0/bin/../lib/gcc/i686-pc-mingw32/4.0.2/../../../../i 686-pc-mingw32/lib/libgcj.a(javax-xml.o):ccfIfzI6jx:(.text+0x4b60): multiple def inition of `javax::xml::parsers::DocumentBuilderFactory::isIgnoringElementConten tWhitespace()' Piccolo.o:C:/temp/Piccolo.jar:(.text+0xc7b0e): first defined here c:/gcj/thisiscool-gcc/gcc-4.0/bin/../lib/gcc/i686-pc-mingw32/4.0.2/../../../../i 686-pc-mingw32/lib/libgcj.a(javax-xml.o):ccfIfzI6jx:(.text+0x4b80): multiple def inition of `javax::xml::parsers::DocumentBuilderFactory::isExpandEntityReference s()' Piccolo.o:C:/temp/Piccolo.jar:(.text+0xc7b38): first defined here c:/gcj/thisiscool-gcc/gcc-4.0/bin/../lib/gcc/i686-pc-mingw32/4.0.2/../../../../i 686-pc-mingw32/lib/libgcj.a(javax-xml.o):ccfIfzI6jx:(.text+0x4ba0): multiple def inition of `javax::xml::parsers::DocumentBuilderFactory::isIgnoringComments()' Piccolo.o:C:/temp/Piccolo.jar:(.text+0xc7b62): first defined here c:/gcj/thisiscool-gcc/gcc-4.0/bin/../lib/gcc/i686-pc-mingw32/4.0.2/../../../../i 686-pc-mingw32/lib/libgcj.a(javax-xml.o):ccfIfzI6jx:(.text+0x4bc0): multiple def inition of `javax::xml::parsers::DocumentBuilderFactory::isCoalescing()' Piccolo.o:C:/temp/Piccolo.jar:(.text+0xc7b8c): first defined here c:/gcj/thisiscool-gcc/gcc-4.0/bin/../lib/gcc/i686-pc-mingw32/4.0.2/../../../../i 686-pc-mingw32/lib/libgcj.a(javax-xml.o):ccfIfzI6jx:(.text+0x4c50): multiple def inition of `javax::xml::parsers::DocumentBuilder::DocumentBuilder()' Piccolo.o:C:/temp/Piccolo.jar:(.text+0xc721a): first defined here c:/gcj/thisiscool-gcc/gcc-4.0/bin/../lib/gcc/i686-pc-mingw32/4.0.2/../../../../i 686-pc-mingw32/lib/libgcj.a(javax-xml.o):ccfIfzI6jx:(.text+0x4c70): multiple def inition of `javax::xml::parsers::DocumentBuilder::parse(java::io::InputStream*)' Piccolo.o:C:/temp/Piccolo.jar:(.text+0xc7234): first defined here c:/gcj/thisiscool-gcc/gcc-4.0/bin/../lib/gcc/i686-pc-mingw32/4.0.2/../../../../i 686-pc-mingw32/lib/libgcj.a(javax-xml.o):ccfIfzI6jx:(.text+0x4d00): multiple def inition of `javax::xml::parsers::DocumentBuilder::parse(java::io::InputStream*, java::lang::String*)' Piccolo.o:C:/temp/Piccolo.jar:(.text+0xc730e): first defined here c:/gcj/thisiscool-gcc/gcc-4.0/bin/../lib/gcc/i686-pc-mingw32/4.0.2/../../../../i 686-pc-mingw32/lib/libgcj.a(javax-xml.o):ccfIfzI6jx:(.text+0x4da0): multiple def inition of `javax::xml::parsers::DocumentBuilder::parse(java::lang::String*)' Piccolo.o:C:/temp/Piccolo.jar:(.text+0xc7420): first defined here c:/gcj/thisiscool-gcc/gcc-4.0/bin/../lib/gcc/i686-pc-mingw32/4.0.2/../../../../i 686-pc-mingw32/lib/libgcj.a(javax-xml.o):ccfIfzI6jx:(.text+0x4e30): multiple def inition of `javax::xml::parsers::DocumentBuilder::parse(java::io::File*)' Piccolo.o:C:/temp/Piccolo.jar:(.text+0xc74fa): first defined here c:/gcj/thisiscool-gcc/gcc-4.0/bin/../lib/gcc/i686-pc-mingw32/4.0.2/../../../../i 686-pc-mingw32/lib/libgcj.a(javax-xml.o):ccfIfzI6jx:(.data+0x4b40): multiple def inition of `javax::xml::parsers::SAXParserFactory::class$' Piccolo.o:C:/temp/Piccolo.jar:(.data+0xa4e0): first defined here c:/gcj/thisiscool-gcc/gcc-4.0/bin/../lib/gcc/i686-pc-mingw32/4.0.2/../../../../i 686-pc-mingw32/lib/libgcj.a(javax-xml.o):ccfIfzI6jx:(.data+0x5020): multiple def inition of `javax::xml::parsers::SAXParser::class$' Piccolo.o:C:/temp/Piccolo.jar:(.data+0xa2a0): first defined here c:/gcj/thisiscool-gcc/gcc-4.0/bin/../lib/gcc/i686-pc-mingw32/4.0.2/../../../../i 686-pc-mingw32/lib/libgcj.a(javax-xml.o):ccfIfzI6jx:(.data+0x5160): multiple def inition of `javax::xml::parsers::ParserConfigurationException::class$' Piccolo.o:C:/temp/Piccolo.jar:(.data+0x9f60): first defined here c:/gcj/thisiscool-gcc/gcc-4.0/bin/../lib/gcc/i686-pc-mingw32/4.0.2/../../../../i 686-pc-mingw32/lib/libgcj.a(javax-xml.o):ccfIfzI6jx:(.data+0x5340): multiple def inition of `javax::xml::parsers::FactoryConfigurationError::class$' Piccolo.o:C:/temp/Piccolo.jar:(.data+0x9720): first defined here c:/gcj/thisiscool-gcc/gcc-4.0/bin/../lib/gcc/i686-pc-mingw32/4.0.2/../../../../i 686-pc-mingw32/lib/libgcj.a(javax-xml.o):ccfIfzI6jx:(.data+0x5960): multiple def inition of `javax::xml::parsers::DocumentBuilderFactory::class$' Piccolo.o:C:/temp/Piccolo.jar:(.data+0x9580): first defined here c:/gcj/thisiscool-gcc/gcc-4.0/bin/../lib/gcc/i686-pc-mingw32/4.0.2/../../../../i 686-pc-mingw32/lib/libgcj.a(javax-xml.o):ccfIfzI6jx:(.data+0x5c80): multiple def inition of `javax::xml::parsers::DocumentBuilder::class$' Piccolo.o:C:/temp/Piccolo.jar:(.data+0x9260): first defined here C:\temp> __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com |
From: Marco T. <mt...@gm...> - 2006-09-05 17:41:47
|
M. Bashir Al-Noimi wrote: > Marco Trudel wrote: >> You have five possibilities (sorted to what I would do): >> 1. migrate your applications to SWT >> 2. extend swingWT so that it supports your needed classes >> 3. fix gcj to run the gnu classpath AWT/Swing classes on static windows >> executables (if you're on it, linux static is broken too and windows >> shared would be nice too ;-)) >> 4. bundle a jre with your application. ther're special setup tools for this >> 5. try excelsior JET (http://www.excelsior-usa.com/landing/jet-nc.html). >> It costs a lot and adds a huge runtime (even bigger than jre itself) >> >> I can't think of anything else you could do. If 4 and 5 isn't an option, >> I think you should do 2. I can't do 1 to 3 for you, because they're too >> time consuming. > Peace upon you again ... > > The solutions are so complicated for me :-P , cuz i've no time to focus > on re-compiling process i need to work at my to-do list, so can you give > me a name/names of program can bundle the jre for Windows and Linux (as > shown in 4 suggest) :-) . No, ask google... I never used any of them, so I don't remember names or websites. Just know that they're out there. Marco |
From: M. B. Al-N. <bas...@gm...> - 2006-09-05 17:19:10
|
Marco Trudel wrote: > You have five possibilities (sorted to what I would do): > 1. migrate your applications to SWT > 2. extend swingWT so that it supports your needed classes > 3. fix gcj to run the gnu classpath AWT/Swing classes on static windows > executables (if you're on it, linux static is broken too and windows > shared would be nice too ;-)) > 4. bundle a jre with your application. ther're special setup tools for this > 5. try excelsior JET (http://www.excelsior-usa.com/landing/jet-nc.html). > It costs a lot and adds a huge runtime (even bigger than jre itself) > > I can't think of anything else you could do. If 4 and 5 isn't an option, > I think you should do 2. I can't do 1 to 3 for you, because they're too > time consuming. Peace upon you again ... The solutions are so complicated for me :-P , cuz i've no time to focus on re-compiling process i need to work at my to-do list, so can you give me a name/names of program can bundle the jre for Windows and Linux (as shown in 4 suggest) :-) . Regards ... |
From: Marco T. <mt...@gm...> - 2006-09-05 16:48:58
|
Yeah, I had a problem like that... Try asking gcj...@li.... I'm shure someone there made it work already or knows the problem. Ah, yeah, search the bug database first. And try to add the missing the xerces library. That might work... Marco john sonal wrote: > I tried not specifying the SAX driver to see if JDOM > would just use the included SAX library. The program > compiles but when you run it, it throws a class not > found exception (looking for xerces libraries). This > is strange to me because the program wasn't compiled > with any xerces libraries. Maybe that's the JDOM > default. Either way, it's not finding the built-in > library :\ > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > javaCompiler-users mailing list > jav...@li... > https://lists.sourceforge.net/lists/listinfo/javacompiler-users > > |
From: Marco T. <mt...@gm...> - 2006-09-05 16:46:03
|
M. Bashir Al-Noimi wrote: > Marco Trudel wrote: >> Dude, completly encrypted website... Where's the dectrypt to english, >> german or - if it really has to be - french link? :-) >> > this not encrypted site it has windows-1256 encoding :-P > http://www.hali-sy.net/bashir/index.php?entry=entry060721-235826 :-) >> So you've an AWT or Swing application... Read the help: >> - Create managed AWT or Swing application project >> GCJ doesn't support AWT/Swing for all plattforms (only for Linux). With >> this kind of project, you can use it on all plattforms anyway. It >> internally maps AWT/Swing to SWT. >> >> But read this too: >> http://javacompiler.mtsystems.ch/frame_faq.html >> > i need to build native application >:o , can you try to build native > one by yourself .... please . > > i tried to make exe file from java application by using "launch4j" but > it's need JVM, can you help me to solve this problem cuz i cann't change > GUI library for all my projects from swing to SWT (although i love SWT > very much) :-! , cuz most of them are complicated, aUPM is simple > project so i started to re-compile it to test the performance... i need > help :-[ You have five possibilities (sorted to what I would do): 1. migrate your applications to SWT 2. extend swingWT so that it supports your needed classes 3. fix gcj to run the gnu classpath AWT/Swing classes on static windows executables (if you're on it, linux static is broken too and windows shared would be nice too ;-)) 4. bundle a jre with your application. ther're special setup tools for this 5. try excelsior JET (http://www.excelsior-usa.com/landing/jet-nc.html). It costs a lot and adds a huge runtime (even bigger than jre itself) I can't think of anything else you could do. If 4 and 5 isn't an option, I think you should do 2. I can't do 1 to 3 for you, because they're too time consuming. Marco |
From: john s. <kmk...@ya...> - 2006-09-05 16:40:52
|
I tried not specifying the SAX driver to see if JDOM would just use the included SAX library. The program compiles but when you run it, it throws a class not found exception (looking for xerces libraries). This is strange to me because the program wasn't compiled with any xerces libraries. Maybe that's the JDOM default. Either way, it's not finding the built-in library :\ __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com |
From: M. B. Al-N. <bas...@gm...> - 2006-09-05 16:23:13
|
Marco Trudel wrote: > Dude, completly encrypted website... Where's the dectrypt to english, > german or - if it really has to be - french link? :-) > this not encrypted site it has windows-1256 encoding :-P http://www.hali-sy.net/bashir/index.php?entry=entry060721-235826 > > So you've an AWT or Swing application... Read the help: > - Create managed AWT or Swing application project > GCJ doesn't support AWT/Swing for all plattforms (only for Linux). With > this kind of project, you can use it on all plattforms anyway. It > internally maps AWT/Swing to SWT. > > But read this too: > http://javacompiler.mtsystems.ch/frame_faq.html > i need to build native application >:o , can you try to build native one by yourself .... please . i tried to make exe file from java application by using "launch4j" but it's need JVM, can you help me to solve this problem cuz i cann't change GUI library for all my projects from swing to SWT (although i love SWT very much) :-! , cuz most of them are complicated, aUPM is simple project so i started to re-compile it to test the performance... i need help :-[ > Marco > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > javaCompiler-users mailing list > jav...@li... > https://lists.sourceforge.net/lists/listinfo/javacompiler-users > > |
From: Marco T. <mt...@gm...> - 2006-09-05 15:05:53
|
> i tried to compile this project : > > jar file : http://hali-sy.com/download/aUPM/Linux+Mac.zip > source file : http://hali-sy.com/download/aUPM/aUPM.zip > project page : > http://www.hali-sy.net/bashir/index.php?entry=entry060721-235826 Dude, completly encrypted website... Where's the dectrypt to english, german or - if it really has to be - french link? :-) > /creating MainWindow-win.exe > - processing aUPM.jar > - including icon > - main compilation step > - packing executable Good, windows worked... > creating MainWindow-lin > - processing aUPM.jar > - main compilation step > > C:\DOCUME~1\Besho\LOCALS~1\Temp\JavaCompilerTempobnsk8.out\org.eclipse.core.runtime_3.1.1.jar.o: > file not recognized: File format not recognized > collect2: ld returned 1 exit status Bad! Did you play around with the resources\jface-3.1.1 directory? Or did your replace the linux gcj? A solution would be to delete org.eclipse.core.runtime_3.1.1-lin.jar.o, then it will be recompiled. But this really shouldn't have come... > then when i tried to lunch the application this error message appeared > to me : > > ------------------------------------------------------------------------ > /Exception in thread "main" java.awt.AWTError: Cannot load AWT toolkit: > gnu.java.awt.peer.gtk.GtkToolkit > at java.awt.Toolkit.getDefaultToolkit(MainWindow-win.exe) > at java.awt.EventQueue.invokeLater(MainWindow-win.exe) > at javax.swing.SwingUtilities.invokeLater(MainWindow-win.exe) > > Caused by: java.lang.ClassNotFoundException: > gnu.java.awt.peer.gtk.GtkToolkit not found in > gnu.gcj.runtime.SystemClassLoader{urls=[file:.\], > parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}} > at java.lang.Class.forName(MainWindow-win.exe) > at java.awt.Toolkit.getDefaultToolkit(MainWindow-win.exe) > ...2 more/ > ------------------------------------------------------------------------ > > how i can make native app corrctly ? help me please cuz i've 10 projects > need re-compiling by JavaCompiler and they failed ! So you've an AWT or Swing application... Read the help: - Create managed AWT or Swing application project GCJ doesn't support AWT/Swing for all plattforms (only for Linux). With this kind of project, you can use it on all plattforms anyway. It internally maps AWT/Swing to SWT. But read this too: http://javacompiler.mtsystems.ch/frame_faq.html Marco |
From: M. B. Al-N. <bas...@gm...> - 2006-09-05 14:39:26
|
Peace upon you ... javacompiler folks : i tried to compile this project : jar file : http://hali-sy.com/download/aUPM/Linux+Mac.zip source file : http://hali-sy.com/download/aUPM/aUPM.zip project page : http://www.hali-sy.net/bashir/index.php?entry=entry060721-235826 javacompiler wizard appeared to me this log : ------------------------------------------------------------------------ /creating MainWindow-win.exe - processing aUPM.jar - including icon - main compilation step - packing executable creating MainWindow-lin - processing aUPM.jar - main compilation step C:\DOCUME~1\Besho\LOCALS~1\Temp\JavaCompilerTempobnsk8.out\org.eclipse.core.runtime_3.1.1.jar.o: file not recognized: File format not recognized collect2: ld returned 1 exit status failed.../ ------------------------------------------------------------------------ then when i tried to lunch the application this error message appeared to me : ------------------------------------------------------------------------ /Exception in thread "main" java.awt.AWTError: Cannot load AWT toolkit: gnu.java.awt.peer.gtk.GtkToolkit at java.awt.Toolkit.getDefaultToolkit(MainWindow-win.exe) at java.awt.EventQueue.invokeLater(MainWindow-win.exe) at javax.swing.SwingUtilities.invokeLater(MainWindow-win.exe) Caused by: java.lang.ClassNotFoundException: gnu.java.awt.peer.gtk.GtkToolkit not found in gnu.gcj.runtime.SystemClassLoader{urls=[file:.\], parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}} at java.lang.Class.forName(MainWindow-win.exe) at java.awt.Toolkit.getDefaultToolkit(MainWindow-win.exe) ...2 more/ ------------------------------------------------------------------------ how i can make native app corrctly ? help me please cuz i've 10 projects need re-compiling by JavaCompiler and they failed ! |
From: Marco T. <mt...@gm...> - 2006-09-05 06:32:06
|
Hello John If you say you get "already defined" errors, then all you have to do is remove the xml libraries you included because they're already there. You mustn't change you code because they're all mapped to the default java class hirarchy and naming... I had this problem once too but run into another once I removed my own xml libraries. So I reverted back to textfiles ;-) Actually, that was JavaCompiler itself (saving configurations...). I'm interested in this problem, so please let us know if it works for you... Marco john sonal wrote: > First of all, great job on this software. It's very > useful. I have one problem with it so far that I can't > figure out. I'm trying to use JDOM or DOM4J but I > can't > get either to recognize a valid SAX driver. Basically, > I'm unable to get any SAX-compatible parser to > compile. No xerces library will compile so I tried a > few other sax parsers but no luck with those either. I > get errors saying that several of the methods have > already been defined. So I looked around and found > some info saying that a sax parser (aelfred2?) was > built into the gjc core some time ago so I'm guessing > because I'm trying to compile another SAX parser, it's > throwing the "already defined" errors. I tried to use > the built in parser by using > "gnu.xml.aelfred2.SAXDriver" but JDOM said it couldn't > locate it. So, I'm at a loss. I only found one other > person that seems to be having the same problem and > nobody offered a solution. I'm hoping somebody here > does. > > thanks. > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > javaCompiler-users mailing list > jav...@li... > https://lists.sourceforge.net/lists/listinfo/javacompiler-users > > |
From: john s. <kmk...@ya...> - 2006-09-05 04:26:48
|
First of all, great job on this software. It's very useful. I have one problem with it so far that I can't figure out. I'm trying to use JDOM or DOM4J but I can't get either to recognize a valid SAX driver. Basically, I'm unable to get any SAX-compatible parser to compile. No xerces library will compile so I tried a few other sax parsers but no luck with those either. I get errors saying that several of the methods have already been defined. So I looked around and found some info saying that a sax parser (aelfred2?) was built into the gjc core some time ago so I'm guessing because I'm trying to compile another SAX parser, it's throwing the "already defined" errors. I tried to use the built in parser by using "gnu.xml.aelfred2.SAXDriver" but JDOM said it couldn't locate it. So, I'm at a loss. I only found one other person that seems to be having the same problem and nobody offered a solution. I'm hoping somebody here does. thanks. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com |
From: Marco T. <mt...@gm...> - 2006-09-03 08:05:30
|
Ewald Peiszer wrote: > Marco Trudel wrote: >> Actually, I wouldn't expect too much if it's more than a "hello world" >> swing application. AWT and Swing is not very advanced in gnu classpath >> and swingWT... > > Although I'm not new to Java programming in general I have neither > experience with "free" implementations of it nor with compiling to > native code. So I am a bit confused about your statement; > http://www.kaffe.org/~stuart/japi/htmlout/h-jdk14-classpath.html states > that swing and awt are implemented nearly 100 % in gnu classpath? Alright, thanks. Looks like I wasn't up to date with gnu classpath itself. In this case, the problem reduces from gnu classpath and GCJ to GCJ only. The main GCJ developpers are pretty much only interested in compiling java to shared executables on linux. Because there's no active windows maintainer, building shared windows executable is currently broken. Because no one ever looked into it, the gnu classpath AWT/Swing currently only works with shared executables on linux (static executables on linux won't work and noone ever tried gnu classpath AWT/Swing on windows). That leaves me no other option than use swingWT instead of the gnu classpath implementation... >> Anyway, this seems to be another problem. Can you create a simple >> failing class? Maybee the "0" in the package name is the problem... >> >> Have you tried to compile from the class files? > > I get this: > creating Cica-native-win.exe > - main compilation step > cica0/SevErweiterteEinstellungenDialog.java: In class > 'cica0.SevErweiterteEinstellungenDialog': > cica0/SevErweiterteEinstellungenDialog.java: In method > 'cica0.SevErweiterteEinstellungenDialog.jbInit()': > cica0/SevErweiterteEinstellungenDialog.java:51: error: verification > failed at PC=66: incompatible type on stack > cica0/SevErweiterteEinstellungenDialog.java:54: error: class > 'swingwtx.swing.BorderFactory' has no method named 'createEtchedBorder' > matching signature > '(Lswingwt/awt/Color;Lswingwt/awt/Color;)Ljavax/swing/border/Border;' > cica0/HauptEditDialog.java: In class 'cica0.HauptEditDialog': > cica0/HauptEditDialog.java: In method 'cica0.HauptEditDialog.jbInit()': > cica0/HauptEditDialog.java:74: error: verification failed at PC=26: > incompatible type on stack > cica0/HauptEditDialog.java:74: error: class > 'swingwtx.swing.BorderFactory' has no method named 'createEtchedBorder' > matching signature > '(Lswingwt/awt/Color;Lswingwt/awt/Color;)Ljavax/swing/border/Border;' > cica0/HauptEditDialog.java: In method > 'cica0.HauptEditDialog.sicherVerwerfen()': > cica0/HauptEditDialog.java:333: error: class > 'swingwtx.swing.JOptionPane' has no method named 'showConfirmDialog' > matching signature > '(Lswingwt/awt/Component;Ljava/lang/Object;Ljava/lang/String;II)I' > cica0/RichtigDialog.java: In class 'cica0.RichtigDialog': > cica0/RichtigDialog.java: In method > 'cica0.RichtigDialog.show(java.lang.String,java.lang.String)': > cica0/RichtigDialog.java:86: error: class 'swingwtx.swing.JButton' has > no method named 'requestFocusInWindow' matching signature '()Z' > cica0/HauptEditDialogTable.java: In class 'cica0.HauptEditDialogTable': > cica0/HauptEditDialogTable.java: In method > 'cica0.HauptEditDialogTable.prepareRenderer(javax.swing.table.TableCellRenderer,int,int)': > cica0/HauptEditDialogTable.java:28: warning: bad type in parameter > debug info > cica0/HauptEditDialogTable.java:28: error: class > 'swingwtx.swing.JTable' has no method named 'prepareRenderer' matching > signature '(Ljavax/swing/table/TableCellRenderer;II)Lswingwt/awt/Component;' > cica0/AbfrageDialog.java: In class 'cica0.AbfrageDialog': > cica0/AbfrageDialog.java: In method > 'cica0.AbfrageDialog.show(java.lang.String,java.lang.String)': > cica0/AbfrageDialog.java:177: error: class 'swingwtx.swing.JTextField' > has no method named 'requestFocusInWindow' matching signature '()Z' > cica0/MusterDialog.java: In class 'cica0.MusterDialog': > cica0/MusterDialog.java: In method > 'cica0.MusterDialog.actionPerformed(swingwt.awt.event.ActionEvent)': > cica0/MusterDialog.java:411: error: class 'swingwtx.swing.JOptionPane' > has no method named 'showMessageDialog' matching signature > '(Lswingwt/awt/Component;Ljava/lang/Object;)V' > cica0/MusterDialog.java:411: confused by earlier errors, bailing out > > failed... Yes, swingWT doesn't cover all you needs. I suggest to either work on swingWT (it's open source) or (what I prefer) change to SWT directly... Ah, and thanks for reporting the bug. Looks like my parsing of the package from source files has a bug. I'll investigate that... Marco |
From: Ewald P. <ewa...@gm...> - 2006-09-01 23:10:25
|
Marco Trudel wrote: > Actually, I wouldn't expect too much if it's more than a "hello world" > swing application. AWT and Swing is not very advanced in gnu classpath > and swingWT... Although I'm not new to Java programming in general I have neither experience with "free" implementations of it nor with compiling to native code. So I am a bit confused about your statement; http://www.kaffe.org/~stuart/japi/htmlout/h-jdk14-classpath.html states that swing and awt are implemented nearly 100 % in gnu classpath? > Anyway, this seems to be another problem. Can you create a simple > failing class? Maybee the "0" in the package name is the problem... > > Have you tried to compile from the class files? I get this: creating Cica-native-win.exe - main compilation step cica0/SevErweiterteEinstellungenDialog.java: In class 'cica0.SevErweiterteEinstellungenDialog': cica0/SevErweiterteEinstellungenDialog.java: In method 'cica0.SevErweiterteEinstellungenDialog.jbInit()': cica0/SevErweiterteEinstellungenDialog.java:51: error: verification failed at PC=66: incompatible type on stack cica0/SevErweiterteEinstellungenDialog.java:54: error: class 'swingwtx.swing.BorderFactory' has no method named 'createEtchedBorder' matching signature '(Lswingwt/awt/Color;Lswingwt/awt/Color;)Ljavax/swing/border/Border;' cica0/HauptEditDialog.java: In class 'cica0.HauptEditDialog': cica0/HauptEditDialog.java: In method 'cica0.HauptEditDialog.jbInit()': cica0/HauptEditDialog.java:74: error: verification failed at PC=26: incompatible type on stack cica0/HauptEditDialog.java:74: error: class 'swingwtx.swing.BorderFactory' has no method named 'createEtchedBorder' matching signature '(Lswingwt/awt/Color;Lswingwt/awt/Color;)Ljavax/swing/border/Border;' cica0/HauptEditDialog.java: In method 'cica0.HauptEditDialog.sicherVerwerfen()': cica0/HauptEditDialog.java:333: error: class 'swingwtx.swing.JOptionPane' has no method named 'showConfirmDialog' matching signature '(Lswingwt/awt/Component;Ljava/lang/Object;Ljava/lang/String;II)I' cica0/RichtigDialog.java: In class 'cica0.RichtigDialog': cica0/RichtigDialog.java: In method 'cica0.RichtigDialog.show(java.lang.String,java.lang.String)': cica0/RichtigDialog.java:86: error: class 'swingwtx.swing.JButton' has no method named 'requestFocusInWindow' matching signature '()Z' cica0/HauptEditDialogTable.java: In class 'cica0.HauptEditDialogTable': cica0/HauptEditDialogTable.java: In method 'cica0.HauptEditDialogTable.prepareRenderer(javax.swing.table.TableCellRenderer,int,int)': cica0/HauptEditDialogTable.java:28: warning: bad type in parameter debug info cica0/HauptEditDialogTable.java:28: error: class 'swingwtx.swing.JTable' has no method named 'prepareRenderer' matching signature '(Ljavax/swing/table/TableCellRenderer;II)Lswingwt/awt/Component;' cica0/AbfrageDialog.java: In class 'cica0.AbfrageDialog': cica0/AbfrageDialog.java: In method 'cica0.AbfrageDialog.show(java.lang.String,java.lang.String)': cica0/AbfrageDialog.java:177: error: class 'swingwtx.swing.JTextField' has no method named 'requestFocusInWindow' matching signature '()Z' cica0/MusterDialog.java: In class 'cica0.MusterDialog': cica0/MusterDialog.java: In method 'cica0.MusterDialog.actionPerformed(swingwt.awt.event.ActionEvent)': cica0/MusterDialog.java:411: error: class 'swingwtx.swing.JOptionPane' has no method named 'showMessageDialog' matching signature '(Lswingwt/awt/Component;Ljava/lang/Object;)V' cica0/MusterDialog.java:411: confused by earlier errors, bailing out failed... -------------------- There were similar errors which I could avoid by commenting out some method calls. It looks like some (quite a few actually) methods are just not implemented in SwingWT, just as you said before. Ewald |
From: Marco T. <mt...@gm...> - 2006-09-01 17:09:37
|
Actually, I wouldn't expect too much if it's more than a "hello world" swing application. AWT and Swing is not very advanced in gnu classpath and swingWT... Anyway, this seems to be another problem. Can you create a simple failing class? Maybee the "0" in the package name is the problem... Have you tried to compile from the class files? Ah, and by the way: Directories are recursively searched. So adding "dir=D:\Eigene_Dateien\cica0\src" is enough... Marco Ewald Peiszer wrote: > Hi, > > I tried JavaCompiler today first with a HelloWorld-Example (it worked) > then with a more complicated Swing-application I wrote in the last years. > > There was the error "Can't find default package 'cica0.languages'. Check > the CLASSPATH environment variable and the access to the archives." > > However, cica0.languages is my own subpackages, which I of course > included in the page 1/3 sources (source, not .class-files). > > --Here's the project file:-------------------- > projectType=ch.mtSystems.javaCompiler.model.projects.ManagedAwtSwingProject > dir=D:\Eigene_Dateien\cica0\src > dir=D:\Eigene_Dateien\cica0\src\cica0 > dir=D:\Eigene_Dateien\cica0\src\cica0\languages > mainClass=cica0.App#D:\Eigene_Dateien\cica0\src > outputDir=D:\Eigene_Dateien\cica0\native > outputName=Cica-native > java5Preprocessing=false > useJni=false > ignoreMissingReferences=false > omitWindows=false > omitLinux=true > omitStripping=false > omitPacking=true > iconFile=null > useIcon=false > hideConsole=false > beepWhenDone=true > --------------------------------------------- > > Do you have any ideas what could be the problem/solution here? Thanks. > > Thanks also in general for this application. > > regards > Ewald > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > javaCompiler-users mailing list > jav...@li... > https://lists.sourceforge.net/lists/listinfo/javacompiler-users > > |
From: Ewald P. <ewa...@gm...> - 2006-09-01 16:24:55
|
Hi, I tried JavaCompiler today first with a HelloWorld-Example (it worked) then with a more complicated Swing-application I wrote in the last years. There was the error "Can't find default package 'cica0.languages'. Check the CLASSPATH environment variable and the access to the archives." However, cica0.languages is my own subpackages, which I of course included in the page 1/3 sources (source, not .class-files). --Here's the project file:-------------------- projectType=ch.mtSystems.javaCompiler.model.projects.ManagedAwtSwingProject dir=D:\Eigene_Dateien\cica0\src dir=D:\Eigene_Dateien\cica0\src\cica0 dir=D:\Eigene_Dateien\cica0\src\cica0\languages mainClass=cica0.App#D:\Eigene_Dateien\cica0\src outputDir=D:\Eigene_Dateien\cica0\native outputName=Cica-native java5Preprocessing=false useJni=false ignoreMissingReferences=false omitWindows=false omitLinux=true omitStripping=false omitPacking=true iconFile=null useIcon=false hideConsole=false beepWhenDone=true --------------------------------------------- Do you have any ideas what could be the problem/solution here? Thanks. Thanks also in general for this application. regards Ewald |
From: Marco T. <mt...@gm...> - 2006-08-25 15:09:15
|
Hello Igor It works for me with JavaCompiler 0.8 on Windows with a textfile that has 3780 times the line "12.34 56.78". I uncomented the System.out.printlns and tried with 1000, 2000 and 3000. From your stacktrace, I assume you use an older version of JavaCompiler. Please update and try again. If you've the latest version and it (still) fails, please provide informations about your JavaCompiler settings, the OS and the textfile. It would be great if you could minimize the example that leads to the exception... regards Marco ext...@no... wrote: > Hello, > > I have a strange error using a program compiled with Java Compiler. My > code is quite easy and it should only read some data from a text file > which has two numbers on every line. The java code is: > > ------------------- > import java.io.FileReader; > import java.io.BufferedReader; > import java.util.StringTokenizer; > > public class ReadLines { > > public static void main(String[] args) { > double [] realInput = new double[new > Integer(args[1]).intValue()]; > double [] imaginaryInput = new double[new > Integer(args[1]).intValue()]; > > // Read the file > try { > FileReader fr = new FileReader(args[0]); > BufferedReader bf = new BufferedReader(fr); > > // Read the lines > for(int i=0;i<new Integer(args[1]).intValue();i++) { > // (1) System.out.println("i: " + i); > String value = new String(); > value = bf.readLine(); > StringTokenizer st = new StringTokenizer(value); > st.nextToken(); > // (2) System.out.println("Reading the value.."); > realInput[i] = new > Double(st.nextToken()).doubleValue(); > // (3) System.out.println("Value set: " + > realInput[i]); > imaginaryInput[i] = new Double(0).doubleValue(); > // (4) System.out.println("Zero set.."); > } > bf.close(); > fr.close(); > } catch(Exception e) { > e.printStackTrace(); > } > } > } > ------------------- > The program can be started with e.g. "ReadLines.exe data.txt 2000" which > means "read 2000 lines from data.txt" > If I start program from Eclipse, or jar, it works. > If I start exe made by JavaCompiler, I receive error message > "java.lang.NullPointerException <<No stacktrace available>>", but only > if the number of lines is above about 2000. For smaller line numbers it > works fine. > > BUT: if I uncomment the System.out.println - lines (which are numbered > in code as (1)-(4)), I receive no error messages and the program works > perfectly for line numbers above 2000!! > > Can you please help me and suggest the solution to this problem? > > Sincerely yours, > Igor Vatolkin > > PS I'm on vacation from the next Monday so maybe I will read the > answer(s) not until the mid of September! > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > > > ------------------------------------------------------------------------ > > _______________________________________________ > javaCompiler-users mailing list > jav...@li... > https://lists.sourceforge.net/lists/listinfo/javacompiler-users |
From: <ext...@no...> - 2006-08-25 13:30:30
|
Hello, I have a strange error using a program compiled with Java Compiler. My code is quite easy and it should only read some data from a text file which has two numbers on every line. The java code is: ------------------- import java.io.FileReader; import java.io.BufferedReader; import java.util.StringTokenizer; public class ReadLines { public static void main(String[] args) { double [] realInput =3D new double[new Integer(args[1]).intValue()]; double [] imaginaryInput =3D new double[new Integer(args[1]).intValue()]; =09 // Read the file try { FileReader fr =3D new FileReader(args[0]); BufferedReader bf =3D new BufferedReader(fr); =20 // Read the lines for(int i=3D0;i<new Integer(args[1]).intValue();i++) { // (1) System.out.println("i: " + i); String value =3D new String(); value =3D bf.readLine(); StringTokenizer st =3D new StringTokenizer(value); st.nextToken(); // (2) System.out.println("Reading the value.."); realInput[i] =3D new Double(st.nextToken()).doubleValue(); // (3) System.out.println("Value set: " + realInput[i]); imaginaryInput[i] =3D new Double(0).doubleValue(); // (4) System.out.println("Zero set.."); } bf.close(); fr.close(); } catch(Exception e) { e.printStackTrace(); } } } ------------------- The program can be started with e.g. "ReadLines.exe data.txt 2000" which means "read 2000 lines from data.txt" If I start program from Eclipse, or jar, it works. If I start exe made by JavaCompiler, I receive error message "java.lang.NullPointerException <<No stacktrace available>>", but only if the number of lines is above about 2000. For smaller line numbers it works fine. BUT: if I uncomment the System.out.println - lines (which are numbered in code as (1)-(4)), I receive no error messages and the program works perfectly for line numbers above 2000!! Can you please help me and suggest the solution to this problem? Sincerely yours, Igor Vatolkin PS I'm on vacation from the next Monday so maybe I will read the answer(s) not until the mid of September! |
From: Marco T. <mt...@gm...> - 2006-08-22 06:17:09
|
Hello Eric Eric Yoon wrote: > Oops. I used an absolute path when loading an icon for the shell. That > is why it did not work on the other computers. Something similar happened to me once too. I was also tempted to claim the executable, but it looks like I learnt from it and was able to help you pretty quickly :-) > This brings me another question. How do I set a relative path within > SWT? It did not work as it worked in Swing. > > I am sorry to ask a plain SWT question on javaCompiler mailing list. Yes, please do not ask SWT questions here. But when I'm already on it: Relative paths have nothing to do with the GUI framework. Thus this works equivalent in SWT as in Swing. I guess you assume a wrong current working directory. Try: System.out.println(new File(".")); > Thank you for your quick answer. It was a great help. You're welcome... Marco > On 8/21/06, *jav...@li... > <mailto:jav...@li...>* < > jav...@li... > <mailto:jav...@li...>> wrote: > > Send javaCompiler-users mailing list submissions to > jav...@li... > <mailto:jav...@li...> > > To subscribe or unsubscribe via the World Wide Web, visit > https://lists.sourceforge.net/lists/listinfo/javacompiler-users > or, via email, send a message with subject or body 'help' to > jav...@li... > <mailto:jav...@li...> > > You can reach the person managing the list at > jav...@li... > <mailto:jav...@li...> > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of javaCompiler-users digest..." > > > > Today's Topics: > > 1. Compiled executable file won't start on some computer. > (Eric Yoon) > 2. Re: Compiled executable file won't start on some computer. > (Marco Trudel) > > > > ---------- Forwarded message ---------- > From: "Eric Yoon" <bg...@gm... <mailto:bg...@gm...>> > To: jav...@li... > <mailto:jav...@li...> > Date: Mon, 21 Aug 2006 11:17:25 -0400 > Subject: [javaCompiler-users] Compiled executable file won't start > on some computer. > Hello, I am a novice Java user. > > I created a small program using SWT. > > I compiled it with javaCompiler. There was no error in compilation. > The compiled exe file worked fine on my computer. > > Now I copied the exe file and swt dll file to another computer; it > does not work. When I double click it, nothing happens. > > The difference, I can think of as the cause of the trouble, between > my computer and the troubling computer is > My computer has JDK and ecilpse installed > The troubling computer has JRE; no eclipse or JDK > > More weird thing is that another program, an old version actually, I > had written before this program runs on the troubling computer. > > What could cause a compiled program not to run on certain computers? > > I would be grateful to receive an answer. > > Thank you > > > Sincerely, > > > ---------- Forwarded message ---------- > From: Marco Trudel <mt...@gm... <mailto:mt...@gm...>> > To: "A mailing list for general questions and discussions." < > jav...@li... > <mailto:jav...@li...>> > Date: Mon, 21 Aug 2006 17:32:21 +0200 > Subject: Re: [javaCompiler-users] Compiled executable file won't > start on some computer. > Hello Eric > > It doesn't mather if the second computer has a JRE, JDK, eclipse or > whatever installed. None of them is used. > > To me, this sounds more like an application bug from your side. Have you > tried to enable the console and checked for any exceptions? > > > regards > Marco > > > Eric Yoon wrote: > > Hello, I am a novice Java user. > > > > I created a small program using SWT. > > > > I compiled it with javaCompiler. There was no error in > compilation. The > > compiled exe file worked fine on my computer. > > > > Now I copied the exe file and swt dll file to another computer; > it does > > not work. When I double click it, nothing happens. > > > > The difference, I can think of as the cause of the trouble, > between my > > computer and the troubling computer is > > My computer has JDK and ecilpse installed > > The troubling computer has JRE; no eclipse or JDK > > > > More weird thing is that another program, an old version > actually, I had > > written before this program runs on the troubling computer. > > > > What could cause a compiled program not to run on certain computers? > > > > I would be grateful to receive an answer. > > > > Thank you > > > > > > Sincerely, > > > > > > > ------------------------------------------------------------------------ > > > > > ------------------------------------------------------------------------- > > > Using Tomcat but need to do more? Need to support web services, > security? > > Get stuff done quickly with pre-integrated technology to make > your job easier > > Download IBM WebSphere Application Server v.1.0.1 based on Apache > Geronimo > > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > <http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642> > > > > > > > ------------------------------------------------------------------------ > > > > _______________________________________________ > > javaCompiler-users mailing list > > jav...@li... > <mailto:jav...@li...> > > https://lists.sourceforge.net/lists/listinfo/javacompiler-users > <https://lists.sourceforge.net/lists/listinfo/javacompiler-users> > > > > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, > security? > Get stuff done quickly with pre-integrated technology to make your > job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache > Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > <http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642> > > _______________________________________________ > javaCompiler-users mailing list > jav...@li... > <mailto:jav...@li...> > https://lists.sourceforge.net/lists/listinfo/javacompiler-users > <https://lists.sourceforge.net/lists/listinfo/javacompiler-users> > > > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > > > ------------------------------------------------------------------------ > > _______________________________________________ > javaCompiler-users mailing list > jav...@li... > https://lists.sourceforge.net/lists/listinfo/javacompiler-users |
From: Eric Y. <bg...@gm...> - 2006-08-22 02:54:14
|
Oops. I used an absolute path when loading an icon for the shell. That is why it did not work on the other computers. This brings me another question. How do I set a relative path within SWT? It did not work as it worked in Swing. I am sorry to ask a plain SWT question on javaCompiler mailing list. Thank you for your quick answer. It was a great help. On 8/21/06, jav...@li... < jav...@li...> wrote: > > Send javaCompiler-users mailing list submissions to > jav...@li... > > To subscribe or unsubscribe via the World Wide Web, visit > https://lists.sourceforge.net/lists/listinfo/javacompiler-users > or, via email, send a message with subject or body 'help' to > jav...@li... > > You can reach the person managing the list at > jav...@li... > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of javaCompiler-users digest..." > > > > Today's Topics: > > 1. Compiled executable file won't start on some computer. (Eric > Yoon) > 2. Re: Compiled executable file won't start on some computer. > (Marco Trudel) > > > > ---------- Forwarded message ---------- > From: "Eric Yoon" <bg...@gm...> > To: jav...@li... > Date: Mon, 21 Aug 2006 11:17:25 -0400 > Subject: [javaCompiler-users] Compiled executable file won't start on some > computer. > Hello, I am a novice Java user. > > I created a small program using SWT. > > I compiled it with javaCompiler. There was no error in compilation. The > compiled exe file worked fine on my computer. > > Now I copied the exe file and swt dll file to another computer; it does > not work. When I double click it, nothing happens. > > The difference, I can think of as the cause of the trouble, between my > computer and the troubling computer is > My computer has JDK and ecilpse installed > The troubling computer has JRE; no eclipse or JDK > > More weird thing is that another program, an old version actually, I had > written before this program runs on the troubling computer. > > What could cause a compiled program not to run on certain computers? > > I would be grateful to receive an answer. > > Thank you > > > Sincerely, > > > ---------- Forwarded message ---------- > From: Marco Trudel <mt...@gm...> > To: "A mailing list for general questions and discussions." < > jav...@li...> > Date: Mon, 21 Aug 2006 17:32:21 +0200 > Subject: Re: [javaCompiler-users] Compiled executable file won't start on > some computer. > Hello Eric > > It doesn't mather if the second computer has a JRE, JDK, eclipse or > whatever installed. None of them is used. > > To me, this sounds more like an application bug from your side. Have you > tried to enable the console and checked for any exceptions? > > > regards > Marco > > > Eric Yoon wrote: > > Hello, I am a novice Java user. > > > > I created a small program using SWT. > > > > I compiled it with javaCompiler. There was no error in compilation. The > > compiled exe file worked fine on my computer. > > > > Now I copied the exe file and swt dll file to another computer; it does > > not work. When I double click it, nothing happens. > > > > The difference, I can think of as the cause of the trouble, between my > > computer and the troubling computer is > > My computer has JDK and ecilpse installed > > The troubling computer has JRE; no eclipse or JDK > > > > More weird thing is that another program, an old version actually, I had > > written before this program runs on the troubling computer. > > > > What could cause a compiled program not to run on certain computers? > > > > I would be grateful to receive an answer. > > > > Thank you > > > > > > Sincerely, > > > > > > ------------------------------------------------------------------------ > > > > > ------------------------------------------------------------------------- > > Using Tomcat but need to do more? Need to support web services, > security? > > Get stuff done quickly with pre-integrated technology to make your job > easier > > Download IBM WebSphere Application Server v.1.0.1 based on Apache > Geronimo > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > > > > > > ------------------------------------------------------------------------ > > > > _______________________________________________ > > javaCompiler-users mailing list > > jav...@li... > > https://lists.sourceforge.net/lists/listinfo/javacompiler-users > > > > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > > _______________________________________________ > javaCompiler-users mailing list > jav...@li... > https://lists.sourceforge.net/lists/listinfo/javacompiler-users > > > |
From: Marco T. <mt...@gm...> - 2006-08-21 15:32:25
|
Hello Eric It doesn't mather if the second computer has a JRE, JDK, eclipse or whatever installed. None of them is used. To me, this sounds more like an application bug from your side. Have you tried to enable the console and checked for any exceptions? regards Marco Eric Yoon wrote: > Hello, I am a novice Java user. > > I created a small program using SWT. > > I compiled it with javaCompiler. There was no error in compilation. The > compiled exe file worked fine on my computer. > > Now I copied the exe file and swt dll file to another computer; it does > not work. When I double click it, nothing happens. > > The difference, I can think of as the cause of the trouble, between my > computer and the troubling computer is > My computer has JDK and ecilpse installed > The troubling computer has JRE; no eclipse or JDK > > More weird thing is that another program, an old version actually, I had > written before this program runs on the troubling computer. > > What could cause a compiled program not to run on certain computers? > > I would be grateful to receive an answer. > > Thank you > > > Sincerely, > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > > > ------------------------------------------------------------------------ > > _______________________________________________ > javaCompiler-users mailing list > jav...@li... > https://lists.sourceforge.net/lists/listinfo/javacompiler-users |
From: Eric Y. <bg...@gm...> - 2006-08-21 15:17:28
|
Hello, I am a novice Java user. I created a small program using SWT. I compiled it with javaCompiler. There was no error in compilation. The compiled exe file worked fine on my computer. Now I copied the exe file and swt dll file to another computer; it does not work. When I double click it, nothing happens. The difference, I can think of as the cause of the trouble, between my computer and the troubling computer is My computer has JDK and ecilpse installed The troubling computer has JRE; no eclipse or JDK More weird thing is that another program, an old version actually, I had written before this program runs on the troubling computer. What could cause a compiled program not to run on certain computers? I would be grateful to receive an answer. Thank you Sincerely, |
From: Marco T. <mt...@gm...> - 2006-08-20 17:08:25
|
Hello Stephen Stephen Longhust wrote: > Hi Marco, > > Thanks for the really quick reply, I appreciate all the good advice. > >> First of all, AWT and Swing is not ready for real applications. There >> are two possibilities for it right now: >> - swingWT; it maps AWT and Swing to SWT. A lot is still missing here >> until it's complete... But it's open source, you can enhance it to >> support all your needed stuff. > > This is a possibility. When I extracted the classes from my jar and > ran javaCompiler, I received some error messages at the compilation > stage relating to missing methods. One example was > BufferedImage.getRGB. It looks like the swingWT code doesn't yet > support all the things my graphics code uses. Yes, thats the problem. If you have the possibility to change to SWT directly or use an external library, I'd suggest to do so. I write all my GUI programs in SWT ;-) It is faster, looks better and can be natively compiled withhout any problems... > If I were to add the > necessary code to swingWT, would it be easy to then use this with > javaCompiler again? Would it just be a case of updating > swingwt-all.jar and swingwt-win.jar.o and swingwt-lin.jar.o? exactly... >> - AWT/Swing from gnu classpath (used by gcj). On linux it works only for >> shared applications, not for static. On windows it doesn't work at all. >> >> swingWT is currently the better choice... If you create a managed AWT or >> Swing project, this will be used. If you create a unmanaged project, the >> classpath AWT/Swing classes will be used (but because javaCompiler only >> creates static applications, this will fail anyway). > > So basically, using AWT/Swing from gnu classpath won't work at all > with javaCompiler at the moment, on Windows or Linux? On windows it doesn't work at all (or at least, no one tried so far). I was going to try that, but when I realized that it works only on shared exectuables on linux, I gave up completly. The first problem is, that there is no active windows maintainer for gcj. The second problem is, that the main gcj developpers are not really interested in static compilation of executables... regards Marco |
From: Stephen L. <lon...@gm...> - 2006-08-20 16:43:16
|
Hi Marco, Thanks for the really quick reply, I appreciate all the good advice. > First of all, AWT and Swing is not ready for real applications. There > are two possibilities for it right now: > - swingWT; it maps AWT and Swing to SWT. A lot is still missing here > until it's complete... But it's open source, you can enhance it to > support all your needed stuff. This is a possibility. When I extracted the classes from my jar and ran javaCompiler, I received some error messages at the compilation stage relating to missing methods. One example was BufferedImage.getRGB. It looks like the swingWT code doesn't yet support all the things my graphics code uses. If I were to add the necessary code to swingWT, would it be easy to then use this with javaCompiler again? Would it just be a case of updating swingwt-all.jar and swingwt-win.jar.o and swingwt-lin.jar.o? > - AWT/Swing from gnu classpath (used by gcj). On linux it works only for > shared applications, not for static. On windows it doesn't work at all. > > swingWT is currently the better choice... If you create a managed AWT or > Swing project, this will be used. If you create a unmanaged project, the > classpath AWT/Swing classes will be used (but because javaCompiler only > creates static applications, this will fail anyway). So basically, using AWT/Swing from gnu classpath won't work at all with javaCompiler at the moment, on Windows or Linux? > Now, after that intro, lets take a look at your problem: > > > I tried it out an a game I've written in Java, that uses the > > java.awt.Graphics2D stuff fairly heavily, along with BufferedImage > > objects, but no AWT widgets or anything. > > Ok, then you might use external libraries to bypass the current > AWT/Swing problems... This was something I am seriously thinking of doing. I need to re-factor my code so that the screen rendering, resource loading and user input are abstracted away from any specific system. This should be pretty easy actually. If I then switched to SWT directly, that would hopefully give me a better chance of getting something compiled natively. > > > After building a windows .exe from my jar file (thats classes, not > > source), I get the following error when running it: > > > > Exception in thread "main" java.awt.AWTError: Cannot load AWT toolkit: > > gnu.java.awt.peer.gtk.GtkToolkit > > at java.awt.Toolkit.getDefaultToolkit(game-win.exe) > > at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment > > (game-win.exe) > > at java.awt.Window.<init>(game-win.exe) > > at java.awt.Frame.<init>(game-win.exe) > > at java.awt.Frame.<init>(game-win.exe) > > at com.longsteve.GameFrame.<init>(game-win.exe ) > > at com.longsteve.Game(game-win.exe) > > Caused by: java.lang.ClassNotFoundException: > > gnu.java.awt.peer.gtk.GtkToolkit not found in > > gnu.gcj.runtime.SystemClassLoader{urls=[file:.\], > > parent=gnu.gcj.runtime.ExtensionClassLoader{urls= [], parent=null}} > > at java.lang.Class.forName(game-win.exe) > > at java.awt.Toolkit.getDefaultToolkit(game-win.exe) > > ...6 more > > That's the error message when using AWT/Swing from gnu classpath. Even > on a simple hello world programm that uses java.awt.Dimension, the whole > AWT toolkit will be loaded (what fails with this message)... > > > I used "Managed AWT or Swing project" to start with. > > Shure? That would mean that my adaptions of the classes fail on some > points and gnu classpath is used instead of swingWT... > Or did you use a jar? Classes in a jar are not preprocessed for swingWT... I did use a jar as input, yes. > If you used a jar, unpack your classes and try with them. With luck, > swingWT covers all your requirements. After unpacking my jar, the compilation step now gives errors. It looks like there are parts of the JDK 1.5 AWT/Swing API that are not yet implemented. The first errors I get are that swingwt.awt.image.ComponentColorModel is missing, then swingwt.awt.image.BufferedImage is missing various methods, including a constructor I use, and the getRGB method. There will probably be more if I got the compilation past these. > If you used classes directly, please use the source and try again. If it > works, I'd be interested in the class that wasn't adapted for swingWT. > Maybe you can find it... I think your adaptations are working correctly, but that swingWT does not yet implement enough of the API that my code needs. This is all very promising. I think I will re-factor my code so that it can use SWT directly first, then re-attempt to get a natively compiled version running with javaCompiler. Thanks very much for your time, Steve |
From: Marco T. <mt...@gm...> - 2006-08-20 11:52:51
|
Hello Stephen First of all, AWT and Swing is not ready for real applications. There are two possibilities for it right now: - swingWT; it maps AWT and Swing to SWT. A lot is still missing here until it's complete... But it's open source, you can enhance it to support all your needed stuff. - AWT/Swing from gnu classpath (used by gcj). On linux it works only for shared applications, not for static. On windows it doesn't work at all. swingWT is currently the better choice... If you create a managed AWT or Swing project, this will be used. If you create a unmanaged project, the classpath AWT/Swing classes will be used (but because javaCompiler only creates static applications, this will fail anyway). Now, after that intro, lets take a look at your problem: > I tried it out an a game I've written in Java, that uses the > java.awt.Graphics2D stuff fairly heavily, along with BufferedImage > objects, but no AWT widgets or anything. Ok, then you might use external libraries to bypass the current AWT/Swing problems... > After building a windows .exe from my jar file (thats classes, not > source), I get the following error when running it: > > Exception in thread "main" java.awt.AWTError: Cannot load AWT toolkit: > gnu.java.awt.peer.gtk.GtkToolkit > at java.awt.Toolkit.getDefaultToolkit(game-win.exe) > at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment > (game-win.exe) > at java.awt.Window.<init>(game-win.exe) > at java.awt.Frame.<init>(game-win.exe) > at java.awt.Frame.<init>(game-win.exe) > at com.longsteve.GameFrame.<init>(game-win.exe ) > at com.longsteve.Game(game-win.exe) > Caused by: java.lang.ClassNotFoundException: > gnu.java.awt.peer.gtk.GtkToolkit not found in > gnu.gcj.runtime.SystemClassLoader{urls=[file:.\], > parent=gnu.gcj.runtime.ExtensionClassLoader{urls= [], parent=null}} > at java.lang.Class.forName(game-win.exe) > at java.awt.Toolkit.getDefaultToolkit(game-win.exe) > ...6 more That's the error message when using AWT/Swing from gnu classpath. Even on a simple hello world programm that uses java.awt.Dimension, the whole AWT toolkit will be loaded (what fails with this message)... > I used "Managed AWT or Swing project" to start with. Shure? That would mean that my adaptions of the classes fail on some points and gnu classpath is used instead of swingWT... Or did you use a jar? Classes in a jar are not preprocessed for swingWT... If you used a jar, unpack your classes and try with them. With luck, swingWT covers all your requirements. If you used classes directly, please use the source and try again. If it works, I'd be interested in the class that wasn't adapted for swingWT. Maybe you can find it... regards Marco |