From: Sascha H. <ma...@sa...> - 2006-08-02 12:33:57
|
Frusty, problem solved - although I didn't find the troublemaker. I tried it with my installed jdk1.5.0_04 and it worked right away. I then downloaded and installed a fresh jdk1.5.0_07 and it also worked. Something seems to be wrong with my jdk1.5.0_06 installation. So ... false alarm, sorry for that :) Sascha Sascha Haeberling wrote: > Frusty, > > I was using Ant 1.6.2 but after you mail updated to 1.6.5. The two > warnings at the beginning are gone now, but the error persists.=20 > Furthermore I'm using jdk1.5.0_06 (directly from sun). Haven't > updated to 07 yet, but I think this has nothing to do with this > problem. It used to work in the past on this machine. > > I am working with ant on other projects and it still works fine. But > the ant-scripts I use there are not that "fancy". Just basic javac > command with some depended libraries. > > Sascha > > > > Wolfgang Korn wrote: >> Sascha, >> >> which version of Ant and JDK do you use? Came your JDK bundled with yo= u Linux distribution or did you intall it yourself? If you use a bundled = JDK, install a fresh JDK in another place and try to use that. Have you b= een able to use the ant scripts with this combination of Ant and JDK befo= re? I'm wondering, where this weird message "/usr/bin/build-classpath: er= ror: could not find xml-commons-apis Java extension for this JVM" at the = beginning of this log comes from. This problem does not really look like = a problem caused by the ant scripts but more like a general installation = issue. Have you tried to write a minimal ant script which uses javac and = run this script using ant? I did not encounter any problems on any of my = machines. >> >> -- Frusty >> >> >> >> =20 >>> -----Urspr=FCngliche Nachricht----- >>> Von: XML11 Developer List <xml...@li...> >>> Gesendet: 02.08.06 11:54:06 >>> An: XML11 Mailinglist <xml...@li...> >>> Betreff: [XML11-devel] Linux antscript problem >>> =20 >> >> Hi everybody, >> =20 >>> yesterday I tested all the demos on my Linux machine. Everything work= s >>> like a charm. And this after these huge changes: Really great work!! >>> After testing everything out of eclipse I wanted to test the ant >>> scripts, but something goes wrong here. Attached you find the log. >>> JAVA_HOME is set correctly. >>> Also rt.jar and tools.jar are at the places the ant script thinks the= y >>> are. So I don't know what's going wrong here. >>> >>> >>> Sascha >>> >>> >>> /usr/bin/build-classpath: >>> error: could not find xml-commons-apis Java extension for this JVM >>> /usr/bin/build-classpath: error: All specified jars were not found >>> Buildfile: build.xml >>> Skipped already imported file: >>> /home/nebuchadneza/development/XML11/targets/init-targets.xml >>> Skipped already imported file: >>> /home/nebuchadneza/development/XML11/targets/init-targets.xml >>> Skipped already imported file: >>> /home/nebuchadneza/development/XML11/targets/core-targets.xml >>> Skipped already imported file: >>> /home/nebuchadneza/development/XML11/targets/init-targets.xml >>> Skipped already imported file: >>> /home/nebuchadneza/development/XML11/targets/core-targets.xml >>> Skipped already imported file: >>> /home/nebuchadneza/development/XML11/targets/demo-targets.xml >>> Skipped already imported file: >>> /home/nebuchadneza/development/XML11/targets/init-targets.xml >>> Skipped already imported file: >>> /home/nebuchadneza/development/XML11/targets/core-targets.xml >>> Skipped already imported file: >>> /home/nebuchadneza/development/XML11/targets/init-targets.xml >>> >>> read-userprops: >>> >>> read-commonprops: >>> [echo] Reading properties from build.properties >>> >>> read-props: >>> >>> check-env: >>> >>> init: >>> [echo] Using rt.jar from /opt/jdk1.5.0_06/jre/lib >>> [echo] Using tools.jar from /opt/jdk1.5.0_06/jre/../lib >>> >>> init-core: >>> [mkdir] Created dir: >>> /home/nebuchadneza/development/XML11/classes/core >>> >>> compile-core: >>> [javac] Compiling 27 source files to >>> /home/nebuchadneza/development/XML11/classes/core >>> >>> BUILD FAILED >>> /home/nebuchadneza/development/XML11/targets/core-targets.xml:27: >>> Unable to find a javac compiler; >>> com.sun.tools.javac.Main is not on the classpath. >>> Perhaps JAVA_HOME does not point to the JDK >>> >>> >>> ----------------------------------------------------------------- >>> ---------------------------------------------------------------------= ---- >>> Take Surveys. Earn Cash. Influence the Future of IT >>> Join SourceForge.net's Techsay panel and you'll get the chance to sha= re your >>> opinions on IT & business topics through brief surveys -- and earn ca= sh >>> http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CI= D=3DDEVDEV >>> >>> ----------------------------------------------------------------- >>> _______________________________________________ >>> XML11-devel mailing list >>> XML...@li... >>> https://lists.sourceforge.net/lists/listinfo/xml11-devel >>> >>> =20 >> >> >> _____________________________________________________________________ >> Der WEB.DE SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! >> http://smartsurfer.web.de/?mc=3D100071&distributionid=3D000000000071 >> >> >> ----------------------------------------------------------------------= --- >> Take Surveys. Earn Cash. Influence the Future of IT >> Join SourceForge.net's Techsay panel and you'll get the chance to shar= e your >> opinions on IT & business topics through brief surveys -- and earn cas= h >> http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID= =3DDEVDEV >> _______________________________________________ >> XML11-devel mailing list >> XML...@li... >> https://lists.sourceforge.net/lists/listinfo/xml11-devel >> >> >> =20 > > -----------------------------------------------------------------------= - > > -----------------------------------------------------------------------= -- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share= your > opinions on IT & business topics through brief surveys -- and earn cash > http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3D= DEVDEV > -----------------------------------------------------------------------= - > > _______________________________________________ > XML11-devel mailing list > XML...@li... > https://lists.sourceforge.net/lists/listinfo/xml11-devel > =20 |