Starting LWJGL from LWJGL on Linux

Started by kevglass, December 01, 2006, 19:45:58

Previous topic - Next topic

kevglass

I'm writing a kinda front end for running games:

http://slick.cokeandcode.com/demos/playground.jnlp

However, it won't launch games on linux. The client itself starts a VM (with appropriate secutity settings and what not) which starts the launched game. On windows and mac things work fine, on linux I'm getting this:

Exception in thread "main" java.lang.UnsatisfiedLinkError:
/home/<username>/.playground/cache/shrooms/liblwjgl.so:
/usr/lib/j2sdk1.6-sun/jre/lib/i386/libjawt.so: symbol
awt_FreeDrawingSurface, version SUNWprivate_1.1 not defined in file
libmawt.so with link time reference

This is reported on both 1.5 and 1.6 VMs. However, running two instances of an LWJGL application works fine so I'm at a loss to explain why starting the second VM from the first cause the problem. Some inherited stuff to a process on linux?

Any suggestions/help appreciated.

Kev

elias

The Linux JRE has several libmawt.so, an old one for a motif backend, one newer for directly linking to Xlib and one for headless operation. I think your second JVM is somehow thinking it is in headless mode, whose libmawt.so doesn't have any JNI symbols in it.

- elias

kevglass

Yep, turned out to be some environment setting in the original VM that made it link to the right one, which I wasn't copying through the new env.

Thanks for the info!

Kev