java project load library can't load 32-bit to 64-bit

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

java project load library can't load 32-bit to 64-bit

Postby Arekkusu » Fri Aug 25, 2017 10:04 am

Hi,

I have a problem with my Jcef project.
It seems that when I want to load some native libraries ( libcef.dll and chromium_loader.dll) I face up a problem Image

but the project that had to be built in visual studio was built in release x64... and I don't know what should I do..

Did you face this problem in the past, or have I done something wrong ?
Attachments
forcefforum.png
forcefforum.png (14.7 KiB) Viewed 10246 times
Arekkusu
Techie
 
Posts: 20
Joined: Fri Aug 25, 2017 2:35 am

Re: java project load library can't load 32-bit to 64-bit

Postby magreenblatt » Fri Aug 25, 2017 10:19 am

Looks like you're using 32-bit binaries with a 64-bit JVM. You need to use 64-bit binaries with a 64-bit JVM.
magreenblatt
Site Admin
 
Posts: 12382
Joined: Fri May 29, 2009 6:57 pm

Re: java project load library can't load 32-bit to 64-bit

Postby Arekkusu » Fri Aug 25, 2017 10:30 am

So the problem is that the build from here http://opensource.spotify.com/cefbuilds/index.html was from the " Windows 32-bit Builds "?
Arekkusu
Techie
 
Posts: 20
Joined: Fri Aug 25, 2017 2:35 am

Re: java project load library can't load 32-bit to 64-bit

Postby Arekkusu » Fri Aug 25, 2017 10:41 am

I fixed my problem,

My native library location was messed up, I would put the correct path in the code but it would read it from the libraries that i've added.

Thank you.

But it still doesn't work.

Now I have another problem, this was my first problem actually and I didn't know how to fix it.
Attachments
forcefforum.png
forcefforum.png (15.12 KiB) Viewed 10243 times
Arekkusu
Techie
 
Posts: 20
Joined: Fri Aug 25, 2017 2:35 am

Re: java project load library can't load 32-bit to 64-bit

Postby Arekkusu » Fri Aug 25, 2017 11:29 am

Further information about the current problem.

I've ran the "Dependency Walker" on the "libcef.dll" and I've seen that the file requires more external dll's and some of them are not found.

Did I have to do something in particular to the downloaded build in order to have those external dll's found or that is normal of what happened.
Attachments
forcefforum.png
forcefforum.png (75.98 KiB) Viewed 10242 times
Arekkusu
Techie
 
Posts: 20
Joined: Fri Aug 25, 2017 2:35 am

Re: java project load library can't load 32-bit to 64-bit

Postby magreenblatt » Fri Aug 25, 2017 11:59 am

Libraries required by libcef.dll need to be preloaded. For example: https://bitbucket.org/chromiumembedded/ ... p.java-139
magreenblatt
Site Admin
 
Posts: 12382
Joined: Fri May 29, 2009 6:57 pm

Re: java project load library can't load 32-bit to 64-bit

Postby Arekkusu » Sun Aug 27, 2017 11:50 am

So I've preloaded the needed classes for the native classes that were needed.

But now I get this thread problem, and I'm really not experienced with it, it shows that the problem happened inside the native code.

Hope you can help me, I don't know how to connect the dots of the errors to find out by myself what to do.

I've attached the error detected in the java project and the error report.
Attachments
hs_err_pid11496.log
(19.42 KiB) Downloaded 563 times
1.png
error report
1.png (16.83 KiB) Viewed 10230 times
Arekkusu
Techie
 
Posts: 20
Joined: Fri Aug 25, 2017 2:35 am

Re: java project load library can't load 32-bit to 64-bit

Postby Arekkusu » Sun Aug 27, 2017 1:25 pm

I fixed the latest problem but now I got this.
Attachments
2.png
2.png (112.1 KiB) Viewed 10227 times
Arekkusu
Techie
 
Posts: 20
Joined: Fri Aug 25, 2017 2:35 am

Re: java project load library can't load 32-bit to 64-bit

Postby Arekkusu » Mon Aug 28, 2017 6:03 am

To be more precise the thread that is created doesn't work,I've attached a picture showing the location of where the previous picture got the error.

Do you think is the problem with the native code compiled ?
Attachments
preciselocation.png
preciselocation.png (117.65 KiB) Viewed 10213 times
Arekkusu
Techie
 
Posts: 20
Joined: Fri Aug 25, 2017 2:35 am


Return to JCEF Forum

Who is online

Users browsing this forum: No registered users and 19 guests