Problem using in linux?

Started by Raelus, January 01, 2006, 22:14:43

Previous topic - Next topic

Raelus

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)

Fool Running

What Java version are you using?
Programmers will, one day, rule the world... and the world won't notice until its too late.Just testing the marquee option ;D

Raelus


Fool Running

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
Programmers will, one day, rule the world... and the world won't notice until its too late.Just testing the marquee option ;D

elias4444

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.
=-=-=-=-=-======-=-=-=-=-=-
http://www.tommytwisters.com

Raelus

Well, thanks for the help anyway, it looks like my distro is having issues with the 1.5 jre at the moment.

elias4444

What distro? I'd like to see what's going on.
=-=-=-=-=-======-=-=-=-=-=-
http://www.tommytwisters.com

Raelus

Gentoo. There's an issue with backwards compatiblity, it seems.

elias

I've converted getenv() to Boolean.getBoolean() to avoid the compatibility problem.

- elias

skryking

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

leonel

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 ?