Results 1 to 2 of 2
  1. #1
    TurtleOnIce is offline Member
    Join Date
    Nov 2011
    Cheyenne, Wyoming
    Rep Power

    Default problem executing dos commands in program

    hey all,
    i am workin on a program for school and runnin into a snag. we are supposed to make a program that simulates traffic conditions in a town and determine whether adding a dedicated left turn arrow eases conjestion ornot. i would like to go a step further and create a little print out of these "cars" in my queues. the problem i forsee is that java has no cls. i have researched online and found an ingenious solution that just uses dos commands. well i am having trouble getting them to execute correctly. here i hope is a screenshot of my problem:
    problem executing dos commands in program-20111120_151007-1622372780.jpg
    sorry about all the message boxes. i forgot to take them out. but as you can see the error isin the runtime command. if you can see any error i have or know of an alternate way to force java to cls i would appreciate any help.

    if the pic did not post ill type in the code when i get a chance
    thanks for any help.

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Blog Entries
    Rep Power

Similar Threads

  1. Replies: 7
    Last Post: 02-10-2011, 07:37 PM
  2. skip executing commands
    By sara12345 in forum New To Java
    Replies: 3
    Last Post: 04-12-2010, 10:10 PM
  3. Need Help to Execute the commands from Java Program
    By Anjaneyulu in forum Advanced Java
    Replies: 7
    Last Post: 02-24-2010, 02:35 PM
  4. problems with executing unix commands
    By shanky in forum Advanced Java
    Replies: 1
    Last Post: 02-18-2010, 05:36 AM
  5. Execute the commands in Jsp Program
    By swetha_2008 in forum JavaServer Pages (JSP) and JSTL
    Replies: 0
    Last Post: 12-17-2008, 06:04 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