java - UnsupportedClassVersionError When Running JNI -


i'm getting unsupportedclassversionerror error when calling findclass() when running c++ application on redhat linux. we're c++ shop , we're using jni in order use java library given third party broker interface systems.

the program had not been recompiled in couple of years older c++ library program used deprecated had recompile program. when try run program we're getting error.

exception in thread "main" java.lang.unsupportedclassversionerror: tradingenginewrapper : unsupported major.minor version 52.0         @ java.lang.classloader.defineclass1(native method)         @ java.lang.classloader.defineclass(classloader.java:621)         @ java.security.secureclassloader.defineclass(secureclassloader.java:124)         @ java.net.urlclassloader.defineclass(urlclassloader.java:260)         @ java.net.urlclassloader.access$000(urlclassloader.java:56)         @ java.net.urlclassloader$1.run(urlclassloader.java:195)         @ java.security.accesscontroller.doprivileged(native method)         @ java.net.urlclassloader.findclass(urlclassloader.java:188)         @ java.lang.classloader.loadclass(classloader.java:307)         @ sun.misc.launcher$appclassloader.loadclass(launcher.java:301)         @ java.lang.classloader.loadclass(classloader.java:252)         @ java.lang.classloader.loadclassinternal(classloader.java:320) 

i tried upgrading newer version of jdk (jdk1.8.0_45) didn't help. know caused because our java class library compiled 1 version jre being invoked jni incompatible version. question is, how control version of jre gets called when starting c++ application? because i'm calling c++ application i'm not starting "java app_name" or that. appreciated.

thank you.


Comments

Popular posts from this blog

twig - Using Twigbridge in a Laravel 5.1 Package -

jdbc - Not able to establish database connection in eclipse -

Kivy: Swiping (Carousel & ScreenManager) -