<div dir="ltr">Hi all.<div><br></div><div>I am building VTK 6 on Windows. From CMake, I generate MS Visual Studio 2010 projects for both 32-bit and 64-bit architectures.</div><div><br></div><div>In CMake, I enabled Java wrapping, as I need to use VTK 6 from a Java application.</div>
<div>I specify the path of the JDK version 7 which is installed on my development machine.</div><div><br></div><div>The build process works fine, but I end up with a &quot;vtk.jar&quot; containing class files which are only compatible with JRE v7. Is there a way to specify some flags in CMake which would force the class files within vtk.jar to be built with the &quot;-source 1.6&quot; option of javac, forcing compatibility with JRE v6 or newer?</div>
<div><br></div><div>One solution is obviously to install JDK 6 on my development machine, and have CMake build vtk.jar using that JDK.</div><div><br></div><div>But I was wondering if there is a solution allowing me to use JDK 7 to build vtk.jar, still maintaining compatibility with JRE v6.</div>
<div><br></div><div>Thanks in advance for your input.</div><div>Best regards,</div><div><br></div><div>Marco Sambin</div><div><br></div></div>