White-screen problem with MacOs and JCef 2357+

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

White-screen problem with MacOs and JCef 2357+

Postby edominic » Fri Sep 25, 2015 5:48 am

Hello guys,
I think, the most (or all) people with MacOs and JCef do have the problem that they get a white screen, if they include JCef in their projects.

Meanwhile, does anyone hava a solution or a fix for this problem?

Here, the link to bug report on bitbucket: https://bitbucket.org/chromiumembedded/java-cef/issues/166/content-in-browser-not-visible-at-startup

Thanks ;)
edominic
Mentor
 
Posts: 82
Joined: Fri Mar 13, 2015 6:46 am

Re: White-screen problem with MacOs and JCef 2357+

Postby magreenblatt » Fri Sep 25, 2015 6:50 am

As noted in that issue either use CEF 2454 branch or find a Java version built with 10.9 SDK.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: White-screen problem with MacOs and JCef 2357+

Postby edominic » Fri Sep 25, 2015 7:11 am

Thats the reason why I wrote 2357+ ;) Because, it's the same problem with 2454, as I wrote in that issue, too.

Edit: I need a working jdk for Java 1.8

This is was otool is printing for 1.8.0.45:

cmd LC_VERSION_MIN_MACOSX
cmdsize 16
version 10.7
sdk 10.7

Where exactly I can find a jdk8 built against 10.9+
edominic
Mentor
 
Posts: 82
Joined: Fri Mar 13, 2015 6:46 am

Re: White-screen problem with MacOs and JCef 2357+

Postby magreenblatt » Fri Sep 25, 2015 7:32 am

The executable launching CEF/Chromium needs to be built targeting the correct SDK. If you're using JavaAppLauncher then you're OK because we can build it for the correct SDK. Otherwise you're pretty much out of luck unless you can build your own version of Java. See https://groups.google.com/a/chromium.or ... z_ZWosJgAJ for details.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: White-screen problem with MacOs and JCef 2357+

Postby edominic » Fri Sep 25, 2015 7:51 am

That means,
correct sdk means 10.9, right? Means, I need Java/JDK which is built against 10.9?
So I can't use 2357+ with 10.8 or lower?

Sorry, if I don't understand it completly. ;)
edominic
Mentor
 
Posts: 82
Joined: Fri Mar 13, 2015 6:46 am

Re: White-screen problem with MacOs and JCef 2357+

Postby magreenblatt » Fri Sep 25, 2015 8:02 am

edominic wrote:That means,
correct sdk means 10.9, right? Means, I need Java/JDK which is built against 10.9?
So I can't use 2357+ with 10.8 or lower?

Sorry, if I don't understand it completly. ;)

It depends on the Chromium version. 10.9 SDK is required for 2357 and 2454 branches. See the base SDK requirement listed here: https://bitbucket.org/chromiumembedded/ ... e-branches. The next branch (not yet existing) will require the 10.10 SDK.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: White-screen problem with MacOs and JCef 2357+

Postby edominic » Fri Sep 25, 2015 8:09 am

In Short: I need JDK7/8 which is built against the same SDK as chromium, in fact 10.9 for 2272, 2357, 2454. Right?
edominic
Mentor
 
Posts: 82
Joined: Fri Mar 13, 2015 6:46 am

Re: White-screen problem with MacOs and JCef 2357+

Postby magreenblatt » Fri Sep 25, 2015 8:16 am

edominic wrote:In Short: I need JDK7/8 which is built against the same SDK as chromium, in fact 10.9 for 2272, 2357, 2454. Right?

Yes, that should work. If you can't find a JDK meeting those requirements you might want to look into creating a bootstrap like JavaWebStart that works for your purposes (the important point is that the executable use the correct SDK -- the Java libraries do not necessarily need to).
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: White-screen problem with MacOs and JCef 2357+

Postby edominic » Fri Sep 25, 2015 8:19 am

Thanks for your help :)
edominic
Mentor
 
Posts: 82
Joined: Fri Mar 13, 2015 6:46 am


Return to JCEF Forum

Who is online

Users browsing this forum: No registered users and 136 guests