zhlihappy / javachromiumembedded

Automatically exported from code.google.com/p/javachromiumembedded
0 stars 0 forks source link

trying to build a JCEF project #124

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. create a new project in eclipse
2. added the jars and loaded the dll files using system.load()
3. run the application in eclipse

What is the expected output? What do you see instead?
Can you please explain how to get a JCEF project up and running? i got the 
wondow ui without the embedded browser loaded. the window is empty. If this is 
not the correct way to build and run a JCEF can someone share with me a 
comprehensive guide pleae?

What version of the product are you using? On what operating system?
windows 8 64 bit 
JCEF - jcef_binary_3.1750.1738.91_windows64
Please provide any additional information below.

Original issue reported on code.google.com by wnthksn...@gmail.com on 30 Sep 2014 at 9:52

GoogleCodeExporter commented 9 years ago
Hi wnthksn....,

First of all: This is and "issue-Board" for listing bugs/improvements, etc. and 
their solutions. 
If you have any questions like yours, please ask them on the CEF-Forum 
(http://www.magpcss.org/ceforum/index.php).

If I understand aright, you try to build an app using JCEF within and SDK 
(Eclipse in your case).
Maybe that gives you a feeling of how it works:

(1) Setup your machine and build JCEF as explained here: 
https://code.google.com/p/javachromiumembedded/wiki/BranchesAndBuilding
(2) Create your Java project in Eclipse and set it up:
-> Right-Click on you project: Properties
-> Java Build Path -> Libraries: "Add External JARs..." -> Select your build 
"jcef.jar"
-> Expand the arrow before jcef.jar
-> Select entry "Native library location" and add the external folder which 
contains the required native binaries (jcef.dll, jogl*.., locales, etc.)
-> Optional: Select entry Javadoc location" and point it to JCEFs javadoc 
directory
-> Optional: Select entry Source attachment" and point it to JCEFs Java source 
directory
-> Create your test application as explained in MainFrame.java (package 
tests.simple or tests.detailed)
(3) Build and run your application out of eclipse.

Attached you'll find a screenshot to step (2) as well as an really simple 
example within the ZIP-File (including the Eclipse project).

Regards,
Kai

Original comment by k...@censhare.de on 2 Oct 2014 at 12:52

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by magreenb...@gmail.com on 2 Oct 2014 at 9:46

GoogleCodeExporter commented 9 years ago
Hi,

thank you very much and sorry for not selecting the correct mailing thread.
I solved my problem, by adding the dlls to jre libs and adding it to my
classpath.

thanks and regards
Awanthika

Original comment by wnthksn...@gmail.com on 3 Oct 2014 at 2:22