build fail, myextension example

kim.aldis's Avatar

kim.aldis

10 Jun, 2015 10:16 AM

trying to build the example plugin, devikit 4.0. Running ant genkeys I get a successful build but with a couple of errors:

     [java] java.lang.UnsupportedClassVersionError: com/moneydance/admin/KeyAdmin : Unsupported major.minor version 51.0

running ant myextension I get a build fail and the following output. Any thoughts?

% ant myextension
Buildfile: /Users/kimaldis/Documents/Dev/MoneyDance/moneydance-devkit-4.0/src/build.xml

init:

myextension:
    [javac] This version of java does not support the classic compiler; upgrading to modern
     [java] Changes to environment variables are ignored when same JVM is used.
     [java] java.lang.UnsupportedClassVersionError: com/moneydance/admin/KeyAdmin : Unsupported major.minor version 51.0
     [java] at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:194)
     [java] at org.apache.tools.ant.taskdefs.Java.run(Java.java:771)
     [java] at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:221)
     [java] at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:135)
     [java] at org.apache.tools.ant.taskdefs.Java.execute(Java.java:108)
     [java] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
     [java] at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
     [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     [java] at java.lang.reflect.Method.invoke(Method.java:597)
     [java] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
     [java] at org.apache.tools.ant.Task.perform(Task.java:348)
     [java] at org.apache.tools.ant.Target.execute(Target.java:435)
     [java] at org.apache.tools.ant.Target.performTasks(Target.java:456)
     [java] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1393)
     [java] at org.apache.tools.ant.Project.executeTarget(Project.java:1364)
     [java] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
     [java] at org.apache.tools.ant.Project.executeTargets(Project.java:1248)
     [java] at org.apache.tools.ant.Main.runBuild(Main.java:851)
     [java] at org.apache.tools.ant.Main.startAnt(Main.java:235)
     [java] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
     [java] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
     [java] Caused by: java.lang.UnsupportedClassVersionError: com/moneydance/admin/KeyAdmin : Unsupported major.minor version 51.0
     [java] at java.lang.ClassLoader.defineClass1(Native Method)
     [java] at java.lang.ClassLoader.defineClassCond(ClassLoader.java:637)
     [java] at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
     [java] at org.apache.tools.ant.AntClassLoader.defineClassFromData(AntClassLoader.java:1136)
     [java] at org.apache.tools.ant.AntClassLoader.getClassFromStream(AntClassLoader.java:1307)
     [java] at org.apache.tools.ant.AntClassLoader.findClassInComponents(AntClassLoader.java:1362)
     [java] at org.apache.tools.ant.AntClassLoader.findClass(AntClassLoader.java:1323)
     [java] at org.apache.tools.ant.AntClassLoader.forceLoadClass(AntClassLoader.java:656)
     [java] at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:134)
     [java] ... 20 more
     [java] Java Result: -1

BUILD FAILED
/Users/kimaldis/Documents/Dev/MoneyDance/moneydance-devkit-4.0/src/build.xml:56: Warning: Could not find file /Users/kimaldis/Documents/Dev/MoneyDance/moneydance-devkit-4.0/src/s-myextension.mxt to copy.

  1. 1 Posted by Mike Bray (Quot... on 10 Jun, 2015 10:40 AM

    Mike Bray (Quote Loader Author)'s Avatar

    Hi

    Which JDK are you using? Can you compile anything else?

    I believe Moneydance is aimed at 1.8. You might want to look at this:

    http://stackoverflow.com/questions/10382929/how-to-fix-unsupported-...

    Regards
    Mike

  2. 2 Posted by kim.aldis on 10 Jun, 2015 12:33 PM

    kim.aldis's Avatar

    That was it. JDK 8, by the way.

    Many thanks.

  3. Ben Spencer closed this discussion on 10 Jun, 2015 03:27 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

29 May, 2024 07:01 AM
29 May, 2024 06:26 AM
29 May, 2024 02:38 AM
29 May, 2024 12:43 AM
28 May, 2024 11:59 PM