Exception after upgrading to newer JCEF

Having problems with building or using the JCEF Java binding? Ask your questions here.

Exception after upgrading to newer JCEF

Postby ramyakrishnan » Wed Nov 18, 2015 9:00 am

Hi ,

I built the JCEF with the CEF version which was mentioned in the source code Readme I forked. I successfully built the project and added this to my existing java project and now whenever I try to run I get this error : java.lang.UnsatisfiedLinkError: org.cef.CefApp.N_PreInitialize()Z . If I comment out this PreInitialize() function from jcef code for the application to run, I get exceptions in windowHandler when I exit so I want to rectify the PreInitialize function correctly . Not sure what I am missing and how to find it. Anyone has any ideas?

I am running this on Windows 7 with jdk 1.7.0_79, with the cef version : 3.2454.1317.gc22b77d.
ramyakrishnan
Mentor
 
Posts: 62
Joined: Wed Sep 16, 2015 12:21 pm

Re: Exception after upgrading to newer JCEF

Postby magreenblatt » Wed Nov 18, 2015 12:14 pm

Looks like you have a mismatch between the native and Java components of the JCEF build you're using. In other words, re-build both the native and Java versions from the same version of the JCEF source code.
magreenblatt
Site Admin
 
Posts: 12382
Joined: Fri May 29, 2009 6:57 pm

Re: Exception after upgrading to newer JCEF

Postby ramyakrishnan » Wed Nov 18, 2015 2:11 pm

Ok , I will try that again. Additionally, the cefbuilds page is not opening correctly . I can only see the page like i have attached in the link below. Thanks.
Attachments
Untitled.png
Untitled.png (61.45 KiB) Viewed 15992 times
ramyakrishnan
Mentor
 
Posts: 62
Joined: Wed Sep 16, 2015 12:21 pm

Re: Exception after upgrading to newer JCEF

Postby magreenblatt » Wed Nov 18, 2015 2:27 pm

Thanks for reporting the problem with cefbuilds.com. Hopefully it will be fixed soon.
magreenblatt
Site Admin
 
Posts: 12382
Joined: Fri May 29, 2009 6:57 pm

Re: Exception after upgrading to newer JCEF

Postby ramyakrishnan » Wed Nov 18, 2015 3:14 pm

Hi Marshall,
I still face the same error, I did the steps given in the build page and i dint get any error while building them. however which running my application with the new jcef I get the pre_initialize error . Which location can I look at to debug this ?
I am using cmake 3.4 , VS2013 enterprise edition , and python 2.7 while building .

Code: Select all
java.lang.UnsatisfiedLinkError: org.cef.CefApp.N_PreInitialize()Z
   at org.cef.CefApp.N_PreInitialize(Native Method)
   at org.cef.CefApp.<init>(CefApp.java:168)
   at org.cef.CefApp.getInstance(CefApp.java:258)
   at org.cef.CefApp.getInstance(CefApp.java:245)
ramyakrishnan
Mentor
 
Posts: 62
Joined: Wed Sep 16, 2015 12:21 pm

Re: Exception after upgrading to newer JCEF

Postby magreenblatt » Wed Nov 18, 2015 4:34 pm

How does the detailed example app included with JCEF behave?
magreenblatt
Site Admin
 
Posts: 12382
Joined: Fri May 29, 2009 6:57 pm

Re: Exception after upgrading to newer JCEF

Postby ramyakrishnan » Wed Nov 18, 2015 4:50 pm

It gives me the same error ,

Code: Select all
Offscreen rendering disabled
Exception in thread "main" java.lang.UnsatisfiedLinkError: org.cef.CefApp.N_PreInitialize()Z
   at org.cef.CefApp.N_PreInitialize(Native Method)
   at org.cef.CefApp.<init>(CefApp.java:168)
   at org.cef.CefApp.getInstance(CefApp.java:258)
   at tests.detailed.MainFrame.<init>(MainFrame.java:100)
   at tests.detailed.MainFrame.main(MainFrame.java:70)
ramyakrishnan
Mentor
 
Posts: 62
Joined: Wed Sep 16, 2015 12:21 pm

Re: Exception after upgrading to newer JCEF

Postby magreenblatt » Wed Nov 18, 2015 4:57 pm

Did jcef.dll get built successfully from the most recent native sources? If so, then I don't know what to tell you. It works for me.
magreenblatt
Site Admin
 
Posts: 12382
Joined: Fri May 29, 2009 6:57 pm

Re: Exception after upgrading to newer JCEF

Postby ramyakrishnan » Wed Nov 18, 2015 5:05 pm

What is the java.library.path that I must give to run this example file ? In short, what are the vmargs I need to pass for this example file ? I wanna make sure I am doing the correct one
ramyakrishnan
Mentor
 
Posts: 62
Joined: Wed Sep 16, 2015 12:21 pm

Re: Exception after upgrading to newer JCEF

Postby magreenblatt » Wed Nov 18, 2015 5:08 pm

magreenblatt
Site Admin
 
Posts: 12382
Joined: Fri May 29, 2009 6:57 pm

Next

Return to JCEF Forum

Who is online

Users browsing this forum: No registered users and 15 guests