0

I have a Java application that should run at OS startup.
It is running on Windows XP Professional and I added registry key to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run and used this as key value:

java -jar "C:\path\to\app.jar"

But this opens CommandPrompt window at start up!
How Can I run my application on startup without openning that CommandPrompt window?

Thanks

Ariyan
  • 14,760
  • 31
  • 112
  • 175

1 Answers1

1
javaw -jar "C:\path\to\app.jar"

Related/Duplicated

Launch .jar files with command line arguments (but with no console window)

Difference between java and javaw

Community
  • 1
  • 1
Hernán Eche
  • 6,529
  • 12
  • 51
  • 76