Spindoctor
Spindoctor

Reputation: 471

Installing Java, Tomcat and Maven on Nobara Linux

I am trying to get some devleopment tools working in Nobara Linux 41

Nobara comes with Java installed so I just need to set the JAVA_HOME for Java only.

I have dowwnloaded the zip packages for TomCat and Maven and they reside in the /Tools folder. I have configured the following in my .bash_profile and even though I can see the paths in the PATH, mvn is not found not can I star the Tomcat server using startup.sh

Can I get some guidance and advice on how to properly set this up?

This is how I have configured my .bash_profile:

# .bash_profile

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
    . ~/.bashrc
fi

# User specific environment and startup programs
export TOOLS=/Tools
# Tomcat
export CATALINA_HOME=$TOOLS/apache-tomcat-10.1.36
export PATH=$CATALINA_HOME/bin:$PATH
# Maven
export M2_HOME=$TOOLS/apache-maven-3.9.9
export PATH=$M2_HOME/bin:$PATH
#Java
export JAVA_HOME=/usr/lib/jvm/java-21-openjdk
export PATH=$PATH:$JAVA_HOME/bin
export CLASSPATH=.:$JAVA_HOME/jre/lib:$JAVA_HOME/lib:$JAVA_HOME/lib/tools.jar

Below is the output of the environment variables and the mvn command not found.

enter image description here

Upvotes: 0

Views: 66

Answers (0)

Related Questions