Hi,Need Help

Hi All,

I am geting the follwing error when i try to load library for second time,please help in this regard.

Thank u..

root cause

java.lang.UnsatisfiedLinkError: Native Library C:\j2sdk1.4.2_13\lib\pfcasyncmt.dll already loaded in another classloader

java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1551)

java.lang.ClassLoader.loadLibrary(ClassLoader.java:1511)

java.lang.Runtime.loadLibrary0(Runtime.java:788)

java.lang.System.loadLibrary(System.java:834)

com.servlets.ClassicSingleton.<init>(ClassicSingleton.java:20)

com.servlets.ClassicSingleton.getInstance(ClassicSingleton.java:24)

com.servlets.EditVal.processRequest(EditVal.java:131)

com.servlets.EditVal.doPost(EditVal.java:191)

javax.servlet.http.HttpServlet.service(HttpServlet.java:709)

javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:362)

note The full stack trace of the root cause is available in the Apache Tomcat/5.5.9 logs.

[1098 byte] By [Manju@actualizea] at [2007-11-27 10:46:56]
# 1

Help you with what? The JVM is trying to tell you you cannot load a library twice, and there is no use. What exactly are you trying to achieve with this?

gimbal2a at 2007-7-28 20:21:45 > top of Java-index,Java Essentials,Java Programming...
# 2

Please Post with complete information.

Yannixa at 2007-7-28 20:21:45 > top of Java-index,Java Essentials,Java Programming...
# 3

http://www.javacoffeebreak.com/articles/designpatterns/index.html

chk tht link.. this will help you

thnks

mahesh

smk_511a at 2007-7-28 20:21:45 > top of Java-index,Java Essentials,Java Programming...
# 4

I know,but my application wants to make use of the same library for second time,how to solve this error?

Manju@actualizea at 2007-7-28 20:21:45 > top of Java-index,Java Essentials,Java Programming...
# 5

Hi Yannix ,

I am using load System.loadlibrary in two diffrent modules,when i run second modules ,it gives error,native library loaded>how to unload after running first module? or else continue with loaded library?

Manju@actualizea at 2007-7-28 20:21:45 > top of Java-index,Java Essentials,Java Programming...