Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7770829
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T16:30:12+00:00 2026-06-01T16:30:12+00:00

So i am using Netbeans as my coding environment, i downloaded and installed LWJGL

  • 0

So i am using Netbeans as my coding environment, i downloaded and installed LWJGL into netbeans exactly the way it states to do so. I did a few lessons, copied some demo programs, and everything so far is working and running properly. It is all fine and dandy, until i go to export the application i am testing. It exports and says it is clean with no errors, but when i attempt to run the ‘.jar’ file, it does nothing, and eventually gives me an error message that the application does not run.

I go and check the console for error messages and it gives me this:
2/22/12 4:59:15 PM  [0x0-0x2b82b8].com.apple.JarLauncher[63754}Exception in thread "main" 
2/22/12 4:59:15 PM  [0x0-0x2b82b8].com.apple.JarLauncher[63754]java.lang.NoClassDefFoundError: org/lwjgl/LWJGLException
2/22/12 4:59:15 PM  [0x0-0x2b82b8].com.apple.JarLauncher[63754]Caused by: java.lang.ClassNotFoundException: org.lwjgl.LWJGLException
2/22/12 4:59:15 PM  [0x0-0x2b82b8].com.apple.JarLauncher[63754]at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
2/22/12 4:59:15 PM  [0x0-0x2b82b8].com.apple.JarLauncher[63754]at java.security.AccessController.doPrivileged(Native Method)
2/22/12 4:59:15 PM  [0x0-0x2b82b8].com.apple.JarLauncher[63754]at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
2/22/12 4:59:15 PM  [0x0-0x2b82b8].com.apple.JarLauncher[63754]at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
2/22/12 4:59:15 PM  [0x0-0x2b82b8].com.apple.JarLauncher[63754]at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
2/22/12 4:59:15 PM  [0x0-0x2b82b8].com.apple.JarLauncher[63754]at java.lang.ClassLoader.loadClass(ClassLoader.java:247)

I am guessing that the LWJGL files did not get included into the final jar file. How can i correct this so i can export applications using LWJGL?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T16:30:13+00:00Added an answer on June 1, 2026 at 4:30 pm

    You will need to set the class paths in order to run the jar from terminal. You may wish to use a shell script (mac linux) or batch file(windows) to run it.

    The command will look something like this, you can stick it in to the shell script and run the shell.(This is the one I use for my lwjgl projects.)

    java -cp .;res;jar\AppleJavaExtensions.jar;jar\jinput.jar;jar\lwjgl.jar;jar\lwjgl-debug.jar;jar\lwjgl_test.jar;jar\lwjgl_util.jar;jar\lwjgl_util_applet.jar;jar\lzma.jar;jar\slick-util.jar; -Djava.library.path=native\macosx -jar thejarfile.jar
    

    You will need to change -Djava.library.path=native\macosx depending on your os. windows/linux/macosx.

    I use these libraries http://sourceforge.net/projects/java-game-lib/ I would imagine that you or any one else with the same issue is using the same.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using NetBeans 6.9 with the Zen Coding plugin . I was wondering if
I'm coding in Swing in Java. I'm using the Netbeans layout manager. I'm having
im using netbeans with svn. i've checked out a project and then i used
im using netbeans for svn. i open a project in netbeans and then i
I created a JApplet using Netbeans 6.5.1 that accesses a database. When the program
I'm using NetBeans to develop some simple applications to solve puzzles . Upon launching
I am using NetBeans and JSF to do my project. Recently I encountered a
I am currently using netbeans 6.7 to develop some j2me apps for a phone.
I'm using Netbeans to write Scala and Java. Netbeans generated a .jar file for
I am using Netbeans 6.5 IDE. In the IDE, errors and warnings are highlighted

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.