UnsupportedClassVersionError for Extension development on OSX Yosemite

allangdavies's Avatar

allangdavies

05 May, 2015 02:28 PM

I was going to use the JPython extension for a specialised report I need but that is not yet available for MD2015 so instead I am using the Intellij IDEA IDE for Java development.

I have tried to compile the sample extension (myextension) in the developer kit and get this error on compilation

Exception in thread "main" java.lang.UnsupportedClassVersionError: com/moneydance/apps/md/controller/FeatureModule : Unsupported major.minor version 51.0

Unfortunately OSX Yosemite has Java 6 as the 'baked-in' Java as shown below

java version "1.6.0_65"
Java(TM) SE Runtime Environment (build 1.6.0_65-b14-466.1-11M4716)
Java HotSpot(TM) 64-Bit Server VM (build 20.65-b04-466.1, mixed mode)

Is the Featuremodule compiled in a later version of Java maybe 7 or 8?

If so is there any way I can set up Java on the Mac to work around this problem?

Any help much appreciated

Allan

PS I am really enjoying using MD 2015 after trying Quicken for Mac and iBank.

  1. 1 Posted by Ben Spencer on 05 May, 2015 02:39 PM

    Ben Spencer's Avatar

    Hi

    Moneydance 2015 uses java 8.

    You can get the latest version of java for OS X from here:

    https://www.java.com/en/download/help/mac_10_10.xml

    Ben Spencer
    Infinite Kind Support

  2. 2 Posted by allangdavies on 06 May, 2015 12:00 AM

    allangdavies's Avatar

    Thanks for the prompt feedback.
    The link you provided was for the Java run time (JRE). In order to compile an extension you need the Java 8 JDK which I found at

    http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

    Once I hooked up to Java 8 SDK in IDEA everything is working.

    Thanks for the help
    Allan

  3. Ben Spencer closed this discussion on 06 May, 2015 01:40 AM.

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