Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Run two instances of the same Java JNLP simultaneously

Posted on 2016-07-25
5
Medium Priority
?
108 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 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

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

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

Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
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 about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
Suggested Courses
Course of the Month21 days, 1 hour left to enroll

810 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