Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#3790 Build failure on Mac OS X 10.8

closed-works-for-me
Alan Ezust
5
2013-10-07
2013-03-19
Marco Hunsicker
No

I cannot build the current trunk on Mac OS X 10.8. On my Linux box, I have no problems. Both system use Ant 1.8.2. Can anybody confirm? Is Mac OS X no supported build platform?

Here is the build output for "ant build":

Buildfile: /Users/john/jedit/build.xml

init:
[echo] Buildfile for jedit (/Users/john/jedit/build.xml)

check-ivy:

download-ivy:

init-ivy:

retrieve:
[ivy:retrieve] :: Ivy 2.2.0 - 20100923230623 :: http://ant.apache.org/ivy/ ::
[ivy:retrieve] :: loading settings :: file = /Users/john/jedit/ivysettings.xml
[ivy:retrieve] :: resolving dependencies :: org.jedit#jedit;working@localhost
[ivy:retrieve] confs: [default, master, compile, runtime, test, provided, sources, javadoc, ant-contrib, docbook, fop, jarbundler, launch4j, scripting, default-plugins]
[ivy:retrieve] found com.google.code.findbugs#jsr305;2.0.0 in public
[ivy:retrieve] found junit#junit-dep;4.10 in public
[ivy:retrieve] found org.hamcrest#hamcrest-core;1.1 in public
[ivy:retrieve] found org.hamcrest#hamcrest-library;1.2.1 in public
[ivy:retrieve] found org.hamcrest#hamcrest-core;1.2.1 in public
[ivy:retrieve] found ant-contrib#ant-contrib;1.0b3 in public
[ivy:retrieve] found ant#ant;1.5 in public
[ivy:retrieve] found saxon#saxon;6.5.3 in public
[ivy:retrieve] found net.sf.docbook#docbook-xsl;1.76.1 in public
[ivy:retrieve] found net.sf.docbook#docbook-xsl-saxon;1.0.0 in public
[ivy:retrieve] found xerces#xercesImpl;2.10.0 in public
[ivy:retrieve] found xml-apis#xml-apis;1.4.01 in public
[ivy:retrieve] found org.apache.xmlgraphics#fop;1.0 in public
[ivy:retrieve] found org.apache.xmlgraphics#xmlgraphics-commons;1.4 in public
[ivy:retrieve] found commons-io#commons-io;1.3.1 in public
[ivy:retrieve] found commons-logging#commons-logging;1.0.4 in public
[ivy:retrieve] found org.apache.xmlgraphics#batik-svg-dom;1.7 in public
[ivy:retrieve] found org.apache.xmlgraphics#batik-anim;1.7 in public
[ivy:retrieve] found org.apache.xmlgraphics#batik-awt-util;1.7 in public
[ivy:retrieve] found org.apache.xmlgraphics#batik-util;1.7 in public
[ivy:retrieve] found org.apache.xmlgraphics#batik-dom;1.7 in public
[ivy:retrieve] found org.apache.xmlgraphics#batik-css;1.7 in public
[ivy:retrieve] found org.apache.xmlgraphics#batik-ext;1.7 in public
[ivy:retrieve] found xml-apis#xml-apis;1.3.04 in public
[ivy:retrieve] found xml-apis#xml-apis-ext;1.3.04 in public
[ivy:retrieve] found org.apache.xmlgraphics#batik-xml;1.7 in public
[ivy:retrieve] found xalan#xalan;2.6.0 in public
[ivy:retrieve] found org.apache.xmlgraphics#batik-parser;1.7 in public
[ivy:retrieve] found org.apache.xmlgraphics#batik-bridge;1.7 in public
[ivy:retrieve] found org.apache.xmlgraphics#batik-gvt;1.7 in public
[ivy:retrieve] found org.apache.xmlgraphics#batik-script;1.7 in public
[ivy:retrieve] found org.apache.xmlgraphics#batik-js;1.7 in public
[ivy:retrieve] found org.apache.xmlgraphics#batik-transcoder;1.7 in public
[ivy:retrieve] found org.apache.xmlgraphics#batik-svggen;1.7 in public
[ivy:retrieve] found org.apache.xmlgraphics#batik-extension;1.7 in public
[ivy:retrieve] found org.apache.avalon.framework#avalon-framework-api;4.3.1 in public
[ivy:retrieve] found org.apache.avalon.framework#avalon-framework-impl;4.3.1 in public
[ivy:retrieve] found net.sf.launch4j#launch4j;3.0.2 in launch4j
[ivy:retrieve] found bsf#bsf;2.4.0 in public
[ivy:retrieve] found org.beanshell#bsh;2.0b4 in public
[ivy:retrieve] found org.bouncycastle#bcpg-jdk16;1.46 in public
[ivy:retrieve] found org.bouncycastle#bcprov-jdk16;1.46 in public
[ivy:retrieve] found org.jedit.plugins#MacOSX;1.2 in jedit-plugins
[ivy:retrieve] found org.jedit.plugins#QuickNotepad;5.0 in jedit-plugins
[ivy:retrieve] :: resolution report :: resolve 1628ms :: artifacts dl 43ms
[ivy:retrieve] :: evicted modules:
[ivy:retrieve] org.hamcrest#hamcrest-core;1.1 by [org.hamcrest#hamcrest-core;1.2.1] in [test]
[ivy:retrieve] xml-apis#xml-apis;2.0.2 by [xml-apis#xml-apis;1.3.04] in [fop]
---------------------------------------------------------------------
| | modules || artifacts |
| conf | number| search|dwnlded|evicted|| number|dwnlded|
---------------------------------------------------------------------
| default | 1 | 0 | 0 | 0 || 1 | 0 |
| master | 0 | 0 | 0 | 0 || 0 | 0 |
| compile | 1 | 0 | 0 | 0 || 1 | 0 |
| runtime | 1 | 0 | 0 | 0 || 1 | 0 |
| test | 5 | 0 | 0 | 1 || 4 | 0 |
| provided | 0 | 0 | 0 | 0 || 0 | 0 |
| sources | 3 | 0 | 0 | 0 || 2 | 0 |
| javadoc | 3 | 0 | 0 | 0 || 2 | 0 |
| ant-contrib | 2 | 0 | 0 | 0 || 2 | 0 |
| docbook | 5 | 0 | 0 | 0 || 5 | 0 |
| fop | 26 | 0 | 0 | 1 || 25 | 0 |
| jarbundler | 2 | 0 | 0 | 0 || 2 | 0 |
| launch4j | 1 | 0 | 0 | 0 || 3 | 0 |
| scripting | 5 | 0 | 0 | 0 || 5 | 0 |
| default-plugins | 2 | 0 | 0 | 0 || 2 | 0 |
---------------------------------------------------------------------
[ivy:retrieve] :: retrieving :: org.jedit#jedit [sync]
[ivy:retrieve] confs: [default, master, compile, runtime, test, provided, sources, javadoc, ant-contrib, docbook, fop, jarbundler, launch4j, scripting, default-plugins]
[ivy:retrieve] 0 artifacts copied, 55 already retrieved (0kB/50ms)
[ivy:retrieve] :: resolving dependencies :: org.apache.ivy#ivy-caller;working
[ivy:retrieve] confs: [default]
[ivy:retrieve] found org.apache.ivy#ivy;2.2.0 in public
[ivy:retrieve] :: resolution report :: resolve 30ms :: artifacts dl 1ms
---------------------------------------------------------------------
| | modules || artifacts |
| conf | number| search|dwnlded|evicted|| number|dwnlded|
---------------------------------------------------------------------
| default | 1 | 0 | 0 | 0 || 1 | 0 |
---------------------------------------------------------------------
[ivy:retrieve] :: retrieving :: org.apache.ivy#ivy-caller
[ivy:retrieve] confs: [default]
[ivy:retrieve] 1 artifacts copied, 0 already retrieved (925kB/24ms)

