Run two instances of the same Java JNLP simultaneously

Brook_Lane
Brook_Lane used Ask the Experts™
on
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.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Top Expert 2016

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

Two invocations of javaws on the same jnlp

Author

Commented:
Well, I suppose that would suggest that perhaps Java is not to blame then.
Top Expert 2016
Commented:
Probably not. Demonstrate the falsity or truth by running two of say, these

https://docs.oracle.com/javase/tutorialJWS/samples/uiswing/TrackFocusDemoProject/TrackFocusDemo.jnlp

Author

Commented:
Thank you, that confirms that it isn't Java, but rather the application.
Top Expert 2016

Commented:
:)
Check that you're not running an app designed to be a singleton

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial