java: command not found after installation

5,361

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:
5,361

Related videos on Youtube

axiorema
Author by

axiorema

Updated on September 18, 2022

Comments

  • axiorema
    axiorema over 1 year

    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

  • axiorema
    axiorema over 12 years
    How to set a path ?
  • John T
    John T over 12 years