[Bug java/16653] incompatible type on stack

rmathew at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Thu Jul 22 10:43:00 GMT 2004


------- Additional Comments From rmathew at gcc dot gnu dot org  2004-07-22 10:43 -------
(In reply to comment #10)
> Based on my last reply ... I couldn't find the XML11Configuration file.
> With the new downloaded copy of xerces-j-2.6.2. I managed to perform the jcf-
> dump (file: jcf-dump-xercesImpl-output.txt). However, it failed during 
> compilation (e.g. gcj -c xercesImpl.jar) and the error can be found in 
> file 'gcj-xercesImpl-output.txt).

It's not able to find the indicated class - I guess the other JAR
needs to be in the CLASSPATH while you compile this JAR.

However, you should not use the "-c" option to compile a JAR.
Doesn't (for example):

  gcj --main=Main Main.java xercesImpl.jar xmlParserAPIs.jar

work for you?

If you do want to compile xercesImpl.jar into a native library,
the proper invocation would be something like:

  gcj -shared -fPIC --classpath xmlParserAPIs.jar \
    -o lib-org-apache-xerces.so

Then you can use this library just as you would any normal
shared library like so:

  gcj --main=Main Main.java -l-org-apache-xerces

However, the easiest way out for you would be to
just use the Xerces2-J packages available with
RHUG:

  http://sources.redhat.com/rhug/


> 
> The mentioned two output files will be forwarded to you in separated 
> email...again I failed to attached them from here...
> 



-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16653



More information about the Gcc-bugs mailing list