<div dir="ltr"><span style="font-size:12.8000001907349px">Hi,</span><div style="font-size:12.8000001907349px"> I am trying to build up some competency with snapcraft for java applications.</div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">Currently I have a hello world project which is based on </div><div style="font-size:12.8000001907349px"><a href="https://github.com/ubuntu-core/snapcraft/blob/1.x/examples/java-hello-world/snapcraft.yaml" target="_blank">https://github.com/ubuntu-core/snapcraft/blob/1.x/examples/java-hello-world/snapcraft.yaml</a>.<br></div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">I have extended in that HelloWorld.java references a method from another package in an external jar file (HellowWorld-helper.jar)</div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">I edited the snapcraft.yaml to use the copy plugin to copy the jar file to the jar directory. </div><div style="font-size:12.8000001907349px">It can be seen there after the snap stage.</div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">However in bin.wrapper.wrapper , the external jar file is not added to the classpath. So the application fails on running.</div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">How do I fix this?</div><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div><strong>Jenny Murphy</strong></div>
<div><strong>EpiSensor, Georges Quay House, Georges Quay, Limerick, Ireland</strong></div>
<div>jenny.murphy<a href="mailto:jenny.murphy@episensor.com" target="_blank">@episensor.com</a> t | +353 (0) 61 512 511 w | <a href="http://www.episensor.com/" target="_blank">http://www.episensor.com</a></div></div>
</div>