title: Java service wrapper to create service for Java UI application
body: <p>I have created a Java application which needs to run as a service. For service wrapper I tried using tanuki and other wrapper softwares.
  Now, my application does run as a service - however, it runs as a service under SYSTEM and not under currently logged in user.</p>
  
  <p>My application has a UI, which does not show when the application is running as a service. I doubt that this has happened because the service is running under SYSTEM and not under currently logged in user.
  When I run the application (without installing it as a service), the UI does show up and I could see the java process running under the current user's id, whereas it runs under SYSTEM when installed as a service.</p>
  
  <p>Now, there is nothing to my application if there is no UI. I need to application to run as a service when the system boots up and the UI needs to show up as well.</p>
  
  <p>Has anyone tried to do what I am doing here and has faced a similar issue. If so, how did you go about resolving it?
  Is there a different wrapper service that I could use and not have this issue.</p>
  
  <p>Tanuki's documentation does explain setting a java application as a service, but does not talk about a java applicaiton with a UI and running it under the currently logged in user.</p>
  
  <p><strong>Update</strong></p>
  
  <p>Just so that folks here could get a bit more idea as to what is it that I am trying to accomplish - <em>the behavior that I am trying to have with my app is similar to how Dropbox or Yahoo Messenger or any other software has which starts with Windows boot and continues to run in the background, allowing the users to interact with it using the system tray icon</em>.  So basically all of this has been built in Java/Swing. Now when it has come to deployment of the app - I can run it standalone but running the jar file or by creating and running an executable wrapper for it. However, I want the software to start with Windows boot and continue to run as a service in the background, while allowing the user to make changes and interact with it via lets say bringing up the UI from a system tray icon that it sets.
  As of now, it does run as a service successfully. It performs all the actions that it ideally should - there just is no system tray icon to bring up the UI and make changes to its configuration.</p>
  
  <p><strong>Update - 2</strong></p>
  
  <p>Ok.. I tried advanced installer and it does wrap up everything for me to generate an exe installer for windows. Now all I need is to auto-start the software. Can anyone help me with this? I don't see an option in Advanced installer to automatically have the program add itself up in the auto-start.</p>
  
  <p>Link to tanuki's doc  <a href="http://wrapper.tanukisoftware.com/doc/english/faq.html" rel="nofollow">http://wrapper.tanukisoftware.com/doc/english/faq.html</a></p>