简体   繁体   English

从哪里获得 Java Native Access Platform 资源?

[英]Where to get Java Native Access Platform sources?

I am trying to build from sources that sources https://repo1.maven.org/maven2.net/java/dev/jna/jna-platform/5.5.0/ Java Native Access Platform version 5.5.0, and I am getting jna-platform-5.5.0.jar size - 1233K which is much less than https://repo1.maven.org/maven2.net/java/dev/jna/jna-platform/5.5.0/jna-platform-5.5.0.jar .我正在尝试从来源https://repo1.maven.org/maven2.net/java/dev/jna/jna-platform/5.5.0/ Java Native Access Platform 版本 5.5.0 构建,我正在获取jna-platform-5.5.0.jar 大小 - 1233K 远小于https://repo1.maven.org/maven2.net/java/dev/jna/jna-platform/5.5.0/jna-platform-5.5.0.jar . In the same time, the recommended sources同时,推荐来源

git clone --depth 1 --branch 5.5.0  https://github.com/java-native-access/jna.git

Do not produce jna-platform-5.5.0.jar at all.根本不要生成 jna-platform-5.5.0.jar。 Could you tell me where to get real sources of Java Native Access Platform version 5.5.0?你能告诉我从哪里获得 Java Native Access Platform 5.5.0 版的真实来源吗?

Both projects are in the same git repository, which you can browse at the JNA GitHub site .这两个项目都在同一个 git 存储库中,您可以在 JNA GitHub 站点浏览该存储库。

The jna artifact is built using the build.xml file in the project root. jna工件是使用项目根目录中的build.xml文件构建的。 The jna-platform artifact is built from build.xml in the contrib/platform subdirectory. jna jna-platform工件是从contrib/platform子目录中的build.xml构建的。

You can build both artifacts from the project root using:您可以使用以下方法从项目根目录构建这两个工件:

ant dist

You may need the following packages if they aren't already installed:如果尚未安装,您可能需要以下软件包:

sudo apt-get install autoconf automake libtool libx11-dev libxt-dev texinfo

The latest released version is 5.9.0.最新发布的版本是 5.9.0。 These later releases fix many bugs and add functionality and if you are building from source, would be a better choice than 5.5.0.这些更高版本修复了许多错误并添加了功能,如果您从源代码构建,将是比 5.5.0 更好的选择。

However, there is no 5.5.0 branch at the JNA site, so you're not able to check it out.但是,JNA 站点上没有 5.5.0 分支,因此您无法查看它。 You may be getting the master branch (just released 5.9.0) anyway, and that would explain your differing jar sizes.无论如何,您可能会获得 master 分支(刚刚发布 5.9.0),这可以解释您的 jar 大小不同。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM