简体   繁体   English

Eclipse不导出外部jar库

[英]Eclipse not exporting external jar libraries

I'm trying to make this .exe file of my eclipse project for my teacher, but every time I do it gives me errors claiming that the lwjgl libraries aren't in there. 我正在尝试为我的老师制作eclipse项目的.exe文件,但是每次执行此操作时,都会出现错误消息,声称lwjgl库不在其中。 However when I exported the runnable jar from eclipse that I used to make the .exe from, I selected "Package required libraries into generated jar." 但是,当我从用来制作.exe的eclipse中导出可运行的jar时,我选择了“将所需的库打包到生成的jar中”。 I tried running the .jar through the command prompt, but it gave me these errors (click the link): https://scontent-dfw.xx.fbcdn.net/hphotos-xpt1/v/t1.0-9/11059766_1609765759310316_8110952137507721084_n.jpg?oh=af235bc0bdb7ecf1e4d875619bd20631&oe=55D1E928 我尝试通过命令提示符运行.jar,但它给了我这些错误(单击链接): https : //scontent-dfw.xx.fbcdn.net/hphotos-xpt1/v/t1.0-9/11059766_1609765759310316_8110952137507721084_n .JPG?哦= af235bc0bdb7ecf1e4d875619bd20631&OE = 55D1E928

I don't know why it's doing this. 我不知道为什么要这么做。 I need this executable by tomorrow and it's already like 10:47 PM and I'm freaking out! 我明天需要这个可执行文件,已经是晚上10:47了,我吓坏了! Could someone PLEASE help me?!?! 有人可以帮我吗?!?!

EDIT 编辑

I tried selecting "Extract required libraries into generated JAR" instead, but gave me "java.lang.UnsatisfiedLinkError: no lwjgl in java.library.path" 我尝试选择“将所需的库提取到生成的JAR中”,但是给了我“ java.lang.UnsatisfiedLinkError:java.library.path中没有lwjgl”

I solved my problem! 我解决了我的问题! I changed the lwjgl libraries from being an external library to it being in a folder inside the project, and then I exported it with the required libraries outputed to a folder next to the jar, and then created a fat jar using JarSplicer. 我将lwjgl库从外部库更改为项目内部文件夹中的库,然后将其输出,并将所需的库输出到jar旁边的文件夹中,然后使用JarSplicer创建了一个胖jar。 Now, however, I'm having this other issue that makes it unable to get image and sound resources even though (I checked with 7-zip) they are in the correct file position. 但是,现在,我遇到了另一个问题,即使它们位于正确的文件位置,也无法获取图像和声音资源(我使用7-zip检查)。 I'll post another question for this other problem. 我将针对另一个问题发布另一个问题。

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

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