-
Notifications
You must be signed in to change notification settings - Fork 807
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
jniwrap fails to build with Java 8 #1320
Comments
CC @desruisseaux |
Indeed the requirement for JNI bindings moved to Java 9 in order to benefit from modularisation ("Jigsaw"). But it is possible to support also older Java versions using "multi-versions JAR file" or other approach. I have not done that because I didn't knew if there would be a demand. If this is the case I can do it. One question however: is it okay to require Java 9+ at build time (but allow the compilation result to run on older Java versions), or is it required to build the project with older Java versions too? I ask because "multi-versions JAR files" is available only with Java 9+ compilers. |
OK, actually I realize that Travis with OpenJDK 7 only tests the compilation of the native part of the Java bindings (and native JNI stuff must not be that much dependent of the Java version), but not the Java code itself. I don't have a strong opinion about which Java version we should support, but it would be interesting to have @sebastic feedback why he had to disable libproj-java: I would have assumed that Debian unstable/testing used a recent Java version. |
The JNI bindings failed to build with OpenJDK 11 in Debian unstable. I don't have the buildlog for the details any more. Since the libproj-java package isn't used by any other packages, and because it unblocks other packages on a couple of ports (see 837354), it was enough for me to decide to drop the package now. |
The C/C++ side of JNI is very stable. As far as I know, the On short term we can fix the build (I would have to check with Java 11 on my side) after a choice has been made about which minimal Java version to require. I'm neutral about whether it should be for this PROJ version or a next one. On medium term revisit the Java bindings in light of the new API available in PROJ, but I guess it would be the topic of another github ticket. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Since #1825 jni wrappers has been removed from PROJ. This issue no longer applies. |
The jniwrap bindings fail to build with OpenJDK 8:
I see in #974 that this module has moved forward.
Is there any supported way to use OpenJDK 8?
The text was updated successfully, but these errors were encountered: