Child pages
  • Bootstrapper (alternative download method of the SmartClient)

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

2> as a standalone launcher, by downloading the jar and double click (java -jar boostrap.jar), supported with Servoy 8.3.2+

 


in both ways, you can rename the jar (or jnlp file) to what ever you want like "yoursolution.jar/jnlp" and have multiply copies of it for specific clients (like tenants)

With this new release (8.3.2) the bootstrapper has support for native libs  or native resources. The correct resources should be downloaded and native libs are added to the system path so that they can be used with System.loadLibrary(name)

The standalone bootstrapper is added because Oracle is dropping support for WebStart (not sure when, or if Java 11 will still have it)

Through webstart:

...


To speed up (especially under windows) the smart clients startup, you can use a special bootstrap.jar 

...

<argument>argument:owner:xxxxxxx</argument>  


The bootstrapthreadpoolsize argument is used to configure the maximum number of concurrent connections used to download the application files.

...


bootstrap.jar and bootstrap.jnlp are found in the ROOT of the context
So that is in a default servoy installation: \application_server\server\webapps\ROOT
in a war file it should be in the root of the war file

Then you can access it through:

http://hostname:port/bootstrap.jnlp

(and the above code base should be then http://hostname:port)


Standalone starter: (since 8.3.2, only use able from that Servoy release)

With the stand alone starter the customer doesn't download the bootstrap.jnlp file but the boostrap.jar file itself.

...

codebase=http://localhost:8080/test/
solution=test
bootstrapthreadpoolsize=8
arg0=system.property.MyKey=:MyValue
arg1=argument:owner:1
arg2=owners:2
#jnlp.bootstrapper.home.dir= 


codebase: is the same as the code base property in the jnlp file above. This must be the application servers url to the root of the servoy application.

...

Where system properties can be set like system.property.MyKey=:Value

What is currently not supported in this way is system properties or vm arguments that needed to be set before starting java. (like max memory)

...

If you  change the properties file then the signing will be broken, the signing must then be removed (META-INF\*.RSA and *.SF) or better resigned with your own certificate.


For making a fully standalone installer that also ships java your need to configure the above boostrap.jar correctly 

Then download an openjdk jre installation of Java 8 (Java 12 is also fine but that could result in configuring the vm arguments in later on to enable all features) here: https://adoptopenjdk.net/releases.html (this is the other platforms section of the main page)

Now you can click on a for example 64 bit of Jdk8 where you get the option to download just the JRE (as a zip)

create a directory that has in the root the bootstrap.jar

in that directory extract the jre.zip to a jre dir (if the zip already containts a parent dir, rename that directory to jre, so you have a jre\bin\java file.

create a batch/sh file for windows/mac that starts up the command:

jre\bin\javaw.exe -jar boostrap.jar