LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-16-2024, 04:22 PM   #1
Sunless
LQ Newbie
 
Registered: Dec 2019
Posts: 17

Rep: Reputation: Disabled
Exclamation dotnet sonarscanner did not find java but JAVA_HOME exists. Tried jre 11,13, 17 on ubuntu 20.04.3


Hello, everyone! I am starting proper command

~/project$ /usr/bin/dotnet sonarscanner end /d:sonar.login="admin" /d:sonar.password="user"

and got the java error on ubuntu 20.04.3


SonarScanner for MSBuild 5.2.2 Using the .NET Core version of the Scanner for MSBuild Post-processing started. Calling the SonarScanner CLI... Could not find 'java' executable in JAVA_HOME or PATH. The SonarScanner did not complete successfully 20:05:32.56 Post-processing failed. Exit code: 1

There are SonarQube 8.9.10 in docker and .net 5 global tool sonarscanner 5.2.2.

JAVA_HOME and PATH was set to the same java elf dynamic shared object with chmod +x. What's wrong? Thank you.
 
Old 01-17-2024, 12:33 PM   #2
boughtonp
Senior Member
 
Registered: Feb 2007
Location: UK
Distribution: Debian
Posts: 3,601

Rep: Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546Reputation: 2546
Quote:
Originally Posted by Sunless View Post
JAVA_HOME and PATH was set to the same java elf dynamic shared object with chmod +x. What's wrong? Thank you.
JAVA_HOME should be a directory, not an executable.

PATH should be multiple directories, separated by colons.

Post the output of "env | egrep '^(JAVA_HOME|PATH)='" within "[code]..[/code]" tags to preserve any formatting.

 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
tried to install java 17 in elementary OS but got Java 11 instead -- how to uninstall or update to Java 17 Straitsfan Linux - Software 2 12-02-2021 07:05 AM
Need JAVA_HOME to point to JDK rather than JRE for Android Studio for Linux magallanesj33 Linux - General 3 07-26-2018 02:50 AM
"Please set JAVA_HOME" (but I'm sure I did) brownratpig Linux - Newbie 25 09-23-2015 04:40 AM
[SOLVED] Install wont find JRE- $JAVA_HOME SG86- Linux - Software 7 04-30-2011 10:36 AM
java & dotNet questions forum mvbv-linux Programming 3 11-28-2003 10:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:22 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration