2

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'
Force Gaia
  • 145
  • 5

1 Answers1

1

I'd put both your export definitions and the alias commands to your .bashrc.