Results 1 to 2 of 2
  1. #1
    mike_ledis is offline Member
    Join Date
    Mar 2010
    Posts
    24
    Rep Power
    0

    Default System call with java 3

    Hallo i am trying to execute some programs through java. I want to execute the following programs gedit,firefox,gimp,nano and blackjack (i am using ubuntu linux o/s).

    I managed to execute all the programs except blackjack.
    I am using the command
    Runtime.getRuntime().exec();
    when i give as input to the command the full directory of the blackjack(usr/games/blackjack) it does not work.

    Any suggestions?

  2. #2
    sukatoa's Avatar
    sukatoa is offline Senior Member
    Join Date
    Jan 2008
    Location
    Cebu City, Philippines
    Posts
    556
    Rep Power
    7

    Default

    Maybe it requires a root user or the administrator privilege. Did you check on it?
    freedom exists in the world of ideas

Similar Threads

  1. System call with java
    By mike_ledis in forum Advanced Java
    Replies: 5
    Last Post: 03-25-2010, 11:36 PM
  2. Replies: 3
    Last Post: 02-07-2010, 08:34 PM
  3. how to call dll from java ??
    By Omarero in forum New To Java
    Replies: 3
    Last Post: 11-13-2008, 05:14 AM
  4. how to call a dll from java
    By katie in forum Advanced Java
    Replies: 3
    Last Post: 12-10-2007, 10:34 AM
  5. help with System.exit (1) function call
    By katie in forum Advanced Java
    Replies: 2
    Last Post: 08-06-2007, 08:03 PM

Posting Permissions

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