Solved

Run two instances of the same Java JNLP simultaneously

Posted on 2016-07-25
5
44 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
  • 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 500 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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
split53 challenge 7 96
netstat -ano | find "8000" and taskkill /f /pid 2984 3 56
jdbc error in jsp application 20 44
Opening PDF on button click and fill new document 2 36
By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…

776 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