On first start-up, entering the below URL format in the address bar of FireFox or Chrome no longer works…the browsers just hang (do nothing), but IE still works.
Some browsers will not automatically launch the jnlp file after downloading it. So it sits idle.
You should be able to launch it by double clicking the jnlp file.
You should be able to launch it by double clicking the jnlp file.
@Robert: I did not know this…thank you for the tip!
you can download (and start) any jnlp file fine!
@Harjo: Where do I find the jnlp file for our solution on a customer new install (first start-up…no pre-exisiting jnlp file)?
I found the jnlp file on my development computer in the following folder:
C:\Users\username\AppData\Local\Microsoft\Windows\Temporary Internet Files\Content.IE5\UVCL1INX
Are you saying that I can copy this jnlp file to customer’s computer and launch it? What about installation specific info in the jnlp such as url…do I manually edit the jnlp to fit the customer installation, or is there an easier way?
Sorry for all the questions…I have not launched solutions other than entering their url in a browser or using the ‘Select Solution’ dialog (which we do not want to enable at the customer site). The jnlp method is new to me.
kwpsd:
Where do I find the jnlp file for our solution on a customer new install (first start-up…no pre-exisiting jnlp file)?
The way we do it is to give a new user this path to the JNLP-file by email, together with his login information (initials + first temporary password): http://10.???.???.34:8080/servoy-client/bob.jnlp
bob is the name of our solution, and the IP address is the server where our solution is installed.
The user then copies that jnlp-filepath from the email and puts it into his browser and presses ENTER.
That will then download the jnlp file into the browser’s download folder.
The user then doubleclicks that downloaded file.
That will automatically create a desktop icon, so that on the next day, the user can start the system from that icon.
Whenever there is something wrong with that icon, a deletion of the Java Cache will solve that problem and a new download of the jnlp as described above will again install the icon.
We typically provide our customers with the fully qualified url as well, but that stopped working for them with the latest release of FireFox and Chrome. As Robert mentioned, even though the browser did not automatically launch the jnlp file, the jnlp file was, in fact, downloaded. And, double-clicking the jnlp file did launch the solution. Finding where the jnlp file is saved on the client computer was a bit of a challenge (it’s not obvious). The customer decided to put the jnlp file in a shared network folder and will use that for all new installs instead of using the browser method.
Also, I think the only way to download the jnlp file is by the browser method or the Select Solution dialog.
A couple of tips and tricks I’ve learned with Java Web Start (AKA “the devil”) over the years.
Webstart sucks, so avoid as much as you can. Use Johan’s alternative bootstrap downloader: https://forum.servoy.com/viewtopic.php?f=16&t=21190
It essentially use Java Webstart just to manage itself, and then it managed everything else. Its much faster and reliable. Less headache.
You don’t have to go through the browser for Java Web Start. javaws is available via command line: http://docs.oracle.com/javase/7/docs/te … avaws.html
So, you can automate the installs completely. Below are some scripts you are welcome to use. .bat for Windows, .sh for Mac
These are particularly helpful in the corporate environment with IT manages the machines and can automate the deployment of these scripts across their infrastructure.
Most powerful of all is to combine #1 and #2. Use the automated installer to install using Johan’s alternative bootstrap downloader
Install the client (Windows .bat)
Adjust path to jnlp as necessary. Most of this .bat is just figuring out the users path to Java since somtimes java doesn’t include itself in the Windows path environmental variable.
@echo off
cls
setlocal ENABLEEXTENSIONS
set KEY_NAME="HKLM\SOFTWARE\JavaSoft\Java Runtime Environment"
set VALUE_NAME=CurrentVersion
::
:: get the current version
::
FOR /F "usebackq skip=2 tokens=3" %%A IN (`REG QUERY %KEY_NAME% /v %VALUE_NAME% 2^>nul`) DO (
set ValueValue=%%A
)
if defined ValueValue (
@echo the current Java runtime is %ValueValue%
) else (
@echo %KEY_NAME%\%VALUE_NAME% not found.
goto end
)
set JAVA_CURRENT="HKLM\SOFTWARE\JavaSoft\Java Runtime Environment\%ValueValue%"
set JAVA_HOME=JavaHome
::
:: get the javahome
::
FOR /F "usebackq skip=2 tokens=3*" %%A IN (`REG QUERY %JAVA_CURRENT% /v %JAVA_HOME% 2^>nul`) DO (
set JAVA_PATH=%%A %%B
)
@echo Installing Servoy
"%JAVA_PATH%\bin\javaws" https://yourserver.com/bootstrap.jnlp
:end
Install the client (Mac .sh)
Adjust path to jnlp as necessary.
Thanks, Scott, for the information on Web Start and Johan’s bootstrap downloader. I recall seeing Johan’s post when it first appeared but could not afford the time to experiment with it. I will have another look at it.