i am using ubuntu 14.04 and i have to follow a list of 3-4 steps to use antlr4 for parsing (everytime).In windows there is a temporary as well as a permanent way .but in ubuntu every time terminal opens then i have to follow these steps given on the official website.
http://www.antlr.org/
4 steps are:
$cd /usr/local/lib
$ sudo curl -O http://www.antlr.org/download/antlr-4.4-complete.jar
$ export CLASSPATH=".:/usr/local/lib/antlr-4.4-complete.jar:$CLASSPATH"
$ alias antlr4='java -jar /usr/local/lib/antlr-4.4-complete.jar'
$ alias grun='java org.antlr.v4.runtime.misc.TestRig'
curl is for downloading once into usr\local\lib
is there any permanent way of getting anlr4 work?