Results 1 to 2 of 2

Thread: RMI registry

  1. #1
    tarunkumar is offline Member
    Join Date
    Sep 2008
    Rep Power

    Exclamation RMI registry

    Hi can any body help me to start rmiregistry from the java program itself.
    I does not want to start that from command prompt...

  2. #2
    Tequila_Burp is offline Member
    Join Date
    Sep 2008
    Rep Power


    why it doesn't start from command prompt? u can do a little bat file

    Java Code:
    cd %Path to your classes%
    not sure =p it opens rmiregistry but i think u need to be first in your class directory. i don't remember.
    Java Code:
    Runtime r = Runtime.getRuntime();
            Process p = null;
            int pos = System.getProperty("java.home").lastIndexOf("\\");
            String tempPath = System.getProperty("java.home").substring(0, pos) + "/bin/";
            String cmd[] = {tempPath + "\\rmiregistry"};
            try {
                p = r.exec(cmd);
            } catch (IOException e1) {
                // do something
            } catch (InterruptedException e2) {
                // do something

Similar Threads

  1. Registry Problem
    By Mir in forum New To Java
    Replies: 1
    Last Post: 07-19-2008, 05:12 PM
  2. SWT Font Registry Example
    By Java Tip in forum SWT Tips
    Replies: 0
    Last Post: 07-07-2008, 05:46 PM
  3. windows registry
    By Fleur in forum New To Java
    Replies: 3
    Last Post: 06-20-2008, 04:23 AM
  4. could not be found in the registry
    By alam99 in forum Eclipse
    Replies: 0
    Last Post: 01-08-2008, 09:21 AM

Posting Permissions

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