How to embed SWT into Avian?

67 views
Skip to first unread message

svensc...@gmail.com

unread,
Jun 26, 2016, 10:01:19 PM6/26/16
to Avian
Hello there :)

I can't really figure out how to embed the swt.jar into the Avian executable. I looked into the example projects but I couldn't find any code that does it. 
Help is really appreciated.

ad...@tec.hn

unread,
Jun 30, 2016, 1:13:31 AM6/30/16
to Avian, svensc...@gmail.com
I believe you simply need to copy the contents of swt.jar together with your application classes to classpath.jar, as described in step 2 of embedding. You can use any archive tool for that (7Zip, WinZip, JDK's jar, etc.)

Joel Dice

unread,
Jun 30, 2016, 9:25:37 AM6/30/16
to Avian, svensc...@gmail.com
Hi,

Sorry for the late response.  Have you looked at the avian-swt-examples repository?  Specifically, https://github.com/ReadyTalk/avian-swt-examples/blob/master/app.mk, which includes rules for building an SWT example for a variety of platforms.  That's what the examples on the website (https://readytalk.github.io/avian/#-xamples) are built with.  Feel free to modify that project to replace the example app code with your application's code (including any libraries your app depends on).
Reply all
Reply to author
Forward
0 new messages