#1142 "ant dist" stoped working on linux after commit 5b6e0478a90ab2991cbcc4e192853a653af3c78a

FreeMind_1.0.0
closed-fixed
None
2
2014-10-10
2013-05-04
No

I cloned git repository and tried to follow de README instructions. When I run the command ant dist, i get the following error:

BUILD FAILED
/home/seabra/dev/java/workspace_freemind/freemind/freemind/build.xml:42: java.lang.UnsupportedClassVersionError: com/oracle/appbundler/AppBundlerTask : Unsupported major.minor version 51.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)

After searching a little bit I found out that commit 5b6e0478a90ab2991cbcc4e192853a653af3c78a broke the build. To fix it changed the file build.xml in line 38 to the following:

<property name="appbundler.jar" value = "jarbundler-2.0.0.jar"/>

<!-- taskdef name="bundleapp"
             classname="com.oracle.appbundler.AppBundlerTask"   
             classpath="${src}/lib/${appbundler.jar}" /-->
<taskdef name="jarbundler"
           classpath="${src}/lib/${appbundler.jar}"
           classname="net.sourceforge.jarbundler.JarBundler" />

Probably it messed up what Christian Foltin was trying to do in commit 5b6e0478a90ab2991cbcc4e192853a653af3c78a

Discussion

  • Christian Foltin

    Hi,

    this is necessary to support java7. Please install java7 and try again.

    HTH, Chris

     
  • Alexandre Seabra

    So, is Freemind direction be compatible only with Java 7?

     
    Last edit: Alexandre Seabra 2013-05-06
  • Christian Foltin

    Hi,

    no, it compiles to a java5 compatible application, currently. But, to support java on mac, I had to add a complete jre, which has to be java7. From this dependency, FreeMind has currently to be compiled with java7. As this is for mac only, I will try to reduce this dependency to mac.

    HTH, Chris

     
  • Christian Foltin

    Hi,

    idea: does it help to put the taskdef into the dist_macos task, such that it is not used in your case? Can you test this?
    TIA; Chris

     
  • Alexandre Seabra

    Sure I do. Bring it on. I am more like a maven guy, but I can adventure myself into ant. So you do it and I test? Or I do it?

     
  • Christian Foltin

    • status: open --> closed-fixed
    • assigned_to: Christian Foltin
     
  • Christian Foltin

    Fixed in git. Thanks!

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks