Can you please check the permissions.?Look like it is permission issue.
Is this thread a joke? The question refers to an undefined 'not working' a problem and then asks how to perform an almost unspecified task, and the answer magically decides that it's a permissions issue.
Unless this thread starts to make sense it will be locked.
You might want to specify what technologies (architecture) you are using if you want help. For example, are you using applets, JSP, JSF? What do you have on the back end, a servlet? When you say you want the user to open it up, using what? In a browser, as a pdf file, using the client's Microsoft Word application? Saying youi want to use 'plan java code' doesn't provide enough information to help you.