【问题标题】:How can I include the java rxtx library into my Minecraft mod?如何将 java rxtx 库包含到我的 Minecraft mod 中?
【发布时间】:2016-07-23 23:07:45
【问题描述】:

你将如何在 minecraft forge mod 中包含 rxtx dll 我对 rxtxcomm.jar 文件没有任何问题,但我不能在类路径中包含根文件夹(像正常一样),因为那样游戏不会因为重复而启动mod(我目前正在使用eclipse)

【问题讨论】:

    标签: java eclipse dll rxtx minecraft-forge


    【解决方案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 添加到我的谁拿走了我的 cookie jar。

    【讨论】:

    • 非常感谢,但遗憾的是我找到了另一种方法,我有另一个程序,它运行一个服务器,mod 连接到该服务器,然后服务器通过 rxtx 将它中继到 arduino,我喜欢它很多,因为我可以很容易地让它与 terraria、csgo、arma、我自己的游戏、kerbal 太空计划、战争雷霆等一起工作。
    猜你喜欢
    • 2020-02-20
    • 1970-01-01
    • 1970-01-01
    • 2019-04-25
    • 1970-01-01
    • 1970-01-01
    • 2011-02-22
    • 2023-01-04
    • 1970-01-01
    相关资源
    最近更新 更多