Packaging java buildpack v4.55+ in Windows env results in failure
search cancel

Packaging java buildpack v4.55+ in Windows env results in failure

book

Article ID: 298365

calendar_today

Updated On:

Products

VMware Tanzu Application Service for VMs

Issue/Introduction

Packaging java buildpack v4.55+ in Windows env and pushing apps with it results in failure with error 
 
   Downloading app package...
   Downloaded app package (27.2M)
   Failed to compile droplet: Failed to run finalize script: fork/exec /tmp/buildpacks/8e5887010236bb8f8d50d84a5f2a262c/bin/finalize: exec format error
   Exit status 223


Environment

Product Version: 2.11

Resolution

Java buildpack v4.55+ replace most bin/ scripts with symlinks which are not being read properly in pure Windows systems. 

Installing Windows Subsystem for Linux (WSL)  or using a Linux VM to package the java buildpack solves the issue.