How to open a pdf file in JButton action performed, My code is
try
{
Runtime.getRuntime().exec("rundll32 url.dll, FileProtocolHandler " + "C:\\Users\\Thini\\Desktop\\Dictionary Application\\src\\Wall_images\\History word doc.pdf");
}
catch (Exception e)
{
JOptionPane.showMessageDialog(null, "Check file details");
}
Its work perfectly, but when i compile and run that programme another PC - its nothing happen
didn't work
How can i fixed this???
@@ How to attached my pdf ??