Manual installation of Glassfish on Ubuntu

I just installed Glassfish on my Ubuntu server (no GUI) using THIS . Everything went smoothly. But now when I try to play with the ASADMIN tool, it tells me this:

The program 'asadmin' is not currently installed. You can install it input: apt-get install glassfishv2 - bash: asadmin: command not found

So, to run the asadmin tool, you always need to type:

/ opt / glassfish / bin / asadmin starting domain1

or go to that folder and run it from there.

So the question is which file do I need to edit in order to set this path to the environment.

0


a source to share


2 answers


You can add the following to your ~ / .bashrc file to add all binaries in / opt / glassfish / bin to your $ PATH

export PATH=$PATH:/opt/glassfish/bin

      



~ expands to / home / your -user - just to be clear.

+3


a source


Just enter CLI:



export PATH = / opt / glassfish / bin /: $ PATH

+1


a source







All Articles