Closed GoogleCodeExporter closed 8 years ago
Also, just in case JDK8 removed some required DLL, I tried with
java version "1.7.0_67"
Java(TM) SE Runtime Environment (build 1.7.0_67-b01)
Java HotSpot(TM) 64-Bit Server VM (build 24.65-b04, mixed mode)
with the same output
Original comment by r...@malanga.us
on 14 Oct 2014 at 12:40
Here's where it gets weird. I created a project in eclipse (4.4.1) for the
"tests" source code, added the jars, and set the native path. When I run it
that way, I get the same:
Exception in thread "main" java.lang.UnsatisfiedLinkError:
C:\Users\Ray\workspace\jcef\lib\win64\jcef.dll: Can't find dependent libraries
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1929)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1847)
at java.lang.Runtime.loadLibrary0(Runtime.java:870)
at java.lang.System.loadLibrary(System.java:1119)
at org.cef.CefApp.<init>(CefApp.java:54)
at org.cef.CefApp.getInstance(CefApp.java:75)
at org.cef.CefApp.getInstance(CefApp.java:70)
at tests.simple.MainFrame.<init>(MainFrame.java:58)
at tests.simple.MainFrame.main(MainFrame.java:133)
So I set a breakpoint in java.lang.System.loadLibrary(String libname). After
watching the libraries go by (duplcates removed for brevity): awt, icudt,
libcef, jcef, fontmanager, net, nio, t2k, the example loaded and worked
perfectly.
Original comment by r...@malanga.us
on 14 Oct 2014 at 12:53
This is likely already fixed in newer revisions of JCEF. You can build it
yourself as described at
https://code.google.com/p/javachromiumembedded/wiki/BranchesAndBuilding.
Original comment by magreenb...@gmail.com
on 14 Oct 2014 at 5:51
[deleted comment]
try the following steps:
set JAVA_HOME=Your_Java_Home
set PATH=%JAVA_HOME%\jre\bin;%PATH%
run.bat
NOTE that java path should be first path to search
in this way, it run successfully, I do not know the reason
Original comment by panqua...@gmail.com
on 28 Jan 2015 at 5:10
1. I tried to update Java and JRE 1.7.0_71 and still got the same error. Also
I tried to do manual install but I have problem with GYP. See below error.
2. I want to create a project in the Eclipse for running the MainFrame.java.
tell me how to create a CEF project for running this test java.
C:\Interact\JCEF\workspace\jcef_binary_3.1750.1738.91_windows64>compile.bat
C:\Interact\JCEF\workspace\jcef_binary_3.1750.1738.91_windows64>javac -cp "./bin
;./bin/*" ./bin/tests/detailed/*.java ./bin/tests/detailed/dialog/*.java ./bin/t
ests/detailed/handler/*.java ./bin/tests/detailed/ui/*.java ./bin/tests/simple/*
.java
C:\Interact\JCEF\workspace\jcef_binary_3.1750.1738.91_windows64>cd bin
C:\Interact\JCEF\workspace\jcef_binary_3.1750.1738.91_windows64\bin>jar -cf jcef
-tests.jar tests/detailed/*.class tests/detailed/dialog/*.class tests/detailed/h
andler/*.class tests/detailed/ui/*.class tests/simple/*.java
C:\Interact\JCEF\workspace\jcef_binary_3.1750.1738.91_windows64\bin>cd ..
C:\Interact\JCEF\workspace\jcef_binary_3.1750.1738.91_windows64>run.bat
C:\Interact\JCEF\workspace\jcef_binary_3.1750.1738.91_windows64>java -cp "./bin;
./bin/*" -Djava.library.path=./bin/lib/win64 tests.simple.MainFrame
Exception in thread "main" java.lang.UnsatisfiedLinkError: C:\Interact\JCEF\work
space\jcef_binary_3.1750.1738.91_windows64\bin\lib\win64\jcef.dll: Can't find de
pendent libraries
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary1(Unknown Source)
at java.lang.ClassLoader.loadLibrary0(Unknown Source)
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at org.cef.CefApp.<init>(CefApp.java:54)
at org.cef.CefApp.getInstance(CefApp.java:75)
at org.cef.CefApp.getInstance(CefApp.java:70)
at tests.simple.MainFrame.<init>(MainFrame.java:58)
at tests.simple.MainFrame.main(MainFrame.java:133)
C:\Interact\JCEF\workspace\jcef_binary_3.1750.1738.91_windows64>
Original comment by hoalamas...@gmail.com
on 17 Mar 2015 at 8:36
Solution #5 works on win 8.1 64. Thanks
Original comment by riasol....@gmail.com
on 21 Mar 2015 at 7:09
Original issue reported on code.google.com by
r...@malanga.us
on 14 Oct 2014 at 12:05