Symantec Privileged Access Management

 View Only
  • 1.  PAM A2A example running in JAVA

    Posted Feb 19, 2020 07:58 AM
    Dear Folks,

         We are trying to compiling an A2A sample code. But getting below error.
    I have imported the jar files as visible in screenshot. Please see the screenshot attached. Please help me to compile the java file. 


    Exception in thread "main" java.lang.UnsatisfiedLinkError: no cpaspiffadaptor64 in java.library.pathException in thread "main" java.lang.UnsatisfiedLinkError: no cpaspiffadaptor64 in java.library.path at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1867) at java.lang.Runtime.loadLibrary0(Runtime.java:870) at java.lang.System.loadLibrary(System.java:1122) at com.cloakware.cspm.common.security.DelegateSecurityModule.<clinit>(SourceFile:24) at com.cloakware.cspm.client.a.e.<clinit>(SourceFile:24) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:423) at java.lang.Class.newInstance(Class.java:442) at com.cloakware.cspm.client.a.c.<init>(SourceFile:1061) at com.cloakware.cspm.client.a.c.a(SourceFile:35) at com.cloakware.cspm.client.CSPMClient.<init>(SourceFile:119) at Example.main(Example.java:82)C:\Users\Administrator\AppData\Local\NetBeans\Cache\8.2\executor-snippets\run.xml:53: Java returned: 1BUILD FAILED (total time: 2 seconds)


    Thanks,









  • 2.  RE: PAM A2A example running in JAVA

    Broadcom Employee
    Posted Feb 19, 2020 10:14 AM
    Hello, This library is in cspmclient/lib where the A2A client is installed. It looks like your library path is not configured correctly, missing that path. Or you need to copy all files from that directory over to where you have your libraries.


  • 3.  RE: PAM A2A example running in JAVA

    Posted Feb 20, 2020 01:23 AM
    Thank You Ralf for quick reply,

    I imported all the files in the library, as you can see some part is working fine that means its getting the library path correct. 
    I tried to compile the code without netbeans IDE also. I am getting exactly same error.
    I have highlighted the class name which the compiler is missing. Its .dll file. can you please let me know how to use .dll files in library path.

    Thank you in Advance...




  • 4.  RE: PAM A2A example running in JAVA
    Best Answer

    Posted Feb 20, 2020 03:21 AM
    Thank you Ralf,

        Now it got resolved. I tried to rebuild and upgraded the IDE. Its working fine now.

    Thanks,