javachronicleunsupported-class-versionchronicle-map

Chronicle Map UnsupportedClassVersionError


I'm just trying out ChronicleMap and have run into an issue immediately, an "UnsupportedClassVersionError: Unsupported major.minor version 52.0".

I'm using Java 7... should I interpret this error to mean that Chronicle Map is compiled under Java 8? Do I need to download the source code and compile under Java 7 to fix this (would this even work)?


Solution

  • I'm sorry:

    ChronicleMap 1.0.2 requires Java 8; we realize this is causing problems so are looking to release ChronicleMap 2.0.0a (as an alpha release) in the next few days, which will work on Java 7:

    <groupId>net.openhft</groupId>
    <artifactId>chronicle-map</artifactId>
    <version>2.0.0a</version>
    

    Yes, if you were to download the source code and compile under Java 7 it will work, but you will have to build all the snapshot artifacts that it uses, or download them from:

    <repositories>
        <repository>
            <id>Snapshot Repository</id>
            <name>Snapshot Repository</name>
            <url>https://oss.sonatype.org/content/repositories/snapshots</url>
            <snapshots>
                <enabled>true</enabled>
            </snapshots>
        </repository>
        <repository>
            <id>sonatype-nexus-staging</id>
            <url>https://oss.sonatype.org/service/local/staging/deploy/maven2</url>
            <releases>
                <enabled>true</enabled>
            </releases>
        </repository>
    </repositories>