-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JavahExecutable fails on Java10 #17
Comments
Looks like the regular maven compiler plugin (v3.7.0) can be configured to spit out the headers like so:
|
But... to use the plugin on Java9/10, a dependency definitely needs to be updated. Please see #18. |
The 1.0-alpha-9 version was released. That milestone should be closed and this issue bumped to the next milestone (unless it was already fixed). |
@hendriks73 is this fixed in alpha-9? |
No, it's not. Java9 and 10 do not have a
That aside, users can use the regular compiler plugin to produce header files, as shown above. |
There is one project - https://github.com/Glavo/gjavah it looks like an implementation of javah in pure java. It is mit licensed. Maybe it can be used instead of javah? |
Given that |
This is true but |
I see that we can change org.codehaus.mojo.natives.javah.JavahExecutable to use |
Also, if I understand correctly, this plugin allows you to define a build artifact that builds the JNI header and the native library (.so, .dll, .dylib) in the same build call. Do I have to separate those into two steps if I use the |
Is this fix for JavahExecutable already available? I'm having an issue with another project that relies on the maven-native plugin. |
I am also interested in this fix. |
Java 10 got rid of the
javah
executable and replaced it withjavac -h
.The text was updated successfully, but these errors were encountered: