Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to find directory for jdk 11.0.24; please make sure the tool is installed on this image. #45834

Open
carlossanlop opened this issue Jan 9, 2025 · 1 comment
Labels

Comments

@carlossanlop
Copy link
Member

carlossanlop commented Jan 9, 2025

Build Information

Build: https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_build/results?buildId=911152&view=logs&j=af161a59-3ba0-595e-b1dd-589f209b7277
Build error leg or test failing: VMR Vertical Build Validation / Windows_DevVersions_x64 / Build
Pull request: #45803

Error Message

Fill the error message using step by step known issues guidance.

{
  "ErrorMessage": "Unable to find directory for jdk 11.0.24; please make sure the tool is installed on this image.",
  "ErrorPattern": "",
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}

Output:

  Running command:
    D:\a\_work\1\vmr\src\aspnetcore\eng\build.cmd -restore -all -pack -publish -sign -NativeToolsOnMachine -BuildInstallers -ci -configuration Release -bl /p:DotNetBuildRepo=true /p:DotNetBuildOrchestrator=true /p:RestoreConfigFile=D:\a\_work\1\vmr\artifacts\obj\aspnetcore\NuGet.config /p:SourceBuiltAssetsDir=D:\a\_work\1\vmr\artifacts\assets\Release\ /p:SourceBuiltAssetManifestsDir=D:\a\_work\1\vmr\artifacts\obj\manifests\Release\aspnetcore\ /p:ForceDryRunSigning=true -msbuildEngine vs -arch x64 /p:TargetRuntimeIdentifier=win-x64 /p:PublicBaseURL=file://D:\a\_work\1\vmr\artifacts\assets\Release\ /p:EnablePackageValidation=false /p:SourceBuiltShippingPackagesDir=D:\a\_work\1\vmr\artifacts\packages\Release\Shipping\aspnetcore\ /p:SourceBuiltNonShippingPackagesDir=D:\a\_work\1\vmr\artifacts\packages\Release\NonShipping\aspnetcore /p:PortableBuild=true /p:RuntimeOS=win /p:BaseOS=win-x64
    Log: D:\a\_work\1\vmr\artifacts\log\Release\aspnetcore\aspnetcore.log
    With Environment Variables:
      SuppressTfmSupportBuildWarnings=True
      DOTNET_INSTALL_DIR=D:\a\_work\1\vmr\.dotnet\
      DOTNET_PATH=D:\a\_work\1\vmr\.dotnet\
      DOTNET_HOST_PATH=D:\a\_work\1\vmr\.dotnet\dotnet.exe
      _InitializeDotNetCli=D:\a\_work\1\vmr\.dotnet
      _DotNetInstallDir=D:\a\_work\1\vmr\.dotnet\
      _InitializeToolset=D:\a\_work\1\vmr\artifacts\source-built-sdks\Microsoft.DotNet.Arcade.Sdk/tools/Build.proj
      _OverrideArcadeInitializeBuildToolFramework=net10.0
      ContinuousIntegrationBuild=true
      MSBUILDDISABLENODEREUSE=1
      DeterministicSourcePaths=true
      SourceRoot=D:\a\_work\1\vmr\src\aspnetcore\
      DotNetPackageVersionPropsPath=D:\a\_work\1\vmr\artifacts\obj\PackageVersions\PackageVersions.aspnetcore.props
      RestoreConfigFile=D:\a\_work\1\vmr\artifacts\obj\aspnetcore\NuGet.config
      warn_as_error=false
      MSBUILDADDITIONALSDKRESOLVERSFOLDER=D:\a\_work\1\vmr\artifacts\toolset\VSSdkResolvers\
      SOURCE_BUILT_SDK_ID_ARCADE=Microsoft.DotNet.Arcade.Sdk
      SOURCE_BUILT_SDK_ID_ARCADE_SHARED_FX_SDK=Microsoft.DotNet.SharedFramework.Sdk
      SOURCE_BUILT_SDK_ID_ARCADE_CMAKE_SDK=Microsoft.DotNet.CMake.Sdk
      SOURCE_BUILT_SDK_VERSION_ARCADE=10.0.0-ci
      SOURCE_BUILT_SDK_VERSION_ARCADE_SHARED_FX_SDK=10.0.0-ci
      SOURCE_BUILT_SDK_VERSION_ARCADE_CMAKE_SDK=10.0.0-ci
      SOURCE_BUILT_SDK_DIR_ARCADE=D:\a\_work\1\vmr\artifacts\source-built-sdks\Microsoft.DotNet.Arcade.Sdk/
      SOURCE_BUILT_SDK_DIR_ARCADE_SHARED_FX_SDK=D:\a\_work\1\vmr\artifacts\source-built-sdks\Microsoft.DotNet.SharedFramework.Sdk/
      SOURCE_BUILT_SDK_DIR_ARCADE_CMAKE_SDK=D:\a\_work\1\vmr\artifacts\source-built-sdks\Microsoft.DotNet.CMake.Sdk/
