Re: Newbe question Avain + JavaFX

103 views
Skip to first unread message

Joel Dice

unread,
May 2, 2013, 11:16:57 AM5/2/13
to av...@googlegroups.com
Hi Gevik,

On Wed, 1 May 2013, Gevik wrote:

> My question is whether it would be possible to build an Avain version that
> can run JavaFX+Webkit stuff.

Does your app run on OpenJDK 7? If so, you should be able to run it on
Avian + OpenJDK's class library; see the "openjdk-src" option in
README.md. In order to shrink the class library to a reasonable size,
you'll need to use ProGuard (see "Embedding with ProGuard and a Boot
Image", in README.md, but I would advise against using the boot image
option which is also described in that section because it doesn't work
well with openjdk-src and it will make your executable larger).

A potentially easier and lighter solution would be to use SWT's WebKit
support: http://www.eclipse.org/swt/faq.php#howusewebkit. If you use SWT,
you should be able to use Avian's builtin class library, which is much
smaller and may allow you to avoid using ProGuard. See
https://github.com/ReadyTalk/avian-swt-examples for an example of how to
use Avian with SWT.
Reply all
Reply to author
Forward
0 new messages