Link to home
Create AccountLog in
Avatar of Brook_Lane
Brook_LaneFlag for United States of America

asked on

Run two instances of the same Java JNLP simultaneously

I'm trying to find a way to simultaneously launch multiple instances of the same Java .jnlp on the same PC. Currently the .jnlp is called from a shortcut using Java SE with the following paths:

"C:\Program Files (x86)\Java\jre1.7.0_75\bin\javaws.exe" http://servername.domain/applicationname/launch.jnlp 

Unfortunately I get the error: "An instance of ProgamName is already running. ONly one may be running at a time."

The developer insists that this is a limitation of Java, and suggested using a terminal server to open a second instance on the same PC, which seems cumbersome and ridiculous to me. My hope is that there is some way to perhaps specify a differnt application name from the shortcut or from a launch script that would allow java to think they are tow different applications.

Any ideas would be greatly appreciated.
Avatar of CEHJ
CEHJ
Flag of United Kingdom of Great Britain and Northern Ireland image

I have a jnlp that checks my download speed. It's a system tray app. Here are two of them running simultaneously

User generated image
Avatar of Brook_Lane

ASKER

Well, I suppose that would suggest that perhaps Java is not to blame then.
ASKER CERTIFIED SOLUTION
Avatar of CEHJ
CEHJ
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
Thank you, that confirms that it isn't Java, but rather the application.
:)
Check that you're not running an app designed to be a singleton