You can also try to execute your .ppt file as a DOS command. If the PowerPoint is installed, and configured to be the default handler for files with .ppt extension (which is the default setting), the powerpoint will be started to open your file. Otherwise you'll get an error message. [ July 13, 2004: Message edited by: Dmitry Melnik ]
Joined: Jul 01, 2003
Originally posted by James Swan: To get the exact path on the user's machine, you'll probably going to have to dive into the Windows registry to retrieve that value:
eg. on my machine I have this key (I've got office 2000, installed, so depending on the version of Office, the registry key value will be different):
I tried to enumarate the keys but I am getting a runtime expection saying
java.lang.IllegalStateException: You must successfuly call method initialize before calling this method. at ca.beq.util.win32.registry.RegistryKey.checkInitialized(RegistryKey.java:183) at ca.beq.util.win32.registry.RegistryKey.<init>(RegistryKey.java:235) at Test.main(Test.java:31) Exception in thread "main"
java.lang.UnsatisfiedLinkError: no jRegistryKey in java.library.path at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1491) at java.lang.Runtime.loadLibrary0(Runtime.java:788) at java.lang.System.loadLibrary(System.java:834) at ca.beq.util.win32.registry.RegistryKey.initialize(RegistryKey.java:156) at TestJNI.main(TestJNI.java:20) Exception in thread "main"
Can someone help me?
Joined: Jun 26, 2001
1) You're gonna get hammered by the moderators to change your display name
2) the nature of that error is the ".dll" associated with JRegistryKey can not be found in your "path" when invoking System.loadLibrary(). I'm not all that familiar with Eclipse, but try adding the location to that ".dll" to your "path" variable in Eclipse. [ July 27, 2004: Message edited by: James Swan ]