I'm trying to set up Antlr 4.5 as per the instructions here but the alias isn't accessible from where I've put my project after a reboot, which makes me wonder if I've done the classpath step correctly.
The tutorial says to add export CLASSPATH=".:/usr/local/lib/antlr-4.5-complete.jar:$CLASSPATH" to .bash_profile or whatever my startup script is.
After finding that .bash_profile didn't exist on my system I discovered that the Ubuntu equivalent is apparently .profile. As a result I put that line on the end thinking that was right.
But the aliases don't survive the reboot either, so what am I missing? do I need to add the following to .profile too?
alias antlr4='java -Xmx500M -cp "/usr/local/lib/antlr-4.5-complete.jar:$CLASSPATH" org.antlr.v4.Tool'
alias grun='java org.antlr.v4.runtime.misc.TestRig'
.bashrc. If anyone does, they don't know what they're talking about..profileis not read by most shells (for more detail than you probably want, see here), the correct file to edit is~/.bashrc. – terdon May 05 '15 at 12:12