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)
What Java version are you using?
Blackdown 1.4.2.02
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
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.
Well, thanks for the help anyway, it looks like my distro is having issues with the 1.5 jre at the moment.
What distro? I'd like to see what's going on.
Gentoo. There's an issue with backwards compatiblity, it seems.
I've converted getenv() to Boolean.getBoolean() to avoid the compatibility problem.
- elias
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
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 ?