I want to run a jar file on a ubuntu server without writing the full path. Therefore, I would like to edit the .zshrc. I would appreciate it if you could tell us how to set JAVA_HOME and PATH.
I am currently trying that with reference to this web site, but have been unsuccessful because I don't know how to get the path to the jdk. I am having trouble. https://www.ibm.com/docs/en/b2b-integrator/6.0.1?topic=variables-setting-java-linux
CodePudding user response:
# The next var an example path obvs.
export JAVA_HOME=/usr/lib/jvm/bellsoft-java16-amd64
export PATH=$JAVA_HOME/bin:$PATH