Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Asterisk Input - resolves to ".classpath"(Problem when asterisk placed in Run Configurations > Arguments tab)
Asterisk Input - resolves to ".classpath" [message #665014] Tue, 12 April 2011 20:08 Go to next message
No real name is currently offline No real nameFriend
Messages: 1
Registered: April 2011
Junior Member
I'm creating a simple calculator application for a Java course I'm taking. A mathematical expression is fed to the main() method by means of Run > Run Configurations > Arguments tab. On the Arguments tab, I've entered the below (with spaces between each character):
7 * 5 =

The app is looping over each character in the String [ ] args, and it breaks when it gets to the asterisk. For some reason, the value of the asterisk character string is resolving to ".classpath".

To illustrate, while debugging I output the value of each character within the loop:

And get this result:

Is this expected behavior? Should I be escaping the asterisk or doing something special to it?

Re: Asterisk Input - resolves to ".classpath" [message #665049 is a reply to message #665014] Wed, 13 April 2011 06:22 Go to previous message
Satyam Kandula is currently offline Satyam KandulaFriend
Messages: 444
Registered: July 2009
Senior Member
The OS could be resolving the asterisk to the list of files in the working directory. Yes, you need to escape it.
Previous Topic:Eclipse EE doesnot start at all
Next Topic:Remove qualifiers of a qualified name node
Goto Forum:

Current Time: Tue May 22 23:46:22 GMT 2018

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

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

Back to the top