This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
I assume that in current state PATH is searched for common pdf viewers. But obviously only for those on *nix systems as on windows nothing is found. I am not sure what programs are common on windows, but at least AcroRd32.exe and similar should be added to the list of searched viewers. Product Version: NetBeans IDE 6.0 Beta 2 (Build 200710172300)
Fixed in the trunk. On Windows, the following command is executed to invoke the system's default PDF viewer: cmd.exe /C start <filename> I verified it on Windows XP and Windows Vista. Modified file: utilities/src/org/netbeans/modules/pdf/PDFOpenSupport.java (1.18) Diff: http://deadlock.netbeans.org/fisheye/browse/netbeans/utilities/src/org/netbeans/modules/pdf/PDFOpenSupport.java?r1=1.17&r2=1.18
Verified.
There was a bug in the patch - see bug #122221 ("Opening PDF file brings up command console [on Windows]"). When porting this fix, remember to also apply the fix of bug #122221 (http://deadlock.netbeans.org/fisheye/browse/netbeans/utilities/src/org/netbeans/modules/pdf/PDFOpenSupport.java?r1=1.18&r2=1.19).