I made a java program for a pop-up from time to time by running a batch file. Application is working fine but after running the application(Batch file) we are able to see the cmd prompt in taskbar(minimize state), but i want the application run in background (like skype or gtalk). Please help me. Thank you in advance
Asked
Active
Viewed 809 times
0
-
refer these links, http://stackoverflow.com/questions/1146696/run-java-application-as-background-process http://www.coderanch.com/t/232702/threads/java/running-java-application-background – Mayank Tiwari Jun 12 '13 at 04:59
-
check this link: http://stackoverflow.com/questions/68113/how-to-create-a-windows-service-from-java-app – Pratik Shelar Jun 12 '13 at 05:01
2 Answers
1
Use a vbs script to invoke the batch script it would hide the window
CreateObject("Wscript.Shell").Run "yourbatchname.bat",0,True

Madhawa Priyashantha
- 9,633
- 7
- 33
- 60

Sudheej
- 1,873
- 6
- 30
- 57
1
Make sure you launch it using javaw (instead of java).
Relevant portion from the first link from the first search here:
This is provided as a helper so that application launches its own GUI window and will not launch a console. Whenever we want to run a GUI based application and don’t require a command console, we can use this as application launcher.
I hope this helps you.

zEro
- 1,255
- 14
- 24