ifener / javachromiumembedded

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

jcef_binary_3.1750.1738.91_windows64.7z Unsatisfied Link Error? #126

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Download jcef_binary_3.1750.1738.91_windows64.7z
2. Extract
3. compile.bat
4. run.bat

What is the expected output? What do you see instead?
I saw this:

C:\Users\Ray\Downloads\jcef_binary_3.1750.1738.91_windows64>compile.bat

C:\Users\Ray\Downloads\jcef_binary_3.1750.1738.91_windows64>javac -cp 
"./bin;./bin/*" ./bin/tests/detailed/*.java ./bin/tests/detailed/dialog/*.java 
./bin/tests/detailed/handler/*.java ./bin/tests/detailed/ui/*.java 
./bin/tests/simple/*.java

C:\Users\Ray\Downloads\jcef_binary_3.1750.1738.91_windows64>cd bin

C:\Users\Ray\Downloads\jcef_binary_3.1750.1738.91_windows64\bin>jar -cf 
jcef-tests.jar tests/detailed/*.class tests/detailed/dialog/*.class 
tests/detailed/handler/*.class tests/detailed/ui/*.class tests/simple/*.java

C:\Users\Ray\Downloads\jcef_binary_3.1750.1738.91_windows64\bin>cd ..

C:\Users\Ray\Downloads\jcef_binary_3.1750.1738.91_windows64>run.bat

C:\Users\Ray\Downloads\jcef_binary_3.1750.1738.91_windows64>java -cp 
"./bin;./bin/*" -Djava.library.path=./bin/lib/win64 tests.detailed.MainFrame
Offscreen rendering disabled
Exception in thread "main" java.lang.UnsatisfiedLinkError: 
C:\Users\Ray\Downloads\jcef_binary_3.1750.1738.91_windows64\bin\lib\win64\jcef.d
ll: 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 tests.detailed.MainFrame.<init>(MainFrame.java:103)
        at tests.detailed.MainFrame.main(MainFrame.java:70)

C:\Users\Ray\Downloads\jcef_binary_3.1750.1738.91_windows64>

What version of the product are you using? On what operating system?

jcef_binary_3.1750.1738.91_windows64.7z downloaded from this page: 
http://www.magpcss.net/cef_downloads/index.php?query=label%3A~Deprecated+label%3
AJCEF+sort%3Aname#list

on Windows 8.1 (AMD64)

Please provide any additional information below.

"java -version" output:

java version "1.8.0_20"
Java(TM) SE Runtime Environment (build 1.8.0_20-b26)
Java HotSpot(TM) 64-Bit Server VM (build 25.20-b23, mixed mode)

Original issue reported on code.google.com by r...@malanga.us on 14 Oct 2014 at 12:05

GoogleCodeExporter commented 9 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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
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