简体   繁体   English

Mac 上的 Eclipse 抛出错误“java.lang.NoClassDefFoundError:org/lwjgl/LWJGLException”

[英]Eclipse on Mac throwing Error "java.lang.NoClassDefFoundError: org/lwjgl/LWJGLException"

Immediate disclaimer: I've been using LWJGL since 2010. I am currently stuck coding in Eclipse on a 2009 Macbook for reasons out of my control.立即免责声明:自 2010 年以来,我一直在使用 LWJGL。由于我无法控制的原因,我目前在 2009 年的 Macbook 上使用 Eclipse 进行编码。 This error has never popped up for me before, and once I'm back on Windows it never will again.这个错误以前从未出现过,一旦我回到 Windows 上,它就再也不会出现了。

So I'm currently trying to set up a LWJGL project, and during the initial steps of getting a window running, the program will refuse to run, throwing this error:所以我目前正在尝试建立一个 LWJGL 项目,在让窗口运行的初始步骤中,程序将拒绝运行,并抛出此错误:

Error: Unable to initialize main class Boot Caused by: java.lang.NoClassDefFoundError: org/lwjgl/LWJGLException错误:无法初始化主类 Boot Caused by: java.lang.NoClassDefFoundError: org/lwjgl/LWJGLException

Now, I know the problem is with the Native Libraries not being loaded.现在,我知道问题在于未加载本机库。 However, I have the LWJGL.jar file pointing to Natives/macosx/ , but it's still throwing this error.但是,我有指向Natives/macosx/的 LWJGL.jar 文件,但它仍然抛出此错误。

Can somebody tell me what's going on, how many.dylib files should be in Natives/macosx, and how to resolve it without just installing Windows 7 and coding on there.谁能告诉我发生了什么事,Natives/macosx 中应该有多少个 dylib 文件,以及如何在不安装 Windows 7 并在其中编码的情况下解决它。

I got the same error when I used IntelliJ IDE, so try to go into your eclipse settings => dependency and make sure that the below-mentioned dependencies are included ( especially the versions and the type of OS ).我在使用 IntelliJ IDE 时遇到了同样的错误,因此请尝试进入您的 eclipse 设置 => 依赖项并确保包含下面提到的依赖项(尤其是操作系统的版本和类型)。

在此处输入图像描述

暂无
暂无

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

相关问题 java.lang.NoClassDefFoundError:org / lwjgl / LWJGLException - java.lang.NoClassDefFoundError: org/lwjgl/LWJGLException 为什么会出现“线程“main”中的异常 java.lang.NoClassDefFoundError: org/lwjgl/LWJGLException”错误? - Why do I get "Exception in thread "main" java.lang.NoClassDefFoundError: org/lwjgl/LWJGLException" error? LWJGL的java.lang.NoClassDefFoundError - java.lang.NoClassDefFoundError with LWJGL 尝试在Eclipse中运行时,LWJGL中的java.lang.NoClassDefFoundError - java.lang.NoClassDefFoundError in LWJGL when attempting to run in Eclipse Eclipse中没有java.lang.NoClassDefFoundError错误 - NO java.lang.NoClassDefFoundError error in Eclipse 处女座服务器抛出java.lang.NoClassDefFoundError:org / json / JSONException部署Java包时出错 - Virgo Server Throwing java.lang.NoClassDefFoundError: org/json/JSONException Error while deploying a Java package LWJGL项目java.lang.NoClassDefFoundError - LWJGL project java.lang.NoClassDefFoundError java.lang.NoClassDefFoundError:org.eclipse.core.runtime.RegistryFactory - java.lang.NoClassDefFoundError: org.eclipse.core.runtime.RegistryFactory Eclipse中的“ java.lang.NoClassDefFoundError:org / hibernate / proxy / HibernateProxy” - “java.lang.NoClassDefFoundError: org/hibernate/proxy/HibernateProxy” in Eclipse Java.lang.NoClassDefFoundError:org/eclipse/jetty/util/component/ContainerLifeCycle - Java.lang.NoClassDefFoundError: org/eclipse/jetty/util/component/ContainerLifeCycle
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM