I have a class that has a main method and when I run it, it creates the pie chart.
I have a servlet that calls the main method. It doesn't show any errors and finishes normally, but it doesn't create the pie chart.
I refreshed the project folder, the parent project folder, searched it, and nothing...
You seem to assume that web apps have a default directory where files you create will end up in, but they don't. You must use absolute paths in web apps.
Ulf Dittmer wrote:You seem to assume that web apps have a default directory where files you create will end up in, but they don't. You must use absolute paths in web apps.
Yes, you're right. Thank you Ulf! =)
Try 100 things. 2 will work out, but you will never know in advance which 2. This tiny ad might be one:
a bit of art, as a gift, the permaculture playing cards