i have developed an invoice generate program. each pdf invoice include an image on top left corner, when i run the application on someone else's machine(not the developed machine), it doesn't show the image on top left corner of the pdf.
this is how I read the image:
Image companyLogo = Image.getInstance("images/amadeus14.png");
This is my option 1
within the project i have created a package and inside it i have made a folder called image. inside that folder i have put that image file and tried to access it in my program.
Image companyLogo = Image.getInstance("Resources/Images/HemasLogo.jpg");
this is my option 2 option
but it gives an error saying
java.io.FileNotFoundException: C:\Users\businesssupport\Documents\NetBeansProjects\invoiceGenerator\Resources\HemasLogo.jpg (The system cannot find the path specified)