Nvidia Visual Profiler & JAVA

Hi guys, i’m working on a java project which needs CUDA calls.

i’m working on a JAVA 1.7 environment. I can build and run the project on eclipse.

I created a .jar file and can launch it with a .bat file.

But when i want to use the .bat file with Visual Profiler, i get this error:

java.lang.UnsupportedClassVersionError: com/project/EntryTest : Unsupported major.minor version 51.0

	at java.lang.ClassLoader.defineClass1(Native Method)

	at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632)

	at java.lang.ClassLoader.defineClass(ClassLoader.java:616)

	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)

	at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)

	at java.net.URLClassLoader.access$000(URLClassLoader.java:58)

	at java.net.URLClassLoader$1.run(URLClassLoader.java:197)

	at java.security.AccessController.doPrivileged(Native Method)

	at java.net.URLClassLoader.findClass(URLClassLoader.java:190)

	at java.lang.ClassLoader.loadClass(ClassLoader.java:307)

	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)

	at java.lang.ClassLoader.loadClass(ClassLoader.java:248)

Could not find the main class: com.thales.EntryTest. Program will exit.

Exception in thread "main"

I know this is a java version problem. But i don’t understand why i can’t launch it with Visual profiler.

My JAVA_HOME environment variable is well configured to use the 1.7 version of the jdk.

Any idea ? Do you think the problem comes from Visual Profiler ? Or should I have a look on my java versions ?

Thanks a lot