fud0 / javacef

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

Failed to build on windows #10

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I tried following the instructions at 
https://code.google.com/p/javacef/wiki/CEF3Instructions
for building javacef in Windows XP.

I hit several problems, listed below in chronological order:

1. bullet #1 says to "put the cefclient.exe and all other files...".
However when I unzipped cef_binary_3.1750.1738_windows32_client.7z there was no 
cefclient.exe in it.

2. I chose to "ninja" configuration but I don't have a "ninja" executable. I am 
using "python tools\gyp\pylib\gyp\generator\ninja.py" instead. This executed in 
0 seconds, so I have doubts it worked as expected.

3. run.bat fails with "java.lang.ClassNotFoundException: 
org.embedded.browser.SampleBrowserSWT".  Examining the command that is 
activated by run.bat I found that it attempts to use 
javacef\cef3\tools\..\out\Debug\javacef3_win32.jar but this file doesn't exist. 
Also, while I have SampleBrowserSWT.java there is no compiled 
SampleBrowserSWT.class so I'm missing a step there as well.

I hope you can help me - 
please advise what did I do wrong and how to fill the missing pieces.

Original issue reported on code.google.com by ift...@gmail.com on 26 Aug 2014 at 12:37

GoogleCodeExporter commented 9 years ago
Update: 
I was able to build the java sources, so I have SampleBrowserSWT.class, 
unfortunately it has an exception:
Exception in thread "main" java.lang.UnsatisfiedLinkError: no libcef in 
java.library.path

For future readers, to build the java files I used:
javac  -cp "..\lib\win\swt32.jar;."    
org/embedded/browser/SampleBrowserSWT.java
from directory cef\java\src.

Original comment by ift...@gmail.com on 26 Aug 2014 at 12:55

GoogleCodeExporter commented 9 years ago
Update #2:

I found libcef.lib, and adding its folder to the libpath fixed that Exception, 
but a new exception pops:

Exception in thread "main" java.lang.UnsatisfiedLinkError: no chromium_loader 
in java.library.path

Unfortunately looks like there is no pre-compiled chromium_loader so I'm 
exploring how to build it now...

Original comment by ift...@gmail.com on 26 Aug 2014 at 1:35

GoogleCodeExporter commented 9 years ago
1. A folder should be extracted from 
cef_binary_3.1750.1738_windows32_client.7z. You can go inside the folder and 
move all files including cefclient.exe into cef_runtime\win32

2. If you don't have ninja, you should have visual studio installed and choose 
the visual studio configurations based on your version.

3. You can then build the project in visual studio and open run.bat. 
chromium_loader.dll will be compiled.

Original comment by wjyw...@gmail.com on 27 Aug 2014 at 4:27