<p dir="ltr">Hi,</p>
<p dir="ltr">I don't think it counts as cross compiling since Java (at least in my case) is cross platform. Just wanted to compile Java with one JDK and run with another. </p>
<p dir="ltr">Jian</p>
<div class="gmail_extra"><br><div class="gmail_quote">On Oct 10, 2016 20:05, "Manik Taneja" <<a href="mailto:manik@canonical.com">manik@canonical.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Oct 10, 2016 at 6:33 AM, Jian LUO <span dir="ltr"><<a href="mailto:jian.luo.cn@gmail.com" target="_blank">jian.luo.cn@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><p dir="ltr">Hi List,</p>
<p dir="ltr">Is there any formal way in snapcraft to set environment variables separately for build time and run time? The use case I'm facing is building a Java snap on amd64 host for armhf target.</p></blockquote>Snapcraft does not support cross-compilation. Consider building natively on armhf, or using this as reference-<br><br><a href="https://github.com/snapcore/snapd/blob/master/docs/cross-build.md" target="_blank">https://github.com/snapcore/<wbr>snapd/blob/master/docs/cross-<wbr>build.md</a><br><br></div><div class="gmail_quote">and let us know if you see any issues.<br></div><div class="gmail_quote"><br></div><div class="gmail_quote">/Manik<br></div></div></div>
</blockquote></div></div>