gringogordo
gringogordo

Reputation: 2130

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

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.

Upvotes: 0

Views: 722

Answers (1)

gringogordo
gringogordo

Reputation: 2130

Just for reference for anyone else (feel free to correct this if it's wrong).

OpenOffice/UNO is 32 bit and there is no straightforward way to use incorporate it in Java apps developed and running on Windows 64 bit (as of OO 4.1.1). Looking around there seems to be a way of loading the dll (for example see comment by Jordi forum.lwjgl.org/index.php?topic=3585.0) but this looks too complex for my current level of understanding and I suspect it requires some pretty advanced knowledge (again correct me if I'm wrong).

In the end I have gone back to using Jasper (Jaspersoft studio). Which allows saving in odt format.

This isn't a very clever answer but I hope this saves someone some as I didn't find it clear from my initial searches that using open office in a java app on 64 but windows would be a major piece of work.

Upvotes: 1

Related Questions