Author Topic: no lwjgl in java.library.path  (Read 2843 times)

Offline qjvictor

  • int
  • **
  • Posts: 77
    • View Profile
no lwjgl in java.library.path
« on: December 20, 2006, 06:18:34 pm »
I tried many methods, but still this error.

I try to put the lwjgl.dll to a specified folder, such as c:\temp, but how to specify the java.library.path to such a folder?  I used "System.setProperty("java.library.path","C:\\temp");" But doesn't work.

by the way, I am using webstart to show the 3d animation. So it is impossible to use commands such as "-Djava.library.path=path".

Anybody has a solution?

Thanks.

Offline josue.leon7

  • byte
  • *
  • Posts: 1
    • View Profile
Re: no lwjgl in java.library.path
« Reply #1 on: August 16, 2012, 03:46:07 am »
i have the same problem ... give me an answer please do you find the solution qvictor?

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11745
    • View Profile
    • http://www.jpct.net
Re: no lwjgl in java.library.path
« Reply #2 on: August 16, 2012, 08:14:41 am »
For a desktop application see

http://www.jpct.net/wiki/index.php/How_to_install

For webstart, have a look at this example:

Code: [Select]
<?xml version="1.0" encoding="utf-8"?>
<jnlp spec="1.0+" codebase="http://www.jpct.de/robombs" href="robombs.jnlp">
<application-desc main-class="robombs.game.startup.StartUp"/>
<information>
<title>Robombs</title>
<vendor>jPCT - http://www.jpct.net</vendor>
<homepage href="http://www.jpct.de/robombs"/>
<description>Robombs -  multiplayer bombing fun</description>
<icon href="logo.jpg"/>
<icon kind="splash" href="splash.jpg"/>
<offline-allowed/>
</information>
<security>
<all-permissions/>
</security>
<resources>
<j2se version="1.5+" initial-heap-size="256m" max-heap-size="768m"/>
<jar href="robombs.jar" main="true"/>
<jar href="lib/jpct.jar"/>
<jar href="lib/lwjgl.jar"/>
<jar href="lib/lwjgl_util.jar"/>
<!--<extension href="unsigned.jnlp" name="unsigned jars"/>-->
</resources>
<resources os="Windows">
<j2se version="1.5+"/>
<nativelib href="lib/lwjgl_win.jar"/>
<property name="java.library.path" value="." />
</resources>
<resources os="Linux" arch="i386">
<j2se version="1.5+"/>
<nativelib href="lib/lwjgl_linux.jar"/>
<property name="java.library.path" value="." />
</resources>
  <resources os="Mac OS X">
<j2se version="1.5+"/>
    <nativelib href="lib/lwjgl_osx.jar"/>
<property name="java.library.path" value="." />
  </resources>
  <resources os="SunOS" arch="i386">
<j2se version="1.5+"/>
<nativelib href="lib/lwjgl_solaris.jar"/>
<property name="java.library.path" value="." />
  </resources>
</jnlp>