asadmin command doesn't work in ubuntu

10,072

Solution 1

In Ubuntu and Linux in generál, you run commands from current directory like this: ./asadmin, ie. you must prepend ./ to make it explicit that you run a command I current directory. This is traditionally for some security reasons.

Solution 2

Try following command export PATH=/installationDirectory/glassfishName/bin:$PATH

In my case it was export PATH=/opt/glassfish4/bin:$PATH

Share:
10,072
Július Marko
Author by

Július Marko

less facebook, more face in a book

Updated on June 11, 2022

Comments

  • Július Marko
    Július Marko almost 2 years

    I'm using Java EE with Glassfish.

    I can't run asadmin command as well. I did the following, but output from terminal is:

    No command 'asadmin' found, did you mean: Command 'amadmin' from   package 'amanda-server' (universe) Command 'acsadmin' from package'ion' (universe) asadmin: command not found
    

    I have Ubuntu 14.04 Trusty Tahr. I should be in bin directory of glassfish, so I'm in /opt/glassfish4/bin. But always nothing happend, just error message above.