Advertisement
BenATekotrope

loadLibs()

May 7th, 2013
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.85 KB | None | 0 0
  1. public static void loadLibs()
  2. {
  3.         try
  4.         {
  5.             if (shouldLoadLinuxResources())
  6.             {
  7.                 extractResourceToWorkingDir("/lib/linux", "ssc.so");
  8.             }
  9.         }
  10.         catch (Exception error)
  11.         {
  12.             System.out.println("Failed to extract Working dir ssc.so");
  13.             error.printStackTrace();
  14.         }
  15.        
  16.         try
  17.         {
  18.             loadNativeLibrary("ssc");
  19.         }
  20.         catch (Exception error)
  21.         {
  22.             System.out.println("Failed to load ssc library");
  23.             error.printStackTrace();
  24.         }
  25.        
  26.         try
  27.         {
  28.             loadNativeLibrary("SSCAPIJNI");
  29.         }
  30.         catch (Exception error)
  31.         {
  32.             System.out.println("Failed to load SSCAPIJNI library");
  33.             error.printStackTrace();
  34.         }
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement