PDA

View Full Version : why my jshooter code not work probably?



john.stalin.java
07-11-2010, 02:12 PM
The jshooter Framework works like RMI but maybe simpler. I miss some library files i don't have library for this code what .jar files should i add to my project review my code if u need it ! i have only 3 file in 2 packages


fine name : MyClass
-------------------
package server;

public class MyClass { public String msg;

public String writeMsg() {
System.out.println(msg);

return msg + " recived";
}

}


file name : Distributer
---------------------
package server;

import org.j2os.shine.jshooter.*;


public class Distributer {
public static void main(String[] arg) throws Exception {
Application app = new Application();
app.distribute(1099, "myapp");
}
}


file name : Invoker
------------------
package client;

import org.j2os.shine.jshooter.*;


public class Invoker {
public static void main(String[] arg) throws Exception {
ServerApplication sapp = new Application().receive("paris", "myapp");
sapp.newInstance("server.MyClass");
sapp.setFieldValue("msg", new String("hello"));
System.out.println(sapp.invokeMethod("writeMsg"));
}
}


anyway Where can i download the libraries ? :confused:

azoomer
07-11-2010, 02:29 PM
Try here (http://www.google.no/search?q=linkbait&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a)

sally
07-11-2010, 09:44 PM
I found this link try it:

http://sourceforge.net/projects/shine-enterpris/files/