|Problem with running as configurations on Eclipse HELIOS [message #666568]
||Thu, 21 April 2011 03:57
| No real name
Registered: April 2011
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.
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?
Powered by FUDForum
. Page generated in 0.01727 seconds