Results 1 to 2 of 2
  1. #1
    mattloto is offline Member
    Join Date
    Feb 2011
    Rep Power

    Default 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.

  2. #2
    quad64bit's Avatar
    quad64bit is offline Moderator
    Join Date
    Jul 2009
    Rep Power


    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!

Similar Threads

  1. A question about objects
    By TaxpayersMoney in forum New To Java
    Replies: 20
    Last Post: 05-13-2010, 11:18 AM
  2. Shared variable for other classes
    By Cemi in forum New To Java
    Replies: 20
    Last Post: 04-09-2010, 11:42 PM
  3. initiating objects question(kinda)
    By helpisontheway in forum New To Java
    Replies: 4
    Last Post: 01-11-2010, 03:07 AM
  4. Simple question about objects.
    By shroomiin in forum New To Java
    Replies: 10
    Last Post: 10-10-2009, 02:33 AM
  5. Creating objects question
    By sergm in forum New To Java
    Replies: 2
    Last Post: 12-27-2007, 04:10 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts