Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8037549
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T02:57:44+00:00 2026-06-05T02:57:44+00:00

Possible Duplicate: Java command line arguments. Using * as an argument for multiplication i

  • 0

Possible Duplicate:
Java command line arguments. Using * as an argument for multiplication

i just wanted to write a simple calculator.
If i enter 2 * 3 as parameters the array will look like this afterwards:

[2, .classpath, .project, .settings, bin, src, 3]

This happens for all our Eclipse installs in the company “Version: Indigo Service Release 2
Build id: 20120216-1857”

A friend of mine doesnt have this problem, so does anyone know the root of this problem?

greetings

Nico

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T02:57:45+00:00Added an answer on June 5, 2026 at 2:57 am

    The parameter * gets replaced by the shell interpreter with the list of files in the current working directory. This typically happens on Linux/Unix platforms, but not (necessarily) on Windows. Does your friend use a Windows machine?

    In other words, this has nothing to do with Java, but with the shell command interpreter which interprets your command line prior to executing java. To avoid it, you need to single-quote sensitive parameters, like java MyApp 2 '*' 3.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: Build Eclipse Java Project from Command Line I want to compile my
Possible Duplicate: Java GUI repaint() problem? I write a Java code, but I have
Possible Duplicate: Java execute a command with a space in the pathname I am
Possible Duplicate: In Java, is there a way to write a string literal without
Possible Duplicate: Java Generics In Eclipse, I am given warnings for using 'rawtypes' and
Possible Duplicate: Passing arguments to JAR which is required by Java Interpreter how to
Possible Duplicate: How to get vm arguments from inside of java application? I want
Possible Duplicate: Java code to execute a .sh file I write the code in
Possible Duplicate: run shell command from java I'm trying to run a process with
Possible Duplicate: Java external program I am trying to wrtie a program to write

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.