LWJGL
May 19, 2013, 17:49:11 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: LWJGL 2.9.0 released!
 
   Home   Help Search Login Register  



Pages: [1]
  Print  
Author Topic: [FIXED] applet loader + natives  (Read 1266 times)
NateS
Regular nerd
**
Posts: 79


« on: January 12, 2011, 06:18:15 »

I had trouble loading my own natives when using the applet loader. My native was extracted to the temp dir, but not found when my code did System.loadLibrary("name"). I see the applet loader sets java.library.path, not sure why that wasn't enough. I added this code to the URLClassLoader in the applet loader:

Code:
protected String findLibrary (String libname) {
return path + "natives/" + System.mapLibraryName(libname);
}

This allowed my native to be loaded.
Logged
kappa
Administrator
Nerdus Imperius
*****
Posts: 1111



« Reply #1 on: January 12, 2011, 12:19:01 »

fixed.

thx.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines
SMFAds for Free Forums
Valid XHTML 1.0! Valid CSS!