Results 1 to 2 of 2

Thread: Running rmid from a java prog

  1. #1
    Commander Keen
    Join Date
    Nov 2003
    Location
    217.27.240.214
    Posts
    624
    Thanks
    0
    Thanked
    0 times in 0 posts

    Running rmid from a java prog

    I need to write some code that starts a jini network from a gui that takes various bits of data. like port numbers, log directories etc...

    This part works.

    The terminal commands are generated correctly by the program - I have pasted them into a term and they work. But apparently the java application itself does not have the privilages to run the rmid.

    Does anyone know how to get round this ?

  2. #2
    Commander Keen
    Join Date
    Nov 2003
    Location
    217.27.240.214
    Posts
    624
    Thanks
    0
    Thanked
    0 times in 0 posts
    Just for the general good of code monkey kind. I fixed this about two min after I posted. I guess the slight change altered my thinking enough to look at it from a different way.

    My guess was correct. The gui prog did not have the privilages to run other java progs (because they are possibly viruses). So the answer is to pass a security policy file to the JVM of the gui. like this.

    java -Djava.security.policy=policy prog.

    Assuming that policy exists in the current directory and also that it grants the correct permissions.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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