Results 1 to 3 of 3

Thread: why my jshooter code not work probably?

  1. #1
    Join Date
    Jul 2010
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default why my jshooter code not work probably?

    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 ?

  2. #2
    Join Date
    Oct 2009
    Posts
    845
    Thanks
    14
    Thanked 189 Times in 188 Posts

    Default

    Try here

  3. #3
    Join Date
    Jul 2010
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •