[api-dev] unowinreg.dll error on windows xp while launching UNO client application

2009-03-19 Thread ashok _
I have an openoffice uno client application built using the OOo
netbeans plugin on ubuntu 8.04 with openoffice.org 3.0.1 and the 3.0
sdk...

It runs fine on ubuntu, but the same application fails to launch on
windows and fails with the following error :

Exception in thread "main" java.lang.UnsatisfiedLinkError:
C:\Documents and Settings\Administrator\Local
Settings\Temp\unowinreg1318910559123489226.dll: Can't load this .dll
(machine code=0xbd) on a IA 32-bit platform
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(Unknown Source)
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.load0(Unknown Source)
at java.lang.System.load(Unknown Source)
at com.sun.star.lib.loader.WinRegKey.(WinRegKey.java:88)
at 
com.sun.star.lib.loader.InstallationFinder.getPathFromWindowsRegistry(InstallationFinder.java:207)
at 
com.sun.star.lib.loader.InstallationFinder.getPath(InstallationFinder.java:115)
at com.sun.star.lib.loader.Loader.getCustomLoader(Loader.java:179)
at com.sun.star.lib.loader.Loader.main(Loader.java:140)


Any ideas what may be wrong ?

-
To unsubscribe, e-mail: dev-unsubscr...@api.openoffice.org
For additional commands, e-mail: dev-h...@api.openoffice.org



Re: [api-dev] unowinreg.dll error on windows xp while launching UNO client application

2009-03-19 Thread Stephan Bergmann

On 03/19/09 09:33, ashok _ wrote:

I have an openoffice uno client application built using the OOo
netbeans plugin on ubuntu 8.04 with openoffice.org 3.0.1 and the 3.0
sdk...

It runs fine on ubuntu, but the same application fails to launch on
windows and fails with the following error :

Exception in thread "main" java.lang.UnsatisfiedLinkError:
C:\Documents and Settings\Administrator\Local
Settings\Temp\unowinreg1318910559123489226.dll: Can't load this .dll
(machine code=0xbd) on a IA 32-bit platform
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(Unknown Source)
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.load0(Unknown Source)
at java.lang.System.load(Unknown Source)
at com.sun.star.lib.loader.WinRegKey.(WinRegKey.java:88)
at 
com.sun.star.lib.loader.InstallationFinder.getPathFromWindowsRegistry(InstallationFinder.java:207)
at 
com.sun.star.lib.loader.InstallationFinder.getPath(InstallationFinder.java:115)
at com.sun.star.lib.loader.Loader.getCustomLoader(Loader.java:179)
at com.sun.star.lib.loader.Loader.main(Loader.java:140)


Any ideas what may be wrong ?


Where did you get the SDK from (directly from 
)?


The unowinreg.dll contained in your client application (and unpacked 
from there to C:\...\Temp\unowinreg1318910559123489226.dll during 
execution of the client application) should be an exact copy of the 
unowinreg.dll contained in the SDK at 
/opt/openoffice.org/basis3.0/sdk/classes/win/unowinreg.dll.


As a first step, please check whether or not the three unowinreg.dll 
instances (contained in your client application; unpacked to 
C:\...\Temp\unowinreg1318910559123489226.dll; at 
/opt/openoffice.org/basis3.0/sdk/classes/win/unowinreg.dll) are identical.


-Stephan

-
To unsubscribe, e-mail: dev-unsubscr...@api.openoffice.org
For additional commands, e-mail: dev-h...@api.openoffice.org



Re: [api-dev] unowinreg.dll error on windows xp while launching UNO client application

2009-03-19 Thread Steff Grund

ashok _ wrote:

I have an openoffice uno client application built using the OOo
netbeans plugin on ubuntu 8.04 with openoffice.org 3.0.1 and the 3.0
sdk...

It runs fine on ubuntu, but the same application fails to launch on
windows and fails with the following error :

Exception in thread "main" java.lang.UnsatisfiedLinkError:
C:\Documents and Settings\Administrator\Local
Settings\Temp\unowinreg1318910559123489226.dll: Can't load this .dll
(machine code=0xbd) on a IA 32-bit platform
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(Unknown Source)
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.load0(Unknown Source)
at java.lang.System.load(Unknown Source)
at com.sun.star.lib.loader.WinRegKey.(WinRegKey.java:88)
at 
com.sun.star.lib.loader.InstallationFinder.getPathFromWindowsRegistry(InstallationFinder.java:207)
at 
com.sun.star.lib.loader.InstallationFinder.getPath(InstallationFinder.java:115)
at com.sun.star.lib.loader.Loader.getCustomLoader(Loader.java:179)
at com.sun.star.lib.loader.Loader.main(Loader.java:140)


Any ideas what may be wrong ?

-
To unsubscribe, e-mail: dev-unsubscr...@api.openoffice.org
For additional commands, e-mail: dev-h...@api.openoffice.org




There was a change in the NetBeans plugin to use the unowinreg.dll from 
the installed SDK as opposed to use one from the plugin internally. 
Depending on the NetBeans version (6.1 or newer), you can update the 
plugin to the latest version. (See "Tools -> Plugins -> Updates" in 
NetBeans if an update is available)


Hope that helps, Steffen

-
To unsubscribe, e-mail: dev-unsubscr...@api.openoffice.org
For additional commands, e-mail: dev-h...@api.openoffice.org



Re: [api-dev] unowinreg.dll error on windows xp while launching UNO client application

2009-03-19 Thread ashok _
On Thu, Mar 19, 2009 at 2:05 PM, Steff Grund  wrote:
>
> There was a change in the NetBeans plugin to use the unowinreg.dll from the
> installed SDK as opposed to use one from the plugin internally. Depending on
> the NetBeans version (6.1 or newer), you can update the plugin to the latest
> version. (See "Tools -> Plugins -> Updates" in NetBeans if an update is
> available)
>


Steffen and Stephan :

thank you very much ---updating the plugin and replacing the
unowinreg.dll in my netbeans project with the unowinreg.dll from the
SDK solved my problem.

Ashok

-
To unsubscribe, e-mail: dev-unsubscr...@api.openoffice.org
For additional commands, e-mail: dev-h...@api.openoffice.org