command line arguments

View: New views
2 Messages — Rating Filter:   Alert me  

command line arguments

by Steve Shum :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,
 
How do I enter command line arguments using DrJava?
 
Thanks.
 
steve

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Drjava-users mailing list
Drjava-users@...
https://lists.sourceforge.net/lists/listinfo/drjava-users

Re: command line arguments

by R. Matt Barnett :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
Consider:

public class Foo
{
  public static void main(String[] args)
  {
    System.out.println("arg 0 = " + args[0]);
  }
}

From the interactions pane:

Welcome to DrJava.  Working directory is C:\Documents and Settings\Matt.FT8D\Desktop
> java Foo "Bar"
arg 0 = Bar
>

Hope that helps,
Matt


On 2/8/07, Steve Shum <shum@...> wrote:
Hi,
 
How do I enter command line arguments using DrJava?
 
Thanks.
 
steve

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Drjava-users mailing list
Drjava-users@...
https://lists.sourceforge.net/lists/listinfo/drjava-users



-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Drjava-users mailing list
Drjava-users@...
https://lists.sourceforge.net/lists/listinfo/drjava-users