你如何在一个minecraft forge mod中包含rxtx dll我对rxtxcomm.jar文件没有任何问题,但我不能在类路径中包含根文件夹(正常情况下),因为游戏不会因为重复而启动mod(我目前正在使用eclipse)
答案 0 :(得分:1)
在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 jar和dll给我拿走我的饼干罐的人。