0

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

Hunt
  • 133
  • 3
  • 8

1 Answers1

1

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.