Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » "Program arguments" greyed out(Unable to enter "program arguments" to a java program)
"Program arguments" greyed out [message #697476] Sat, 16 July 2011 18:44 Go to next message
Glen  is currently offline Glen
Messages: 1
Registered: July 2011
Junior Member
From a total newbie.

I am trying to enter "Program arguments" in a "Run Configurations" but the program arguments box is greyed out.

The program requires two parameters:

public static void main(String[] args) throws Exception {
Configuration conf = new Configuration();
String[] otherArgs = new GenericOptionsParser(conf, args).getRemainingArgs();
if (otherArgs.length != 2) {
System.err.println("Usage: wordcount <in> <out>");
System.exit(2);
}
...

There are no errors in the program. I have saved it. I go to Run Configurations > Java Application > Arguments (tab). The "Program arguments" box is greyed out.

In the bottom right of the box, there is the "Variables ..." box, but that seems to be not where I should be doing anything.

RHEL 5.4, Eclipse 3.2. This use of Eclipse is part of a wider framework/application environment and thus the problem cannot be solved by just replacing Eclipse itself.

Any suggestions as to how to proceed.

[Updated on: Sat, 16 July 2011 19:53]

Report message to a moderator

Re: &quot;Program arguments&quot; greyed out [message #697864 is a reply to message #697476] Mon, 18 July 2011 04:26 Go to previous message
Dani Megert is currently offline Dani Megert
Messages: 3801
Registered: July 2009
Senior Member
On 17.07.2011 00:44, Glen wrote:
> From a total newbie.
>
> I am trying to enter "Program arguments" in a "Run Configurations" but the program arguments box is greyed out.
>
> The program requires two parameters:
>
> public static void main(String[] args) throws Exception {
> Configuration conf = new Configuration();
> String[] otherArgs = new GenericOptionsParser(conf, args).getRemainingArgs();
> if (otherArgs.length != 2) {
> System.err.println("Usage: wordcount<in> <out>");
> System.exit(2);
> }
> ...
>
> There are no errors in the program. I have saved it. I go to Run Configurations> Java Application> Arguments (tab). The "Program arguments" box is greyed out.
>
> In the bottom right of the box, there is the "Variables ..." box, but that seems to be not where I should be doing anything.
>
> RHEL 5.4, Eclipse 3.2.
>
> Any suggestions as to how to proceed.
Upgrade to 3.7 and see whether this fixes the problem.

Dani
Previous Topic:Cannot set a bookmark inside a Hibernate mapping file?
Next Topic:dynamically installing a presentation reconciler
Goto Forum:
  


Current Time: Wed Apr 16 15:54:07 EDT 2014

Powered by FUDForum. Page generated in 0.02042 seconds