Hi Gianluca Unfortunately that doesn't work. It's still picking up junit.jar not junit4.jar from /usr/share/java
Tim On 26/08/2016 10:15, Gianluca Sforna wrote: > On Thu, Aug 25, 2016 at 5:34 PM, Tim Dudgeon <[email protected]> wrote: >> It seems that RDKit looks for junit here: /usr/share/java/junit.jar >> >> But on my Ubuntu system that is a symlink to a JUnit3 jar file, and the >> correct link for JUnit4 is /usr/share/java/junit4.jar, and the tests >> require JUnit4 and so fail. Of course it may be different with other >> Linux distros. > In recent releases we are using the cmake "find_jar" function to > determine the junit location; it seems you have installed both > versions so it picks up the wrong one. > > Can you try the following and let us know if it works? > > Open up Code/JavaWrappers/gmwrapper/CMakelists.txt and change the line 13 > from: > find_jar(JUNIT_JAR junit PATHS ${RDKit_JavaLibDir}) > > to > > find_jar(JUNIT_JAR junit PATHS ${RDKit_JavaLibDir} VERSIONS 4) > > According to cmake documentation, that should force a version match > and use the correct one. > > ------------------------------------------------------------------------------ _______________________________________________ Rdkit-discuss mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/rdkit-discuss

