john.stalin.java
07-11-2010, 01: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:
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: