Maybe I'm late, however the problem is that you changed the package name of the WinRegKey class (blub.WinRegKey instead of com.sun.star.lib.loader.WinRegKey). When you use a dll, the java class that calls the native code must keep its package name. On the contrary you should create again the dll file with the new package signature. Take a look on this forum:
http://forum.java.sun.com/thread.jspa?threadID=5280845&tstart=120 It happens the same to me. Bye Filippo Christian Walter-2 wrote: > > Hi Tobias, > >> As described on the snippet page, it has to be in win/unowinreg.dll >> > > Sadly this doesnt work either, error report is: > > C:\>java -jar Test.jar > Exception in thread "main" java.lang.UnsatisfiedLinkError: > blub.WinRegKey.winreg > _RegOpenCurrentUser([J)Z > at blub.WinRegKey.winreg_RegOpenCurrentUser(Native Method) > at blub.WinRegKey.getValue(WinRegKey.java:139) > at blub.WinRegKey.getStringValue(WinRegKey.java:118) > at > blub.InstallationFinder.getPathFromWindowsRegistry(InstallationFinder > .java:239) > at blub.InstallationFinder.getPath(InstallationFinder.java:146) > at blub.Loader.initialize(Loader.java:181) > at blub.Loader.main(Loader.java:112) > > Looks different than the one before, but still it does not really work. > Could > you please upload a jar-file where you are sure that the loader-thing > works > somewhere? > > Because mine now works with linux, but windows really doesnt want to find > the > openoffice installation. > > Thanks again, > > Christian > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Using-Loader-with-windows-does-not-work-tp15352256p17623241.html Sent from the openoffice - api dev mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
