Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have installed Jre in my CentOS by following instruction here


But the problem is each directory or file contains the "*" (asterisk) at the end of file name or directory even though i have fired following command

chmod a+x or chmod +x

so please tell me how can i execute the executable file because when i am trying to run "java" its showing me following error

java:command not found

here is the screen shot

Image One

enter image description here

share|improve this question
up vote 1 down vote accepted

The asterisk indicates the specific file is executable, and is only displayed when using a specific argument to ls (-F). Your ls command is likely aliased to include that switch by default. Try navigating to the directory containing java and run ./java, or add that directory to your PATH environment variable.

share|improve this answer
How to set a path ? – Hunt Aug 29 '11 at 14:19

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .