Hi Paul,
Thanks for your response.
In windows,if you open your service's properties window, go to the Log On tab then check the "Allow service to interact with desktop" check box you can run your java gui app properly.
But my problem is to allow the service to be run under with another user's account. Because the local user doesn't have access to the path where my service is trying to get some data and process it.
And also the local user shouldn't have access to that path.Just my app should run with privileged account and do its work.
Because of the above issue i come to a decision to make a java gui app and run it as windows service and give it privileged rights to run.
So i need to do some more research to make my java app run as i mentioned above.
Thanks