setup:

BUILD FAILED
/Users/john/jedit/build.xml:145: java.lang.ClassNotFoundException: org.apache.tools.ant.util.optional.ScriptRunner
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
at org.apache.tools.ant.AntClassLoader.findBaseClass(AntClassLoader.java:1383)
at org.apache.tools.ant.AntClassLoader.loadClass(AntClassLoader.java:1076)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:247)
at org.apache.tools.ant.util.ScriptRunnerCreator.createRunner(ScriptRunnerCreator.java:123)
at org.apache.tools.ant.util.ScriptRunnerCreator.createRunner(ScriptRunnerCreator.java:80)
at org.apache.tools.ant.util.ScriptRunnerHelper.getRunner(ScriptRunnerHelper.java:190)
at org.apache.tools.ant.util.ScriptRunnerHelper.getScriptRunner(ScriptRunnerHelper.java:55)
at org.apache.tools.ant.taskdefs.optional.Script.execute(Script.java:52)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:390)
at org.apache.tools.ant.Target.performTasks(Target.java:411)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
at org.apache.tools.ant.Main.runBuild(Main.java:809)
at org.apache.tools.ant.Main.startAnt(Main.java:217)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)

Total time: 2 seconds

Discussion

  • I didn't use the dist target, only wanted to create the .jar file. Don't have the time to fiddle with the build. Will try again later. Thanks for help!

     
  • Alan Ezust
    Alan Ezust
    2013-03-25

    Java 1.6 compatibility was broken between rev# 22880 to 22887. I am not sure if that is the same issue though.

     
  • Alan Ezust
    Alan Ezust
    2013-10-07

    • labels: --> MacOSX specific
     
  • Alan Ezust
    Alan Ezust
    2013-10-07

    • assigned_to: nobody --> ezust
    • status: open --> closed-works-for-me
     
  • Alan Ezust
    Alan Ezust
    2013-10-07

    The MacOSx system version of "ant" (installed by xcode I believe) is missing an important .jar file which contains the org.apache.tools.ant.util.optional.ScriptRunner class. If you install the full version of ant, it will not be missing that .jar file and this particular error message will go away. Or what I did was copy ant-apache-bsf-1.9.1.jar into the /usr/share/ant/lib directory.