java.lang.NoClassDefFoundError: java/time/LocalDate



get the message:

Exception in thread "main" [ObjectDB 2.8.6] Unexpected exception (Error 990)
  Generated by Java HotSpot(TM) Client VM 1.7.0_51 (on Windows 7 6.1).
Please report this error on
com.objectdb.o.InternalException: java.lang.NoClassDefFoundError: java/time/LocalDate
java.lang.NoClassDefFoundError: java/time/LocalDate
    at com.objectdb.o.VUT.<clinit>(
    at com.objectdb.o.RAT.l(
    at com.objectdb.o.RTT.g(
    at com.objectdb.o.TSK.b(
    at com.objectdb.o.TSK.c(
    at com.objectdb.o.MST.<init>(
    at com.objectdb.o.MST.ap(
    at com.objectdb.o.MSF.Z5(
    at com.objectdb.o.OMF.s(
    at com.objectdb.jpa.EMF.s(
    at com.objectdb.o.OMF.x(
    at com.objectdb.jpa.EMF.createEntityManager(
    at tutorial.Main2.main(
Caused by: java.lang.ClassNotFoundException: java.time.LocalDate
    at Method)
    at java.lang.ClassLoader.loadClass(
    at sun.misc.Launcher$AppClassLoader.loadClass(
    at java.lang.ClassLoader.loadClass(
    ... 15 more

by the way, the following codes runs OK.

    public static void main(String[] args) {
        System.out.println(new Date());

I removed the ObjectDB 2.8.6, and use the old version(see attachment), the tutorial runs OK.


By replacing the jar, the old 2011 version, 2.6.0 and 2.7.0 and 2.8.0 runs OK.

But failed on version 2.8.6


Thank you for this report. It seems that starting ObjectDB version 2.8.3 (which adds support of Java 8 date and time types) you have to use Java 8 or above, rather than Java 7 that you are currently using.

ObjectDB Support