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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T15:28:57+00:00 2026-05-23T15:28:57+00:00

So, on 64-bit Ubuntu I’m developing with LWJGL, but code that worked perfectly well

  • 0

So, on 64-bit Ubuntu I’m developing with LWJGL, but code that worked perfectly well on Windows (and Mac, though I’ve tested that much less) is having issues on my new machine.

Basically, if I attempt to init fullscreen mode, the application ends up in a window instead of taking over the view, an performance is very slow (about 1/2 to 1/3 of what it should be).

Funnily enough, rarely (about 5% of the time) everything works perfectly and performance is good.

After doing some research on Google, it seems like this is due to issues with the X Windowing system. I found an article here that suggests calling XInitThreads() in the application before setting anything else up. Unfortunately, how do I make the call?

I realize that I can use

Process p = Runtime.getRuntime().exec("The system command goes here");

to execute system commands, but I don’t know the command to use.

  • 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-23T15:28:58+00:00Added an answer on May 23, 2026 at 3:28 pm

    Unfortunately, you can’t solve your problem with exec. The process — in this case, the JVM process — has to make that call. The link you reference is describing the unfortunate fact that the JVM does not make it. It is very unlikely that you can introduce this for yourself.

    Talking to the X API is a fundamental activity of the JVM: it’s how AWT is implemented in this environment. Since the JVM is already using X to talk to the display, you can’t just introduce one little extra call. The necessary place to put that call is in the middle of the X init code in the JVM.

    OpenJDK is open source. You could make your own version, but I can’t recommend that.

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

Sidebar

Related Questions

I'm currently developing my Django projects on both: Mac OS X 10.5, 32 bit
A bit of a neophyte haskell question, but I came across this example in
A bit of background first: I am using base code from a remote SVN
This is a bit of a long shot, but if anyone can figure it
The following bit of code catches the EOS Exception using (var reader = new
(My environment is 64-bit Ubuntu, my application is C++ compiled and linked with g++.)
I have a simple C++ program compiled using gcc 4.2.4 on 32-bit Ubuntu 8.04.
My .deb package, built on 32-bit Ubuntu and containing executables compiled with gcc, won't
I have Ubuntu 8.04 running on a Xen based VPS server that runs on
Bit of an obscure one this. My setup is all running on my local

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.