Solved

Run two instances of the same Java JNLP simultaneously

Posted on 2016-07-25
5
38 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
compre toata in where clue oracle 4 56
JUnit 4 @Before and @BeforeClass differences 3 48
simple java question 3 44
Cipher Configuration on Apache HTTPD 4 53
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 connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

911 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now