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 7088207
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T07:46:13+00:00 2026-05-28T07:46:13+00:00

I want to use LWJGL in an Eclipse RCP application, but either using the

  • 0

I want to use LWJGL in an Eclipse RCP application, but either using the plug-in from http://lwjgl.org/update or manually placing the jars in the classpath and adding Bundle-NativeCode entries, my application hangs at startup after having logged:

!ENTRY org.lwjgl 1 1 2011-12-11 00:27:11.122
!MESSAGE Set org.lwjgl.librarypath to /Users/thsoft/Development/workspace/org.lwjgl/native/macosx, OS: mac os x(x86_64)
2011-12-11 00:27:11.144 java[43495:407] [Java CocoaComponent compatibility mode]: Enabled
2011-12-11 00:27:11.145 java[43495:407] [Java CocoaComponent compatibility mode]: Setting timeout for SWT to 0.100000

I do have -Dorg.lwjgl.librarypath=/Users/thsoft/Development/MRP/org.lwjgl/native/macosx among the VM arguments of the launch configuration.

(I can use LWJGL in a plain Java project without problem, the issue occurs only in the case of a plug-in project. I’m on OS X 10.7.2.)

Has anyone succeeded to create an RCP application 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-05-28T07:46:14+00:00Added an answer on May 28, 2026 at 7:46 am

    It wasn’t a classpath issue, but the incorrect usage of OpenGL in the context of an SWT application.
    I was using the example code from here:

    try {
        Display.setDisplayMode(new DisplayMode(800,600));
        Display.create();
    } catch (LWJGLException e) {
        e.printStackTrace();
        System.exit(0);
    }
    
    // init OpenGL here
    
    while (!Display.isCloseRequested()) {
    
        // render OpenGL here
    
        Display.update();
    }
    
    Display.destroy();
    

    An example of the correct usage is described here:

        final Display display = new Display();
        Shell shell = new Shell(display);
        shell.setLayout(new FillLayout());
        Composite comp = new Composite(shell, SWT.NONE);
        comp.setLayout(new FillLayout());
        GLData data = new GLData ();
        data.doubleBuffer = true;
        final GLCanvas canvas = new GLCanvas(comp, SWT.NONE, data);
    
        canvas.setCurrent();
        try {
            GLContext.useContext(canvas);
        } catch(LWJGLException e) { e.printStackTrace(); }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to use the Web Browser control within an mono application, but when
I want to use the LWJGL library in Eclipse, I extracted the files into
I want use from multiple upload image in codeigniter but problem is here that
i want use some data from a website with web service. i have a
I want to use the Publish.GacRemove function to remove an assembly from GAC. However,
Im trying to do simple audio player, but I want use a image(icon) as
I want use MVVM design pattern in WPF and Silverlight Application. Where can i
I want use localized strings from resources in xsl template as in aspx page,
I want use the Scintilla controls and the RadControls for Winforms, but I do
I want use a query like such SELECT personId FROM Person p Inner Join

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.