On 2.4.6 I used opencv\build\java\x64\ where opencv_java246.dll is located, and that solved the problem.