Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Run two instances of the same Java JNLP simultaneously

Posted on 2016-07-25
5
Medium Priority
?
104 Views
Last Modified: 2016-07-25
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.
0
Comment
Question by:Brook_Lane
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 86

Expert Comment

by:CEHJ
ID: 41728054
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
0
 

Author Comment

by:Brook_Lane
ID: 41728105
Well, I suppose that would suggest that perhaps Java is not to blame then.
0
 
LVL 86

Accepted Solution

by:
CEHJ earned 2000 total points
ID: 41728159
Probably not. Demonstrate the falsity or truth by running two of say, these

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

Author Comment

by:Brook_Lane
ID: 41728279
Thank you, that confirms that it isn't Java, but rather the application.
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 41728551
:)
Check that you're not running an app designed to be a singleton
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.
Suggested Courses

610 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question