LWJGL Forum

Programming => Lightweight Java Gaming Library => Topic started by: Raelus on January 01, 2006, 22:14:43

Title: Problem using in linux?
Post by: Raelus on January 01, 2006, 22:14:43
I've tried running several lwjgl programs on my system, each time I get this error:

Exception in thread "main" java.lang.Error: getenv no longer supported, use properties and -D instead: LWJGL_DISABLE_XRANDR
   at java.lang.System.getenv(System.java:691)
   at org.lwjgl.opengl.LinuxDisplay.isXrandrSupported(LinuxDisplay.java:124)
   at org.lwjgl.opengl.LinuxDisplay.getBestDisplayModeExtension(LinuxDisplay.java:110)
   at org.lwjgl.opengl.LinuxDisplay.init(LinuxDisplay.java:366)
   at org.lwjgl.opengl.Display.<clinit>(Display.java:107)
Title: hmmmm...
Post by: Fool Running on January 02, 2006, 01:57:21
What Java version are you using?
Title: Problem using in linux?
Post by: Raelus on January 03, 2006, 16:08:00
Blackdown 1.4.2.02
Title: hmmmmmm...
Post by: Fool Running on January 03, 2006, 19:15:19
It looks like your Java version doesn't support the getenv function. Might check the source to be sure (If possible).
Someone else could chime in here.  :D
Title: Problem using in linux?
Post by: elias4444 on January 03, 2006, 20:13:34
Definitely try running the latest Sun version of Java with this stuff. I'm an avid Linux user, and have noticed much better performance out of Sun's Java 1.5 than the previous Blackdown version (or GCJ for that matter). It's not hard to install. An RPM is available for Redhat-like distributions, and make-jpkg is available for Debian-like distros. Let me know what distribution you're running and I might be able to help you further.
Title: Problem using in linux?
Post by: Raelus on January 03, 2006, 21:07:50
Well, thanks for the help anyway, it looks like my distro is having issues with the 1.5 jre at the moment.
Title: Problem using in linux?
Post by: elias4444 on January 03, 2006, 22:33:11
What distro? I'd like to see what's going on.
Title: Problem using in linux?
Post by: Raelus on January 04, 2006, 00:10:38
Gentoo. There's an issue with backwards compatiblity, it seems.
Title: Problem using in linux?
Post by: elias on January 04, 2006, 07:36:04
I've converted getenv() to Boolean.getBoolean() to avoid the compatibility problem.

- elias
Title: Problem using in linux?
Post by: skryking on February 09, 2006, 03:21:23
I've been using lwjgl on my gentoo system with suns 1.5 jdk for quite a while...the trick is to leave the system wide java version at what ever version you are currently using, and use the java-config to configure your normal user account to use the 1.5 jdk...

Skryking
Title: Problem using in linux?
Post by: leonel on March 03, 2006, 20:46:27
Quote from: "elias"I've converted getenv() to Boolean.getBoolean() to avoid the compatibility problem.

- elias

The call to getenv still happens in v0.99. I suppose this correction will only be available in 1.0 ?