Skip to content

Commit 64b08db

Browse files
Main-Class in jna-platform.jar collides with java 9 module system
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
1 parent a6e0963 commit 64b08db

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

contrib/platform/build.xml

-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,6 @@
102102
<target name="-pre-jar">
103103
<tempfile deleteonexit="true" destdir="${build.dir}" property="tmp.manifest.file"/>
104104
<manifest file="${tmp.manifest.file}" mode="replace">
105-
<attribute name="Main-Class" value="com.sun.jna.Native"/>
106105
<attribute name="Manifest-Version" value="1.0"/>
107106
<attribute name="Implementation-Title" value="${impl.title}"/>
108107
<attribute name="Implementation-Vendor" value="${vendor}"/>

0 commit comments

Comments
 (0)