I have installed Jre in my CentOS by following instruction here

Installation

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

link|improve this question
feedback

1 Answer

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.

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

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.