Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » How to set an argument to my project
How to set an argument to my project [message #66513] Thu, 19 May 2005 13:30 Go to next message
Eclipse UserFriend
Originally posted by: aaa.bbb.com

I'd like to pass an argument into a Java class, how do I config this, do I
have to create a new Builders for the project?

thanks.
Re: How to set an argument to my project [message #66637 is a reply to message #66513] Thu, 19 May 2005 14:01 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipse.rizzoweb.com

Scottie wrote:
> I'd like to pass an argument into a Java class, how do I config this, do I
> have to create a new Builders for the project?

You run Java programs in Eclipse using what is called a Launch
Configuration. There are several ways to create a Launch Config, one of
which is to right-click on the class (the one that has a main(String[])
method) and choose Run... from the pop-up menu.
You can also Choose Run > Run... from the main menu bar and create a
Launch Config form scratch.

In either case, there is an Arguments tab for launch configs where you
can specify program arguments.

Also see the Eclipse help for more info on Launch Configurations.

HTH,
Eric
Re: How to set an argument to my project [message #67044 is a reply to message #66637] Fri, 20 May 2005 13:26 Go to previous message
Eclipse UserFriend
Originally posted by: aaa.bbb.com

Oh Eric! I can. Thanks a lot.

"Eric Rizzo" <eclipse@rizzoweb.com> wrote in message
news:d6i6aq$u0u$1@news.eclipse.org...
> Scottie wrote:
>> I'd like to pass an argument into a Java class, how do I config this, do
>> I have to create a new Builders for the project?
>
> You run Java programs in Eclipse using what is called a Launch
> Configuration. There are several ways to create a Launch Config, one of
> which is to right-click on the class (the one that has a main(String[])
> method) and choose Run... from the pop-up menu.
> You can also Choose Run > Run... from the main menu bar and create a
> Launch Config form scratch.
>
> In either case, there is an Arguments tab for launch configs where you can
> specify program arguments.
>
> Also see the Eclipse help for more info on Launch Configurations.
>
> HTH,
> Eric
Previous Topic:Multiplatform Installation Issue (Solaris, Linux)
Next Topic:Separate Eclipse and Plugins Installation Issue
Goto Forum:
  


Current Time: Thu Jul 04 09:25:49 GMT 2024

Powered by FUDForum. Page generated in 0.07566 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top