Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

share|improve this question

1 Answer 1

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
1  
@Hunt - superuser.com/questions/251038/add-folder-to-path –  John T Aug 29 '11 at 14:25

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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