Skip to content

Commit

Permalink
Main-Class in jna-platform.jar collides with java 9 module system
Browse files Browse the repository at this point in the history
The java 9 module system expects the main class to reside in the same
jar, as the MANIFEST.MF. For the jna.jar the use case is valid to 
retrieve the current version of JNA, as jna.jar must be available
to run jna-platform.jar, there is no use-case to have the Main-Class
defined.

As reference the explanation from the jigsaw-dev mailing list:

http://mail.openjdk.java.net/pipermail/jigsaw-dev/2017-April/012151.html
  • Loading branch information
matthiasblaesing committed May 14, 2017
1 parent a6e0963 commit 64b08db
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion contrib/platform/build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,6 @@
<target name="-pre-jar">
<tempfile deleteonexit="true" destdir="${build.dir}" property="tmp.manifest.file"/>
<manifest file="${tmp.manifest.file}" mode="replace">
<attribute name="Main-Class" value="com.sun.jna.Native"/>
<attribute name="Manifest-Version" value="1.0"/>
<attribute name="Implementation-Title" value="${impl.title}"/>
<attribute name="Implementation-Vendor" value="${vendor}"/>
Expand Down

0 comments on commit 64b08db

Please sign in to comment.