Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Though I have Java enabled in the server, I'm facing java path issue

Edited

I'm generating war file using Gradle using shell script but  I'm getting the below error.

ls
cd ClaimCenter1003
javac -version
chmod 777 gwb.sh
./gwb.sh warTomcatDbcp

05-Jun-2020 13:22:54ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
05-Jun-2020 13:22:54 
05-Jun-2020 13:22:54Please set the JAVA_HOME variable in your environment to match the
05-Jun-2020 13:22:54location of your Java installation.

Java is set in all the bamboo servers though not working in many server through the console but when I triggered the build from command Line it is working fine. 

The build is working in some servers giving me the output as I needed: 

 

javac 1.8.0_161
build	05-Jun-2020 13:18:01	Downloading file:/opt/bamboo-agent-home/xml-data/build-dir/GUID-GCCA-VAR/ClaimCenter1003/gradle/wrapper/./gradle.zip
build	05-Jun-2020 13:18:02	.................................................................................
build	05-Jun-2020 13:18:04	
build	05-Jun-2020 13:18:04	Welcome to Gradle 5.1.1!
build	05-Jun-2020 13:18:04	
build	05-Jun-2020 13:18:04	Here are the highlights of this release:
build	05-Jun-2020 13:18:04	 - Control which dependencies can be retrieved from which repositories
build	05-Jun-2020 13:18:04	 - Production-ready configuration avoidance APIs

Build going through when did in CLI

 

success.pngPlease help me through this. Thank you

1 answer

Find out what user Bamboo is running, if so then try logging in with that user and typing the command "java -version". If you can't, then you have to log in as Root to give access to the Bamboo user.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bamboo

Bamboo Data Center is here!

G’day Bamboo customers, The wait is over! Bamboo Data Center edition you have been asking for is finally here! This self-managed enterprise offering of Bamboo has the resilience, reliability, and s...

502 views 1 17
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you