Apache OpenOffice (AOO) Bugzilla – Issue 57284
gcj4 build fails in xmerge Can't find method importNode
Last modified: 2007-06-27 04:50:16 UTC
A workaround is to put the libgcj.jar into the classpath within source/xmerge/build.xml In my case the jar is /usr/share/java/libgcj-4.0.3.jar so I suppose ideally this should be detected by configure. /usr/local/bin/gij -Dgnu.gcj.precompiled.db.path=/home/jim/ooo680/solver/680/unxlngs.pro/lib/openoffice.org.gcjdb --classpath .:../../unxlngs.pro/class:/home/jim/JMF-2.1.1e/lib/jmf.jar:/home/jim/JMF-2.1.1e/lib/mediaplayer.jar:/home/jim/JMF-2.1.1e/lib/multiplayer.jar:/home/jim/JMF-2.1.1e/lib/customizer.jar/usr/local/apache-ant-1.6.5/lib/xercesImpl.jar:/usr/local/apache-ant-1.6.5/lib/ant-launcher.jar:/usr/local/apache-ant-1.6.5/lib/ant.jar -Dant.home=/usr/local/apache-ant-1.6.5 org.apache.tools.ant.Main -Dbuild.compiler=gcj -Dprj=../.. -Dprjname= -Ddebug=off -Doptimize=on -Dtarget=xmerge -Dsolar.update=on -Dout=../../unxlngs.pro -Dinpath=unxlngs.pro -Dproext=".pro" -Dsolar.bin=/home/jim/ooo680/solver/680/unxlngs.pro/bin -Dsolar.jar=/home/jim/ooo680/solver/680/unxlngs.pro/bin -Dsolar.doc=/home/jim/ooo680/solver/680/unxlngs.pro/doc -Dcommon.jar=/home/jim/ooo680/solver/680/common.pro/bin -Dcommon.doc=/home/jim/ooo680/solver/680/common.pro/doc -f build.xml -emacs Buildfile: build.xml init: compile: Compiling 96 source files to /home/jim/ooo680/xmerge/unxlngs.pro/class/xmerge /home/jim/ooo680/xmerge/source/xmerge/java/org/openoffice/xmerge/converter/xml/OfficeDocument.java: In class 'org.openoffice.xmerge.converter.xml.OfficeDocument': /home/jim/ooo680/xmerge/source/xmerge/java/org/openoffice/xmerge/converter/xml/OfficeDocument.java: In method 'org.openoffice.xmerge.converter.xml.OfficeDocument.read(java.io.InputStream,boolean)': /home/jim/ooo680/xmerge/source/xmerge/java/org/openoffice/xmerge/converter/xml/OfficeDocument.java:581: error: Can't find method 'importNode(Lorg/w3c/dom/Node;Z)' in type 'org.w3c.dom.Document'. tmpNode = contentDoc.importNode(nodeList.item(0),true); <snip> 20 errors
For me, the attached patch seems to work. [Though I think those lines should go to settings.mk ]
Created attachment 31165 [details] Patch
That patch does not help me :( I will attach my jar files list...
Created attachment 31168 [details] list of jar in solver
Some ideas here: http://lists.ximian.com/pipermail/openoffice/2005-November/001313.html
This will be solved by issue 58308, see: http://lists.ximian.com/pipermail/openoffice/2005-November/001314.html *** This issue has been marked as a duplicate of 58308 ***
close issue.