Netsight java client & high resolution screens = solved

  • 1
  • 2
  • Problem
  • Updated 2 years ago
  • Solved

As native java client is not DPI aware there should be text

<property name="sun.java2d.dpiaware"
value="false"/>
added in the "resources" section of .jnlp files. Otherwise the applications are not readable on hi-dpi displays.
have fun!

Z.

P.S. Thanks to Zdenek Tlusty for finding that
Photo of Pala, Zdenek

Pala, Zdenek, Employee

  • 10,186 Points 10k badge 2x thumb

Posted 2 years ago

  • 1
  • 2
Photo of Ahmed Haroun

Ahmed Haroun

  • 964 Points 500 badge 2x thumb
Hi,

can you please elaborate how to do it? i don't know how to set this resource.

we have the same problem and would be great if we can solve it.

 
Photo of Pala, Zdenek

Pala, Zdenek, Employee

  • 10,186 Points 10k badge 2x thumb
I am not author, but as I understand it you need to download the jnlp file (instead of run it from the browser save it) and edit it with some file editor. Once edited, just execute it.


Good luck


Z.
(Edited)
Photo of Ahmed Haroun

Ahmed Haroun

  • 964 Points 500 badge 2x thumb
This is Great , Thank you for saving my eyes :)

for anyone else having the same problem , edit the JNLP file using Wordpad.

The below section before edit:

------
<resources os="Windows">            <j2se href="http://java.sun.com/products/autodl/j2se";
                   version="1.6+"
                   java-vm-args="-Xmx512M" 
            />
</resources>
-----


after editing it should look like this:

---

<resources os="Windows">            <j2se href="http://java.sun.com/products/autodl/j2se";
                   version="1.6+"
                   java-vm-args="-Xmx512M" 
            />
<property name="sun.java2d.dpiaware" value="false"/>

</resources>
----

Works like a charm.