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.

Bug 119333

Summary: Common PDF viewer for Windows
Product: utilities Reporter: novakm <novakm>
Component: PDFAssignee: Marian Petras <mpetras>
Status: VERIFIED FIXED    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: Windows Vista   
Issue Type: DEFECT Exception Reporter:

Description novakm 2007-10-18 11:21:53 UTC
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)
Comment 1 Marian Petras 2007-10-22 11:01:53 UTC
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
Comment 2 novakm 2007-10-25 09:32:38 UTC
Verified.
Comment 3 Marian Petras 2007-11-20 20:11:03 UTC
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).