Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Problem with running as configurations on Eclipse HELIOS
Problem with running as configurations on Eclipse HELIOS [message #666568] Thu, 21 April 2011 03:57
No real name is currently offline No real nameFriend
Messages: 1
Registered: April 2011
Junior Member
I have a problem when I run my program with arguments on Eclipse.
I know how to run my program with arguments on Eclipse.

The problem is when I use a special charters, asterisk(*).
(I already know escaping is needed.)

Although I formatted an asterisk by embracing with double quotes("*"), Eclipse cannot translate it as an asterisk.

I set arguments 1 "*" 3, but it doesn't work.

My program which is a very simple Calculator uses three arguments.
The 1st is operand1, the 2nd is a operator, and the last is operand2.

For example,

Input) MyProgram 3 + 3
Result) 3 + 3 = 6

Input)MyProgram 3 * 3
Result) 3 * 3 = 9

When I use command-line, it works.
But when I use eclipse, it doesn't work.

The output is here.
(the input: 1 "*" 3)


0 : 1
1 : .classpath
2 : .project
3 : .settings
4 : bin
5 : src
6 : 3

Usage: java Calculator operand1 operator operand2


In my opinion, it is an Eclipse bug.
Am I right?
Previous Topic:SOLVED: Problems installing plugins
Next Topic:Custom intelligent java template
Goto Forum:
  


Current Time: Sun Nov 23 21:34:32 GMT 2014

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

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