I am not yet a Linux guy and I have the following problem with environment variable.
So I want to add a permanent environment variable and I do in this way:
I open the /etc/profile file and I add this line at the end of this file:
Where /opt/apache-tomcat-8.0.24 is the folder that contain the tomcat installation (it contains the bin TomCat subfolder)
Then I save this file.
So I close the shell and I reopen it and I try to do:
andrea@andrea-virtual-machine:/$ sudo ./startup.sh sudo: ./startup.sh: command not found
To start the server instead enter into /opt/apache-tomcat-8.0.24/bin/ and perform the command.
But as you can see I obtain an error. What am I missing?