From: Ben Soares Date: Wed, 6 Apr 2022 23:35:23 +0000 (+0100) Subject: JAL-3991 Made info displayed only when needed (Java 11+) X-Git-Tag: Release_2_11_2_6~28^2~1 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=4ac785e695238e94653d77e57dbcad5fb1bf89be;p=jalview.git JAL-3991 Made info displayed only when needed (Java 11+) --- diff --git a/src/jalview/gui/Desktop.java b/src/jalview/gui/Desktop.java index 5b0d45a..ccfb1d2 100644 --- a/src/jalview/gui/Desktop.java +++ b/src/jalview/gui/Desktop.java @@ -121,6 +121,7 @@ import jalview.urls.IdOrgSettings; import jalview.util.BrowserLauncher; import jalview.util.ChannelProperties; import jalview.util.ImageMaker.TYPE; +import jalview.util.LaunchUtils; import jalview.util.MessageManager; import jalview.util.Platform; import jalview.util.ShortcutKeyMaskExWrapper; @@ -413,8 +414,11 @@ public class Desktop extends jalview.jbgui.GDesktop */ if (Platform.isLinux()) { - jalview.bin.Console.info( - "Linux platform only! You may have the following warning next: \"WARNING: An illegal reflective access operation has occurred\"\nThis is expected and cannot be avoided, sorry about that."); + if (LaunchUtils.getJavaVersion() >= 11) + { + jalview.bin.Console.info( + "Linux platform only! You may have the following warning next: \"WARNING: An illegal reflective access operation has occurred\"\nThis is expected and cannot be avoided, sorry about that."); + } try { Toolkit xToolkit = Toolkit.getDefaultToolkit();