[webkit-dev] How to use webkit ?
Patrick Hanna
phanna at email.unc.edu
Thu Jul 10 17:57:37 PDT 2008
I don't think Android is the answer either. Most of the webkit port
is very dependent on the Android OS and is not portable to other java
frameworks.
I think Brent is right when he said your question is very broad. If
you are looking to write a java app that runs on multiple systems,
JWebPane is probably what you want. But keep in mind that it probably
uses Java graphics which IIRC will be slower than drawing in native
code.
If you have a particular OS you are developing for, you need to port
the network and graphics layers if they haven't been ported to that
OS already. Then you need to use JNI to call into the native webkit
apis from java and implement the various clients to call back up into
java. For example, you could use WebCore/platform/graphics/win if
your app runs on Windows and create a WebKit/java directory for the
java interface.
I would start by looking at the various ports already done. Start
with WebCore/platform/* and WebKit/*. The Windows and Mac ports are
pretty good starting points for figuring out what you need to
implement for your system.
Hope this helps,
Patrick
On Jul 10, 2008, at 4:55 PM, Brent Fulgham wrote:
> Hi,
>
> On Thu, Jul 10, 2008 at 9:09 AM, Nemix <ereas_dre at hotmail.com> wrote:
>>
>> I would like to try webkit cause I really need it for a project. I
>> have to
>> develop in Java.
>> But I haven't any idea on "how can I start with webkit ?".
>
> I think your question is far to vague for anyone to help you. It's
> not clear on what platform you are interested in using WebKit, or even
> what your goal is.
>
> Since you mention Java, you should probably look into Google's Android
> project, which is using WebKit within a Java context. Building on
> their work might be the most efficient approach, as they have already
> set up the necessary infrastructure to call into WebKit from Java and
> so forth.
>
> Good luck,
>
> -Brent
> _______________________________________________
> webkit-dev mailing list
> webkit-dev at lists.webkit.org
> http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
More information about the webkit-dev
mailing list