Adding jar file to a charm

Hello ,

i’m new to Juju and i want to add a Jar file for my application into existing charm that I already created , I have followed this page to build a layer in my charm but when run " Charm Build " it’s getting failed with below error :


my questions are :
1- How i can add the jar file into this charm ?
2- how I can add the missing files in layer ? ( apache.yaml , layer.yaml …etc )

Typically, a large binary blob like a jar file is added to a charm as a resource. There’s some doc here that should help explain things: