users@glassfish.java.net

Re: Native library already loaded in another classloader

From: <glassfish_at_javadesktop.org>
Date: Thu, 29 Apr 2010 15:48:38 PDT

This is a good tutorial, but you need to make one little change

http://codethesis.com/tutorial.php?id=1

Change

File file = new File(name);

to

File file = new File(Thread.currentThread().getContextClassLoader().getResource(name).getFile());
[Message sent by forum member 'lineman78']

http://forums.java.net/jive/thread.jspa?messageID=399676