I have Java and Springboot cli added to PATH
however, when source /etc/profile
it gives error.
And on restarting PC, BASH
is not loading.
My export in /etc/profile
export JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.312.b07-2.el8_5.x86_64
export PATH=$PATH:$JAVA_HOME/bin
export CLASSPATH=$JAVA_HOME/jre/lib/ext:$JAVA_HOME/lib/tools.jar
export SPRING_HOME=/home/jacobd/spring-2.7.0/bin
export PATH=$SPRING_HOME/bin
Can anyone guide, where I am doing wrong.