Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //http://prntscr.com/564jwg
- //===========================================================================================================
- import net.sf.jni4net.Bridge;
- import system.io.IOException;
- import java.io.File;
- import ps3lib.CCAPI;
- import ps3lib.SelectAPI;
- import ps3lib.Extension;
- import ps3lib.PS3API;
- import ps3lib.ArrayBuilder;
- import ps3lib.EndianType;
- import ps3lib.Lang;
- import ps3lib.EndianType;
- public class JavamyPS3 {
- /**
- * @param args
- */
- public static void main(String[] args) {
- try
- {
- // System.load("C:/Development/DEV/ass/JavPs3/src/ps3lib/PS3Lib.j4n.dll");
- Bridge.setVerbose(true);
- Bridge.init();
- Bridge.LoadAndRegisterAssemblyFrom(new File("C:/Development/DEV/ass/JavPs3/src/PS3Lib.j4n.dll"));
- //DECLARED CCAPI CLASS>//
- ps3lib.PS3API ps3 = new ps3lib.PS3API(null);
- //DECLARED CCAPI CLASS>//
- //ps3.ConnectTarget("192.168.137.100");
- //ps3.GetDllVersion();
- //ps3.Notify(1, "Hello!");
- }
- // TODO Auto-generated method stub
- catch (java.io.IOException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
- }
- }
- /*===========================================================================================================
- COMPILATION:
- //With using ps3lib.CCAPI ccapi = new CCAPI(); //CCAPI Class DECLARATION
- ===========================================================================================================
- loading core from C:/Users/BaSs_HaXoR/Desktop/JNIFORNET/lib/jni4net.n-0.8.8.0.dll
- loading jni4net.n-0.8.8.0, Version=0.8.8.0, Culture=neutral, PublicKeyToken=134a23405600bab4 from C:\Users\BaSs_HaXoR\Desktop\JNIFORNET\lib\jni4net.n-0.8.8.0.dll
- loaded jni4net.n-0.8.8.0, Version=0.8.8.0, Culture=neutral, PublicKeyToken=134a23405600bab4 from C:\Users\BaSs_HaXoR\Desktop\JNIFORNET\lib\jni4net.n-0.8.8.0.dll
- Initialized jni4net core
- core loaded from C:/Users/BaSs_HaXoR/Desktop/JNIFORNET/lib/jni4net.n-0.8.8.0.dll
- clr.version :v4.0.30319
- clr.arch :64bit
- java.home :C:\Program Files\Java\jre7
- java.version :1.7.0_45
- sun.arch.data.model :64
- loading PS3Lib.j4n, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null from C:\Development\DEV\ass\JavPs3\src\PS3Lib.j4n.dll
- loaded PS3Lib.j4n, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null from C:\Development\DEV\ass\JavPs3\src\PS3Lib.j4n.dll
- Exception in thread "main" java.lang.UnsatisfiedLinkError: ps3lib.CCAPI.__ctorCCAPI0(Lnet/sf/jni4net/inj/IClrProxy;)V
- at ps3lib.CCAPI.__ctorCCAPI0(Native Method)
- at ps3lib.CCAPI.<init>(CCAPI.java:25)
- at JavamyPS3.main(JavamyPS3.java:25)
- ===========================================================================================================
- //Without using ps3lib.CCAPI ccapi = new CCAPI(); //NO CCAPI Class DECLARATION
- ===========================================================================================================
- loading core from C:/Users/BaSs_HaXoR/Desktop/JNIFORNET/lib/jni4net.n-0.8.8.0.dll
- loading jni4net.n-0.8.8.0, Version=0.8.8.0, Culture=neutral, PublicKeyToken=134a23405600bab4 from C:\Users\BaSs_HaXoR\Desktop\JNIFORNET\lib\jni4net.n-0.8.8.0.dll
- loaded jni4net.n-0.8.8.0, Version=0.8.8.0, Culture=neutral, PublicKeyToken=134a23405600bab4 from C:\Users\BaSs_HaXoR\Desktop\JNIFORNET\lib\jni4net.n-0.8.8.0.dll
- Initialized jni4net core
- core loaded from C:/Users/BaSs_HaXoR/Desktop/JNIFORNET/lib/jni4net.n-0.8.8.0.dll
- clr.version :v4.0.30319
- clr.arch :64bit
- java.home :C:\Program Files\Java\jre7
- java.version :1.7.0_45
- sun.arch.data.model :64
- loading PS3Lib.j4n, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null from C:\Development\DEV\ass\JavPs3\src\PS3Lib.j4n.dll
- loaded PS3Lib.j4n, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null from C:\Development\DEV\ass\JavPs3\src\PS3Lib.j4n.dll
- ===========================================================================================================*/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement