Results 1 to 2 of 2
Thread: Question About Shared Objects
- 02-08-2011, 02:20 AM #1Member
- Join Date
- Feb 2011
- Rep Power
Question About Shared Objects
I have a question about shared objects and the JVM. I'm starting off with Light Weight Java Game Library, and one of the files is a shared object (I'm on Ubuntu). They say to include the shared object by using "-Djava.library.path=path/to/dir" My question is, is that sent to the compiler, and do the .so files need to be present in that location on the end users computer as well, or just the developers computer? Thanks in advance.
- 02-08-2011, 03:43 AM #2
Pretty sure you need to have the complete LWJGL available to the user. LWJGL is an openGL and openAL binding for java. This means there is a large collection of java class files you can use, and these in turn make native code calls. The native libs come with LWJGL and are specific to each platform. This means that if you include the exact package you are using, the user must also be on *nix. LWJGL has native code for linux, OSX, and windows - so ideally, you would include everything thats needed. The correct libs can be chosen at run time, as the example apps on the LWJGL site show - they run nicely on whichever platform you try. Good luck!
- By TaxpayersMoney in forum New To JavaReplies: 20Last Post: 05-13-2010, 12:18 PM
- By Cemi in forum New To JavaReplies: 20Last Post: 04-10-2010, 12:42 AM
- By helpisontheway in forum New To JavaReplies: 4Last Post: 01-11-2010, 04:07 AM
- By shroomiin in forum New To JavaReplies: 10Last Post: 10-10-2009, 03:33 AM
- By sergm in forum New To JavaReplies: 2Last Post: 12-27-2007, 05:10 PM