Bootstrapper on Windows

Questions, answers, tips and ideas on Servoy Client

Bootstrapper on Windows

Postby swingman » Tue Jul 09, 2019 5:08 pm

HI all,

I'm trying to use the standalone bootstrapper on Windows 10 and Mac OS with Servoy 2019.03. On Mac OS, I found an app called Platypus which allows me to package the bootstrapper and a java JRE 1.8 as an application. This seems to work fine.

What do I use to package the .bat file to run the bootstrapper on Windows with a jre?

BTW. I'm having issues with JavaFX. I have to use the official Oracle JRE as I can't get JavaFX to work on the open versions. This is a stopgap solution until I can move the client over to the NG-Client...
Christian Batchelor
Certified Servoy Developer
Batchelor Associates Ltd, London, UK
http://www.batchelorassociates.co.uk

http://www.postgresql.org - The world's most advanced open source database.
User avatar
swingman
 
Posts: 1269
Joined: Wed Oct 01, 2003 10:20 am
Location: London

Re: Bootstrapper on Windows

Postby kwpsd » Wed Jul 10, 2019 2:00 am

Hi, Christian.

We just went through the process of converting to bootstrap.

For Windows, presuming you already have the jre loaded on the client computer, just save the jnlp file to the desktop (shows with the Java coffee cup icon). To launch, double-click the jnlp file. Bootstrap.jar resides on the server in the following path:

C:\Servoy\application_server\server\webapps\ROOT


folder and does not have to called via a bat file; the jnlp file should also be located here, so that users can download and save it using a URL as follows:

http://<your_server_name>:8080/my_app_name.jnlp


A Windows short cut using your own icon may be created, however, the short cut must use a path to the javaws.exe (Java web start) along with the my_app_name.jnlp file. For example:

Target: "C:\Program Files\Java\jre\bin\javaws.exe" "http://<your_server_name>:8080/my_app_name.jnlp"


Start in: "C:\Program Files\Java\jre\bin"


Change icon: Your icon file must be saved on the client computer. Use the short cut Short Cut -> Properties _-> Change Icon -> Browse button to locate the icon file.


You can also add the path name to where the javaws.exe is located as a Windows environmental variable to simplify the short cut pathname.

One more thing, if double-clicking the jnlp file hangs or aborts, try enabling the following in the Servoy admin page:

servoy.allowSolutionBrowsing


Good luck!
Kim W. Premuda
San Diego, CA USA
User avatar
kwpsd
 
Posts: 627
Joined: Sat Jul 28, 2007 6:59 pm
Location: San Diego, CA USA

Re: Bootstrapper on Windows

Postby swingman » Wed Jul 10, 2019 10:35 am

Thank you for this overview,
Christian Batchelor
Certified Servoy Developer
Batchelor Associates Ltd, London, UK
http://www.batchelorassociates.co.uk

http://www.postgresql.org - The world's most advanced open source database.
User avatar
swingman
 
Posts: 1269
Joined: Wed Oct 01, 2003 10:20 am
Location: London

Re: Bootstrapper on Windows

Postby lwjwillemsen » Wed Jul 10, 2019 11:41 am

In Servoy 8 you can also use the bootstrap.jar without jnlp / webstart.
In this mode you can use OpenJDK (Java) to run the smart client (without (Oracle) webstart).
Lambert Willemsen
Vision Development BV
lwjwillemsen
 
Posts: 625
Joined: Sat Mar 14, 2009 5:39 pm
Location: The Netherlands

Re: Bootstrapper on Windows

Postby swingman » Thu Jul 11, 2019 11:15 pm

Hi Lambert,

I tried this, but maybe I had downloaded the wrong jre version -- application.showURL() failed on Mac OS X because something was missing...
I only managed to get it to work with Oracles' Java 8 jre.

For me this is only a temporary solution, winning some time to convert to NG-client...
Christian Batchelor
Certified Servoy Developer
Batchelor Associates Ltd, London, UK
http://www.batchelorassociates.co.uk

http://www.postgresql.org - The world's most advanced open source database.
User avatar
swingman
 
Posts: 1269
Joined: Wed Oct 01, 2003 10:20 am
Location: London


Return to Servoy Client

Who is online

Users browsing this forum: No registered users and 2 guests