Page 1 of 1

jnlp configuration

PostPosted: Tue Feb 27, 2018 5:37 pm
by GabrielWyss
Hello

I make a WAR-export of Servoy without the solution to import this direct on a Tomcat.
In the solution.jnlp file I want to have in the <resource> section the following element:

<property name="sun.java2d.dpiaware" value="false"/>

Is it possible to define that in Developer, so that this line is included in the exported WAR-file?

Thanks for any help.

Re: jnlp configuration

PostPosted: Tue Feb 27, 2018 5:53 pm
by mboegem
Hi Gabriel,

if you start the solution the default way, this is not possible.
Servoy is generating these jnlp files based on the plugins/beans which are deployed.

However, if you use the bootstrap.jar + jnlp to start your solution, you'll be able to modify things the way you like.
The bootstrap.jar will take care of downloading all the jars that you deployed.

As java webstart is just checking the bootstrap.jar and not every individual jar-file, initial download/startup-times are a lot better.

See here: http://forum.servoy.com/viewtopic.php?t=21190&p=113837

Re: jnlp configuration

PostPosted: Thu Mar 01, 2018 5:12 pm
by Harjo
GabrielWyss wrote:Hello

I make a WAR-export of Servoy without the solution to import this direct on a Tomcat.
In the solution.jnlp file I want to have in the <resource> section the following element:

<property name="sun.java2d.dpiaware" value="false"/>

Is it possible to define that in Developer, so that this line is included in the exported WAR-file?

Thanks for any help.

AFAIK that setting: sun.java2d.dpiaware does not work anymore in Java 8
Are you having trouble, sizing smart-client on 4k screens?

Re: jnlp configuration

PostPosted: Wed Mar 07, 2018 8:24 am
by GabrielWyss
Hello Harjo

This option still work in Java 8.
We have a problem with a Surface Tablet with high resolution. The scaling works not correct when the screen settings are 150% or 200%. In this case only the option groups are scaling, the rest is still very small.
With the sun.java2d.dpiaware setting, the solution looks normal.

Re: jnlp configuration

PostPosted: Wed Mar 07, 2018 10:39 am
by Harjo
Oke, and how, did you insert that setting into the jnlp when you did'nt use a WAR?

Re: jnlp configuration

PostPosted: Wed Mar 07, 2018 12:23 pm
by lwjwillemsen
That java setting can also be entered on the admin page "servoy.vmClientArgs" for the smart clients?