Hi folks,
I tried to open a file on client system, as a last step of exporting the object .
In my Webtop application I created a menu item and put the following codes in execute(..) function of the respective menu item supporting class:
//Exporting the object
-----------------
-----------------
* Codes to export the object work fine, so I can really comment them out
//View the exported file
//trying to spawn a local application thru ShellExecute for the existing file (test)
// System.loadLibrary("User32");
Shell32.ShellExecute(User32.GetDesktopWindow(),
"open",
"G:\\EVERYONE\\test.txt",
"",
"G:\\EVERYONE\\",
1);
My assumption is that, once I have microsoft.jar file to support native operation (user32), the respective native calls would be resolved.
Microsoft.jar sits in \myapp\WEB-INF\lib, as well as at the system PATH.
But when I run the codes above, I have a well known "UnSatisfiedLinkError" for GetDesktopWindow().
Any advise is highly appreciated.
Thanks,
Arkady