Results 1 to 2 of 2
  1. #1
    roughjj is offline Member
    Join Date
    Sep 2009
    Posts
    13
    Rep Power
    0

    Default How to "Prompt" main method?

    I have the following code...

    How do i configure Eclipse to "prompt me" with the argument

    Java Code:
    public static void main(String[] args)
        {
        new DemoKMeansImageClustering(args[0],args[1]);
        }
    In this case, it'll be easier to give two input

  2. #2
    r035198x is offline Senior Member
    Join Date
    Aug 2009
    Posts
    2,388
    Rep Power
    7

    Default

    You'll have to configure a Run Configuration dialog for your class and add the argiments on the program arguments tab.

Similar Threads

  1. Replies: 6
    Last Post: 07-16-2009, 03:30 PM
  2. Replies: 1
    Last Post: 07-16-2009, 10:35 AM
  3. Replies: 1
    Last Post: 10-20-2008, 07:35 AM
  4. the method "main"
    By Z.S.Tehrani in forum New To Java
    Replies: 6
    Last Post: 08-10-2008, 03:07 PM
  5. Replies: 1
    Last Post: 08-07-2007, 07:10 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
  •