Menu

#312 Cannot generate header files on Java 10+

v3.5.43
closed-fixed
nobody
None
5
2021-01-05
2020-03-12
No

javah has been removed from Java 10+. The Ant build fails with the <javah> task invocations.
javac -h is supported from Java 8. You need to add if/else conditions during the Ant build.

Discussion

  • Maxime Andrighetto

    Thank you.
    We fixed our Ant file as you suggested. This will be available in the next release.

    Note that you would need to raise the target version of Javac (javac.target.version) to 1.6 at least in order to build with Java 10+. If you do this though, you would get a bunch of "deprecated" warnings because the code is written for Java 4+.

    Because the minimum version of Java supported by the Wrapper is also used in the C code, we made a change so that the value of the Ant property is automatically used through a variable instead of having it hard-coded.

    Hope these changes will help.

    Best Regards,

    Maxime

     
  • Maxime Andrighetto

    • status: open --> open-fixed
     
  • Michael Osipov

    Michael Osipov - 2020-12-02

    Thanks, looking forward to a release.

     
  • Maxime Andrighetto

    We released version 3.5.45 with the changes mentioned above.

    Best Regards,

    Maxime

     
  • Maxime Andrighetto

    • status: open-fixed --> closed-fixed
     

Log in to post a comment.

MongoDB Logo MongoDB