Creating the final JAR in IntelliJ with dependencies

Having problems with building or using the JCEF Java binding? Ask your questions here.

Creating the final JAR in IntelliJ with dependencies

Postby pinheirojava » Tue Sep 04, 2018 9:16 am

Hello friends,

My project with jcef is working properly on IntelliJ.
But when I generate the final .JAR from my project I think the dependencies are not being loaded.
The .JAR files from the JCEF distribution are not being copied.

Here are some screenshots from Intellij:

JAR_1.jpg
JAR_1.jpg (72.17 KiB) Viewed 23875 times


JAR_2.jpg
JAR_2.jpg (62.91 KiB) Viewed 23875 times


JAR_3.jpg
JAR_3.jpg (187.81 KiB) Viewed 23875 times


Other screens in the post below:
pinheirojava
Techie
 
Posts: 22
Joined: Wed Aug 29, 2018 7:00 am

Re: Creating the final JAR in IntelliJ with dependencies

Postby pinheirojava » Tue Sep 04, 2018 9:17 am

JAR_4.jpg
JAR_4.jpg (89.31 KiB) Viewed 23873 times


JAR_5.jpg
JAR_5.jpg (32.81 KiB) Viewed 23873 times
pinheirojava
Techie
 
Posts: 22
Joined: Wed Aug 29, 2018 7:00 am

Re: Creating the final JAR in IntelliJ with dependencies

Postby pinheirojava » Tue Sep 04, 2018 9:38 am

The exception: no chrome_elf

Exception in thread "AWT-EventQueue-0" java.lang.UnsatisfiedLinkError: no chrome_elf in java.library.path: [C:\Program Files\Java\jdk-10.0.2\bin, C:\WINDOWS\Sun\Java\bin,
pinheirojava
Techie
 
Posts: 22
Joined: Wed Aug 29, 2018 7:00 am

Re: Creating the final JAR in IntelliJ with dependencies

Postby ndesktop » Tue Sep 04, 2018 2:38 pm

pinheirojava wrote:The exception: no chrome_elf

Exception in thread "AWT-EventQueue-0" java.lang.UnsatisfiedLinkError: no chrome_elf in java.library.path: [C:\Program Files\Java\jdk-10.0.2\bin, C:\WINDOWS\Sun\Java\bin,

Looks like chrome_elf.dll is missing. It needs to be near libcef.dll.
ndesktop
Master
 
Posts: 756
Joined: Thu Dec 03, 2015 10:10 am

Re: Creating the final JAR in IntelliJ with dependencies

Postby pinheirojava » Tue Sep 04, 2018 5:50 pm

ndesktop wrote:
pinheirojava wrote:The exception: no chrome_elf

Exception in thread "AWT-EventQueue-0" java.lang.UnsatisfiedLinkError: no chrome_elf in java.library.path: [C:\Program Files\Java\jdk-10.0.2\bin, C:\WINDOWS\Sun\Java\bin,

Looks like chrome_elf.dll is missing. It needs to be near libcef.dll.


Hello Friend,

I already added all dependencies:

Required components:
The following components are required. JCEF will not function without them.

* Java archives.
jcef.jar
gluegen-rt.jar
gluegen-rt-natives-windows-amd64.jar
jogl-all.jar
jogl-all-natives-windows-amd64.jar

* CEF JNI library.
jcef.dll

* CEF JNI process helper.
jcef_helper.exe

* CEF core library.
* libcef.dll

* Unicode support data.
* icudtl.dat

* V8 snapshot data.
* natives_blob.bin
* snapshot_blob.bin


But when I generate the .jar I'm still getting the following error:

Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: org/cef/handler/CefLifeSpanHandler


Thanks in advance !
pinheirojava
Techie
 
Posts: 22
Joined: Wed Aug 29, 2018 7:00 am


Return to JCEF Forum

Who is online

Users browsing this forum: No registered users and 37 guests