1
你会如何包括在我的世界锻模的RXTX的DLL我与rxtxcomm.jar文件没有任何麻烦,但我不能包括在类路径的根文件夹(如正常的),因为随后的比赛不会推出,因为重复国防部(IM目前使用eclipse)如何将java rxtx库包含到我的Minecraft mod中?
你会如何包括在我的世界锻模的RXTX的DLL我与rxtxcomm.jar文件没有任何麻烦,但我不能包括在类路径的根文件夹(如正常的),因为随后的比赛不会推出,因为重复国防部(IM目前使用eclipse)如何将java rxtx库包含到我的Minecraft mod中?
在你的build.gradle:
dependencies {
// create a directory called libs in the directory where the build.gradle is
compile fileTree(dir: 'libs', include: '*.jar')
}
jar {
// make in the directory where the build.gradle is a native folder
// and put your dll's there.
from('native') {
into('org/sqlite/native')
}
}
processResources
{
//... add this below what's already there under process resources.
copy {
from('/native')
into('/org/sqlite/native')
}
}
这东西组合对我的作品的sqlite的罐子和DLL的添加到我的谁拿我的饼干罐子。
非常感谢,但可悲的是我已经找到了另一种方式,我有另一个程序,它运行在服务器和国防部连接到该服务器,并且服务器然后转发给通过RXTX Arduino的,我很多喜欢它,因为我可以很容易与terraria,csgo,arma,我自己的游戏,kerbal space program,war thunder等一起工作。 – Jeremiah