Folder permissions are the likely culprit. Is the exception giving you any more information?
Ezzaral
Posting Genius
15,986 posts since May 2007
Reputation Points: 3,250
Solved Threads: 847
Have you checked the file permission on the location you're showing for 'outFileNamePDF'?
Ezzaral
Posting Genius
15,986 posts since May 2007
Reputation Points: 3,250
Solved Threads: 847
From your code above, it looks like you're showing the file name in a dialog just before opening
JOptionPane.showMessageDialog(null,outFileNamePDF);
Can you check the read/write permissions on that location?
Netbeans created build and dist folders for the files that it generates. I'm not sure how ownership and permissions are set on those. I've never used Ubuntu in my life, so I couldn't tell you how to check them.
Ezzaral
Posting Genius
15,986 posts since May 2007
Reputation Points: 3,250
Solved Threads: 847