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

  • SEARCH
  • Home
  • 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 6881689
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T05:09:42+00:00 2026-05-27T05:09:42+00:00

I am on a Mac running Netbeans 6.9. I downloaded and installed LWJGL using

  • 0

I am on a Mac running Netbeans 6.9.
I downloaded and installed LWJGL using this tutorial down to the letter:
http://lwjgl.org/wiki/index.php?title=Setting_Up_LWJGL_with_NetBeans

I finished the installation and copied sample code to see if my system is working. I got a bug, and was not sure if it was because of faulty code or I was doing something wrong. So I shortened down the code to this little simple bit:

package javaopengl;

import org.lwjgl.Sys;
import org.lwjgl.opengl.Display;

//Testing

public class Main {

    public static void main(String[] args) {
        boolean fullscreen = (args.length == 1 && args[0].equals("-fullscreen"));

        try {
            Display.create();
            Display.destroy();
        } catch (Exception e) {
            e.printStackTrace(System.err);
        }
        System.exit(0);
    }
}

But I still get the same error:

run:
Exception in thread "main" java.lang.NoClassDefFoundError: =
Caused by: java.lang.ClassNotFoundException: =
        at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
Java Result: 1
BUILD SUCCESSFUL (total time: 0 seconds)

I am not sure what exactly is going on, Would you please tell me what is going on and how to fix it?

Note: When i am looking at the text in the development environment, it does not show those red lines indicating there are any errors.

  • 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-05-27T05:09:42+00:00Added an answer on May 27, 2026 at 5:09 am

    What are you typing (or what is netbeans running) to run this? Since the Mac filesystem is fairly case-agnostic unless you’ve specified otherwise, running java javaopengl.main will look for a file main.java, which is there (Main.java will be returned). But the class is Main, and you can get this exception from the difference. If this is being run from an ant script, I suggest making sure you have the correct capitalization (the class should be javaopengl.Main). A simple way to test this is to delete everything except the class definition and an empty public static void main(String[] args) {}

    Alternatively, you could have something simpler, like your classpath out of whack. Missing the lwjgl jar would get you there, but if you followed the directions in that tutorial, that actually seems less likely. Still, you can test this.

    package javaopengl;
    
    public class Main {
      public static void main(String[] args) {
        System.out.println("well, main works");
        Class checkjar = Class.forName("org.lwjgl.opengl.Display");
        System.out.println("My ClassLoader found: " + checkjar.getCanonicalName());
      }
    }
    

    Also, remove import org.lwjgl.Sys; from your shortened example. It doesn’t appear to be needed, provided it isn’t the source of your problems :).

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

Sidebar

Related Questions

I've installed MySQL on my Mac running lion using their DMG installer. This has
Running Mac OS X 10.5.8, with PHP 5.2.11 Pre-installed. Using Coda 1.6.10. I'm writing
I am running Mac OSX 10.5.8. I installed matplotlib using macports. I get some
I'm running Mac OSX Snow Leopard, this problem is caused by a recent train
I'm running git 1.7 on Mac OSX, installed via Homebrew. I'm trying to use
I'm running ruby on Mac OSX 10.6.4, using Ruby 1.8 and activerecord 2.3.8. I'm
I'm on Mac running parallels with windows XP and IE8 installed. The options I
I'm on a Mac running OS X v10.6 (Snow Leopard). I have Mercurial 1.1 installed. After I
Im using MAMP on a Mac running OS X Lion. I need to connect
I have two versions of python installed on my mac running OSX Lion. The

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.