unowinreg.dll: can't load a 32-bit dll on amd 64bit platform

The Application Programming Interface and the OASIS Open Document Format

unowinreg.dll: can't load a 32-bit dll on amd 64bit platform

Postby gringogordo » Wed Apr 08, 2015 10:42 am

Hi,

I'm making a first foray into UNO and after failing in my main attempt (bootstrapper issues) I've gone right back to basics and I'm trying to follow the beginners guide

https://wiki.openoffice.org/wiki/Documentation/DevGuide/FirstSteps/First_Contact#AntBuildScript

I am running Java on eclipse on Windows 7 64 bit. I have modified the build.xml for Windows (and Office 4) and although I'm no expert I think I've done it successfully - the application builds and tries to run.

Initially I got an error -
Exception in thread "main" java.lang.UnsatisfiedLinkError: no unowinreg in java.library.path


I copied unowinreg.dll from the sdk to the system32 folder and now I get this error

unowinreg.dll: can't load ia 32-bit .dll on a amd 64-bit platform


I can't find anything on this error since 2012 but I'm assuming there must be a way to run uno api on windows 64 ? The sdk I downloaded is 4.1.1 so it is current. Am I using an old approach and need to try something different or ?!

Thanks.
Cheers
Open Office 4.1 API
gringogordo
 
Posts: 6
Joined: Fri Apr 03, 2015 6:44 pm

Re: unowinreg.dll: can't load a 32-bit dll on amd 64bit plat

Postby RoryOF » Wed Apr 08, 2015 10:45 am

Apache OpenOffice 4.1.4 on Xubuntu 16.04.03 (mostly 64 bit version) and infrequently on Win2K/XP
14 October 2016 was Pooh's 90th birthday
User avatar
RoryOF
Moderator
 
Posts: 25503
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: unowinreg.dll: can't load a 32-bit dll on amd 64bit plat

Postby gringogordo » Wed Apr 08, 2015 10:57 am

Thanks. That looks very complex ? Does that mean the answer is that there is no relatively 'off the shelf' way to use uno in a 64 bit windows operating system ?
Cheers
Open Office 4.1 API
gringogordo
 
Posts: 6
Joined: Fri Apr 03, 2015 6:44 pm

Re: unowinreg.dll: can't load a 32-bit dll on amd 64bit plat

Postby RoryOF » Wed Apr 08, 2015 11:06 am

I can't say, as I'm not using such code. The two links I gave were where I would start to try to sort this problem, if I had it.
Apache OpenOffice 4.1.4 on Xubuntu 16.04.03 (mostly 64 bit version) and infrequently on Win2K/XP
14 October 2016 was Pooh's 90th birthday
User avatar
RoryOF
Moderator
 
Posts: 25503
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: unowinreg.dll: can't load a 32-bit dll on amd 64bit plat

Postby gringogordo » Wed Apr 08, 2015 12:05 pm

Okay thanks for the pointer. To be honest, for my fairly simple requirement, if I have to go down that route I'll probably switch product for now. Possibly it was an error to mix environments.
Cheers
Open Office 4.1 API
gringogordo
 
Posts: 6
Joined: Fri Apr 03, 2015 6:44 pm

Re: unowinreg.dll: can't load a 32-bit dll on amd 64bit plat

Postby gringogordo » Wed Apr 08, 2015 12:53 pm

Actually sorry looking at this post
https://forum.openoffice.org/en/forum/v ... &t=75056it looks like it just isn't possible at the moment without writing a lot of extra code. Apologies I should have searched a bit more thoroughly first.
Cheers
Open Office 4.1 API
gringogordo
 
Posts: 6
Joined: Fri Apr 03, 2015 6:44 pm

Re: unowinreg.dll: can't load a 32-bit dll on amd 64bit plat

Postby cdschorsch » Fri Apr 17, 2015 10:49 am

You have to use a 32-Bit JDK for your eclipse project. Eclipse self can run with a 64 Bit JDK.
OpenOffice 4.1.1 on Ubuntu 14.04
cdschorsch
 
Posts: 2
Joined: Fri Apr 17, 2015 10:12 am

Re: unowinreg.dll: can't load a 32-bit dll on amd 64bit plat

Postby Ritter » Fri Jul 17, 2015 8:41 am

So, in order to use the Java UNO bridge to access an Openoffice installation on a 64bit Windows, we either
a) have to use a 32bit JVM
or
b) would have to use a 64bit Openoffice

However there's no 64bit Openoffice on Windows, AFAIK. So only a) would work, but most 64bit Windows installations have a 64bit JVM.

Well, that's not good. It's easy on Linux, but not on Windows, as usual. Sigh.
Openoffice v4 on Win7 64bit
Ritter
 
Posts: 2
Joined: Sun Aug 04, 2013 4:56 pm
Location: Germany


Return to UNO API and ODF

Who is online

Users browsing this forum: No registered users and 3 guests