Results 1 to 5 of 5

Thread: excute command

  1. #1
    jperson is offline Member
    Join Date
    Jan 2010
    Posts
    61
    Rep Power
    0

    Default excute command

    i want to excute cmd command using java

    Process proc = rt.exec("net start OracleDBConsoleORCL");

    the result of this command is : Error: System error 5 has occurred.Access is denied.

    this command want administrator privledge , i need help ??

  2. #2
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,423
    Rep Power
    25

    Default

    What OS? Is this an OS issue vs a Java programming problem?

  3. #3
    jperson is offline Member
    Join Date
    Jan 2010
    Posts
    61
    Rep Power
    0

    Default

    my OS is Windows Vista

  4. #4
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    12,014
    Rep Power
    20

    Default

    If it needs administrator privileges then the person running that Java needs to have administrator privileges.

    Not a great deal to do with Java...

  5. #5
    ajaysingh87 is offline Member
    Join Date
    Jul 2010
    Location
    India, Mumbai
    Posts
    5
    Rep Power
    0

    Default

    which database console you are using to execute this commond...(SINGH IS KING)

Similar Threads

  1. Does the JRE come with command to run?
    By gotenks05 in forum New To Java
    Replies: 5
    Last Post: 10-25-2008, 12:00 AM
  2. Edit Command
    By viji83 in forum New To Java
    Replies: 1
    Last Post: 08-15-2008, 03:26 AM
  3. command
    By dirtycash in forum New To Java
    Replies: 8
    Last Post: 01-02-2008, 07:52 PM
  4. command help
    By dirtycash in forum New To Java
    Replies: 1
    Last Post: 12-05-2007, 12:24 AM
  5. Unable to execute command line command in java
    By LordSM in forum New To Java
    Replies: 1
    Last Post: 08-08-2007, 12:23 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
  •