Console output:
- Code: Select all
[0506/124906:ERROR:main_delegate.cc(571)] Could not load cef.pak
[0506/124906:ERROR:main_delegate.cc(588)] Could not load cef_100_percent.pak
[0506/124906:ERROR:main_delegate.cc(597)] Could not load cef_200_percent.pak
[0506/124906:VERBOSE1:pref_proxy_config_tracker_impl.cc(148)] 0x7ffdae181120: set chrome proxy config service to 0x7ffdae307070
[0506/124906:VERBOSE1:pref_proxy_config_tracker_impl.cc(277)] 0x7ffdae181120: Done pushing proxy to UpdateProxyConfig
[0506/124906:ERROR:main_delegate.cc(571)] Could not load cef.pak
[0506/124906:ERROR:main_delegate.cc(588)] Could not load cef_100_percent.pak
[0506/124906:ERROR:main_delegate.cc(597)] Could not load cef_200_percent.pak
[0506/124906:VERBOSE1:child_thread.cc(239)] Mojo is disabled on child
[0506/124906:VERBOSE1:webrtc_internals.cc(56)] Could not get the download directory.
[0506/124906:ERROR:main_delegate.cc(571)] Could not load cef.pak
[0506/124906:ERROR:main_delegate.cc(588)] Could not load cef_100_percent.pak
[0506/124906:ERROR:main_delegate.cc(597)] Could not load cef_200_percent.pak
[0506/124906:VERBOSE1:child_thread.cc(239)] Mojo is disabled on child
[0506/124906:ERROR:renderer_main.cc(207)] Running without renderer sandbox
[0506/124906:ERROR:content_client.cc(148)] No data resource available for id 4740
[0506/124906:ERROR:content_client.cc(148)] No data resource available for id 4739
[0506/124906:ERROR:content_client.cc(148)] No data resource available for id 4700
[0506/124906:ERROR:content_client.cc(148)] No data resource available for id 4700
Working Directory is not a bundle, so I set resource dir path and locales dir path:
- Code: Select all
cefSettings.locales_dir_path = "/workspace/xyz-client/Contents/Frameworks/Chromium Embedded Framework.framework/Resources";
cefSettings.resources_dir_path = "/workspace/xyz-client/Contents/Frameworks/Chromium Embedded Framework.framework/Resources";
The weird thing is, that the browser loads/renders the content but it's not visible to me. The background is still grey but if move mouse over the invisible content, the mouse-cursor changes (on this page are some text boxes, buttons, ...). I could press button on the invisible page and it recognized by jcef.
The next weird thing is, if I add an JTextField for address entering to browser window, the web-content appears once I click on JTextField. (Some code for JTextField):
- Code: Select all
address_ = new JTextField(startUrl, 100);
address_.addActionListener(new ActionListener()
{
@Override
public void actionPerformed(ActionEvent e)
{
browser_.loadURL(address_.getText());
}
});
or if I resize window, then content appears, too.
"building" window:
- Code: Select all
getContentPane().add(address_, BorderLayout.NORTH);
getContentPane().add(browserUI_, BorderLayout.CENTER);
pack();
setSize(800, 600);
setVisible(true);
addWindowListener(new WindowAdapter()
{
@Override
public void windowClosing(WindowEvent e)
{
dispose();
cefApp_.dispose();
}
});
What's wrong here??? Oo :/
Edit:
I already read through the other threads, but they didn't help me