Page 1 of 1

Using The CEF in java application

PostPosted: Wed Nov 25, 2009 12:11 pm
by moris
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();
   }

}

Re: Using The CEF in java application

PostPosted: Thu Dec 17, 2009 7:08 am
by wayne
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