This is the mail archive of the java-prs@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug java/19882] New: fail to create shared lib from jar - 2 instances, xerces and log4


I am trying to compile a java application that is made up of several external
jars (xerces, log4j and others) plus some internally developed. Since I can't
compile with jars in the command line (bug 14212) I decided to create shared
libraries from some of the jars. I picked xerces_2_5_0 and used the following
command line:


drwx------  23 acuser acuser   4096 Feb 10 15:22 ..
drwxr-xr-x   2 acuser acuser   4096 Feb  9 16:16 data
drwxr-xr-x   6 acuser acuser   4096 Feb  9 16:16 docs
-rw-r--r--   1 acuser acuser   2698 Jul 31  2003 LICENSE
-rw-r--r--   1 acuser acuser   5345 Jul 31  2003 LICENSE-DOM.html
-rw-r--r--   1 acuser acuser    419 Jul 31  2003 LICENSE-SAX.html
-rw-r--r--   1 acuser acuser    814 Jul 31  2003 Readme.html
drwxr-xr-x   8 acuser acuser   4096 Jul 31  2003 samples
-rw-r--r--   1 acuser acuser 927669 Jul 31  2003 xercesImpl.jar
-rw-r--r--   1 acuser acuser 121686 Jul 31  2003 xercesSamples.jar
-rw-r--r--   1 acuser acuser 123705 Jul 31  2003 xml-apis.jar
-rw-r--r--   1 acuser acuser 123705 Jul 31  2003 xmlParserAPIs.jar
[acuser@fedora xerces-2_5_0]$ gcj -shared -o xerces.so  *.jar
org/apache/xerces/util/DOMUtil.java: In class `org.apache.xerces.util.DOMUtil':
org/apache/xerces/util/DOMUtil.java: In method
`org.apache.xerces.util.DOMUtil.copyInto(org.w3c.dom.Node,org.w3c.dom.Node)':
org/apache/xerces/util/DOMUtil.java:0: error: cannot find file for class
org.w3c.dom.events.EventTarget
org/apache/xerces/util/DOMUtil.java:0: error: cannot find file for class
org.w3c.dom.events.DocumentEvent
org/apache/xerces/util/DOMUtil.java:0: error: cannot find file for class
org.w3c.dom.events.DocumentEvent
org/apache/xerces/util/DOMUtil.java:0: confused by earlier errors, bailing out
[acuser@fedora xerces-2_5_0]$

I did the same with log4j with same results.

[acuser@fedora lib]$ ls
log4j-1.2.9.jar
[acuser@fedora lib]$ cc -o shared
[acuser@fedora lib]$ gcj
gcj: no input files
[acuser@fedora lib]$ gcj --shared -o log4j.so *jar
org/apache/log4j/chainsaw/LoadXMLAction.java: In class
`org.apache.log4j.chainsaw.LoadXMLAction':
org/apache/log4j/chainsaw/LoadXMLAction.java: In constructor
`(javax.swing.JFrame,org.apache.log4j.chainsaw.MyTableModel)':
org/apache/log4j/chainsaw/LoadXMLAction.java:43: error: cannot find file for
class javax.xml.parsers.SAXParserFactory
org/apache/log4j/chainsaw/LoadXMLAction.java:43: error: cannot find file for
class javax.xml.parsers.SAXParserFactory
org/apache/log4j/chainsaw/LoadXMLAction.java:43: error: cannot find file for
class javax.xml.parsers.SAXParser
org/apache/log4j/chainsaw/LoadXMLAction.java:68: error: cannot find file for
class javax.xml.parsers.SAXParserFactory
org/apache/log4j/chainsaw/LoadXMLAction.java:68: confused by earlier errors,
bailing out

-- 
           Summary: fail to create shared lib from jar - 2 instances, xerces
                    and log4
           Product: gcc
           Version: 3.4.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: java
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: delarosa at ilstechnology dot com
                CC: gcc-bugs at gcc dot gnu dot org,java-prs at gcc dot gnu
                    dot org


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


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