Hi Paolo,
I'm afraid that's not working for me. Still getting Java11 class files.
My cmake command is:
cmake -Wno-dev\
-DPYTHON_EXECUTABLE=/usr/bin/python3\
-DRDK_BUILD_INCHI_SUPPORT=ON\
-DRDK_BUILD_AVALON_SUPPORT=ON\
-DRDK_BUILD_PYTHON_WRAPPERS=ON\
-DRDK_BUILD_SWIG_WRAPPERS=ON\
-DJAVA_COMPILE="/usr/bin/javac -source 8"\
..
When it's built I run:
javap -cp ./Code/JavaWrappers/gmwrapper/org.RDKit.jar -verbose
org.RDKit.RDKFuncs | grep major
and get:
major version: 55
55 is the class version for Java11.
In fact if I set JAVA_COMPILE to complete nonsense everything still
builds OK!
Tim
On 26/12/2019 15:39, Paolo Tosco wrote:
Hi Tim,
Try adding this to your CMake command:
-DJAVA_COMPILE="/usr/bin/javac -source 8"
Cheers,
p.
On 26/12/2019 15:22, Tim Dudgeon wrote:
When building the Java wrappers from source (the
-DRDK_BUILD_SWIG_WRAPPERS=ON option) is possible to specify options
to pass on to javac.
Specifically I'm wanting to use the '-source 8' option as most
distros now come with java11 (and make it difficult to install an
earlier one) but I want to build a version of org.RDKit.jar that is
compatible with older Java versions.
Thanks
Tim
_______________________________________________
Rdkit-discuss mailing list
Rdkit-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rdkit-discuss
_______________________________________________
Rdkit-discuss mailing list
Rdkit-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rdkit-discuss