Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

global libraries in NetBeans 5

I am using net beans 5 to write java programs. i have included sapjco.jar file in the library of my project. but it runs only once and the next time i run i gives me error saying Native Library C:\WINNT\system32\sapjcorfc.dll already loaded in another classloader

how do i define global library in Netbeans?

complete Error:

java.lang.ExceptionInInitializerError: JCO.classInitialize(): Could not load middleware layer 'com.sap.mw.jco.rfc.MiddlewareRFC'

JCO.nativeInit(): Could not initialize dynamic link library sapjcorfc [Native Library C:\WINNT\system32\sapjcorfc.dll already loaded in another classloader]. java.library.path [C:\j2sdk1.4.2_11\bin;.;C:\WINNT\system32;C:\WINNT;c:\Program Files\Perl\bin\;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\Program Files\OpenAFS\Common;C:\Program Files\OpenAFS\Client\Program;c:\Program Files\Resource Pro Kit\;d\AdminStudio\6.0\ConflictSolver;C:\Program Files\Oracle\jre\1.3.1\bin;C:\Program Files\Oracle\jre\1.1.8\bin;c:\ORACLE\ORA92;c:\ORACLE;c:\ORACLE\ORA92\bin;C:\Program Files\UltraEdit;C:\ABAQUS\Commands;C:\Program Files\Perl\bin;%%%C:\WINNT%%%\system32;%%%C:\WINNT%%%;%%%C:\WINNT%%%\System32\Wbem;c:\PROGRA1\IBM\AFS\Client\Program;c:\PROGRA1\IBM\AFS\DOCUME1;c:\PROGRA1\IBM\AFS\Common;C:\Program Files\Resource Pro Kit;C:\Progra~1\Matlab7\bin\win32;%%%%TEC100HOME%%%%\BIN;c:\Program Files\Common Files\Adaptec Shared\System;ed\DLLShared; c:\sapjco;]

com.sap.mw.jco.JCO.<clinit>(JCO.java:738)

display_vend.doPost(display_vend.java:32)

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)

Not what you were looking for? View more on this topic or Ask a question