views:

711

answers:

2

I've been using Destop.open() to launch a .pdf viewer on Windows machines, both Vista and XP, and most of them work just fine. However, on one XP machine the call does not work, simply returning without throwing any exceptions, and the viewer does not launch. On that machine the file association is properly set up as far as I can tell: double-clicking a .pdf works, as does the "start xxx.pdf" command on the command prompt. I'm thinking it must be a Windows configuration issue, but can't put my finger on it.

Has anyone else seen this problem?

+3  A: 

This is a known problem with early versions of XP SP2, the ShellExecute function stopped accepting URIs; bring the XP machines patches up to date.

To view the exceptions make sure the Java Console is turned on:

Control Panel->Java Control Panel->Advanced->Java Console.
Martin Spamer
A: 

I have the same problem on vista. I found a bug report which suggests that you uninstall magiciso but this doesn't apply to me.

Bedwyr Humphreys