Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SoapUI on linux (wayland) - high DPI/4K scaling issue

Tags:

soapui

SoapUI doesn't seem to be DPI-Aware and displays too small on my high DPI screen (tiny text and buttons). Other applications are running fine (screen resolution 3840 x 2160).

enter image description here

Some information:
- Arch linux running wayland
- Installed soapUI via there website

I have tried:
- In the launch script add -Dsun.java2d.ddscale=true to JAVA_OPTS but it doesn't seem to have any effects

like image 809
mark kopenga Avatar asked Jan 21 '20 08:01

mark kopenga


3 Answers

If you install soapui in the directory by default, go to $HOME/SmartBear/SoapUI-5.6.0/bin and edit the file SoapUI-5.6.0 (vim, nano, etc), go to the end of the file and find:

$INSTALL4J_JAVA_PREFIX exec "$app_java_home/bin/java" "-splash:$app_home/.install4j/s_12opuop.png" -Dinstall4j.jvmDir="$app_java_home" -Dexe4j.moduleName="$prg_dir/$progname" "-Dinstall4j.launcherId=64" "-Dinstall4j.swt=false" "$vmov_1" "$vmov_2" "$vmov_3" "$vmov_4" "$vmov_5" $INSTALL4J_ADD_VM_PARAMS -classpath "$local_classpath" com.install4j.runtime.launcher.UnixLauncher launch a0622774 "$prg_dir/error.log" 0 com.eviware.soapui.SoapUI "$@" return_code=$?

Where you have to insert with quotes "-Dsun.java2d.uiScale=2"

$INSTALL4J_JAVA_PREFIX exec "$app_java_home/bin/java" "-splash:$app_home/.install4j/s_12opuop.png" -Dinstall4j.jvmDir="$app_java_home" -Dexe4j.moduleName="$prg_dir/$progname" "-Dinstall4j.launcherId=64" "-Dinstall4j.swt=false" "-Dsun.java2d.uiScale=2" "$vmov_1" "$vmov_2" "$vmov_3" "$vmov_4" "$vmov_5" $INSTALL4J_ADD_VM_PARAMS -classpath "$local_classpath" com.install4j.runtime.launcher.UnixLauncher launch a0622774 "$prg_dir/error.log" 0 com.eviware.soapui.SoapUI "$@" return_code=$?

I tried this in a Majaro 20.2.1 with XFCE and works fine.

like image 189
Brisaol Avatar answered Nov 03 '22 09:11

Brisaol


Adding -Dsun.java2d.uiScale=2 to JAVA_OPTS (in soapui.sh) worked for me. It seems that only integer values are working (1.5 does nothing, for instance).

like image 23
Siggen Avatar answered Nov 03 '22 11:11

Siggen


For me I got it working in SoapUI-5.6.0 by adding -Dsun.java2d.uiScale=2 as a new line to the file ~/SmartBear/SoapUI-5.6.0/bin/SoapUI-5.6.0.vmoptions.

I tried the previous answer about editing soapui.sh but I didn't have luck with that myself.

like image 24
ajhbh Avatar answered Nov 03 '22 11:11

ajhbh