Using The CEF in java application

Think CEF could benefit from a new feature or capability? Discuss CEF feature requests here.

Using The CEF in java application

Postby moris » Wed Nov 25, 2009 12:11 pm

I would to use CEF in java application on using JNA!

Please, has someone have trying to use CEF as DLL in a java application!

this is my first code:

Code: Select all
import com.sun.jna.Native;
import com.sun.jna.win32.StdCallLibrary;

public class Main {
   
   static DllInterface dll = DllInterface.lib;
   
   public interface DllInterface extends StdCallLibrary  {
       // Method declarations, constant and structure definitions go here
      DllInterface lib = (DllInterface) Native.loadLibrary("libcef", DllInterface.class);
      
      void cef_initialize();//One of CEF CAPI function
   }

   /**
    * @param args
    */
   public static void main(String[] args) {
      // TODO Auto-generated method stub
      
      //Example of CEF CAPI invocation
      dll.cef_initialize();
   }

}
moris
Newbie
 
Posts: 1
Joined: Wed Nov 25, 2009 11:35 am

Re: Using The CEF in java application

Postby wayne » Thu Dec 17, 2009 7:08 am

Hi Moris,

We developed an embedded version of CEF for the Java SWT environment known as WebKit4SWT. It is open sourced under an EPL license. You can read about it here http://www.genuitec.com/blog/?p=738

Wayne
wayne
Newbie
 
Posts: 2
Joined: Thu Dec 17, 2009 7:03 am


Return to Feature Request Forum

Who is online

Users browsing this forum: No registered users and 21 guests