如何将 java rxtx 库包含到我的 Minecraft mod 中?
How can I include the java rxtx library into my Minecraft mod?
如何将 rxtx dll 包含在 minecraft forge 中 mod 我对 rxtxcomm.jar 文件没有任何问题,但我不能将根文件夹包含在类路径中(像正常情况一样),因为那时由于重复 mod 游戏无法启动(我目前使用的是 eclipse)
在你的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 添加到我的 cookie jar 中。
如何将 rxtx dll 包含在 minecraft forge 中 mod 我对 rxtxcomm.jar 文件没有任何问题,但我不能将根文件夹包含在类路径中(像正常情况一样),因为那时由于重复 mod 游戏无法启动(我目前使用的是 eclipse)
在你的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 添加到我的 cookie jar 中。