D:\a\_work\1\vmr\repo-projects\Directory.Build.targets(491,5): error MSB3073: The command "D:\a\_work\1\vmr\src\aspnetcore\eng\build.cmd -restore -all -pack -publish -sign -NativeToolsOnMachine -BuildInstallers -ci -configuration Release -bl /p:DotNetBuildRepo=true /p:DotNetBuildOrchestrator=true /p:RestoreConfigFile=D:\a\_work\1\vmr\artifacts\obj\aspnetcore\NuGet.config /p:SourceBuiltAssetsDir=D:\a\_work\1\vmr\artifacts\assets\Release\ /p:SourceBuiltAssetManifestsDir=D:\a\_work\1\vmr\artifacts\obj\manifests\Release\aspnetcore\ /p:ForceDryRunSigning=true -msbuildEngine vs -arch x64 /p:TargetRuntimeIdentifier=win-x64 /p:PublicBaseURL=file://D:\a\_work\1\vmr\artifacts\assets\Release\ /p:EnablePackageValidation=false /p:SourceBuiltShippingPackagesDir=D:\a\_work\1\vmr\artifacts\packages\Release\Shipping\aspnetcore\ /p:SourceBuiltNonShippingPackagesDir=D:\a\_work\1\vmr\artifacts\packages\Release\NonShipping\aspnetcore /p:PortableBuild=true /p:RuntimeOS=win /p:BaseOS=win-x64 > D:\a\_work\1\vmr\artifacts\log\Release\aspnetcore\aspnetcore.log 2>&1" exited with code 1. [D:\a\_work\1\vmr\repo-projects\aspnetcore.proj]
##[error]repo-projects\Directory.Build.targets(491,5): error MSB3073: The command "D:\a\_work\1\vmr\src\aspnetcore\eng\build.cmd -restore -all -pack -publish -sign -NativeToolsOnMachine -BuildInstallers -ci -configuration Release -bl /p:DotNetBuildRepo=true /p:DotNetBuildOrchestrator=true /p:RestoreConfigFile=D:\a\_work\1\vmr\artifacts\obj\aspnetcore\NuGet.config /p:SourceBuiltAssetsDir=D:\a\_work\1\vmr\artifacts\assets\Release\ /p:SourceBuiltAssetManifestsDir=D:\a\_work\1\vmr\artifacts\obj\manifests\Release\aspnetcore\ /p:ForceDryRunSigning=true -msbuildEngine vs -arch x64 /p:TargetRuntimeIdentifier=win-x64 /p:PublicBaseURL=file://D:\a\_work\1\vmr\artifacts\assets\Release\ /p:EnablePackageValidation=false /p:SourceBuiltShippingPackagesDir=D:\a\_work\1\vmr\artifacts\packages\Release\Shipping\aspnetcore\ /p:SourceBuiltNonShippingPackagesDir=D:\a\_work\1\vmr\artifacts\packages\Release\NonShipping\aspnetcore /p:PortableBuild=true /p:RuntimeOS=win /p:BaseOS=win-x64 > D:\a\_work\1\vmr\artifacts\log\Release\aspnetcore\aspnetcore.log 2>&1" exited with code 1.
  
  Id     Name            PSJobTypeName   State         HasMoreData     Location             Command                  
  --     ----            -------------   -----         -----------     --------             -------                  
  1      DumpProcesses   BackgroundJob   Running       True            localhost            Set-Location $args[0]... 
  Building of C# project is enabled and has dependencies on NodeJS projects. Building of NodeJS projects is enabled since node is detected in C:\ToolCache\node\20.18.1.
  Note that if you are running Source Build, building NodeJS projects will be disabled later on.
  Variable NativeToolsOnMachine detected, enabling native tool path promotion...
  Processing D:\a\_work\1\vmr\src\aspnetcore\global.json
  at <ScriptBlock>, D:\a\_work\1\vmr\src\aspnetcore\eng\common\init-tools-native.ps1: line 99
  at <ScriptBlock>, D:\a\_work\1\vmr\src\aspnetcore\eng\common\init-tools-native.ps1: line 88
  at InitializeNativeTools, D:\a\_work\1\vmr\src\aspnetcore\eng\common\tools.ps1: line 673
  at <ScriptBlock>, D:\a\_work\1\vmr\src\aspnetcore\eng\build.ps1: line 457
  at <ScriptBlock>, <No file>: line 1
##[error](NETCORE_ENGINEERING_TELEMETRY=NativeToolsBootstrap) Unable to find directory for jdk 11.0.24; please make sure the tool is installed on this image.
  at LocateJava, D:\a\_work\1\vmr\src\aspnetcore\eng\build.ps1: line 411
  at <ScriptBlock>, D:\a\_work\1\vmr\src\aspnetcore\eng\build.ps1: line 461
  at <ScriptBlock>, <No file>: line 1
##[error]Could not find the JDK. Either run D:\a\_work\1\vmr\src\aspnetcore\eng\scripts\InstallJdk.ps1 to install for this repo, or install the JDK globally on your machine (see D:\a\_work\1\vmr\src\aspnetcore\eng\..\docs\BuildFromSource.md for details).
  build.cmd completed
  
  'aspnetcore' failed during build.

Known issue validation

Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=911152
Error message validated: [Unable to find directory for jdk 11.0.24; please make sure the tool is installed on this image.]
Result validation: ✅ Known issue matched with the provided build.
Validation performed at: 1/9/2025 5:37:10 PM UTC

Report

Build Definition Step Name Console log Pull Request
911152 dotnet/sdk Build Log #45803

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
0 1 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants