@@ -80,10 +80,11 @@ def run_netbeans_app(app_name, jdkhome, args=None, dist=None):
80
80
def igv (args ):
81
81
"""run the Ideal Graph Visualizer
82
82
83
- The current version is based on NetBeans 22 which officially supports JDK 17 through JDK 22 . A
83
+ The current version is based on NetBeans 26 which officially supports JDK 17 through JDK 24 . A
84
84
supported JDK will be chosen from the JDKs known to mx but it will fall back to whatever is
85
85
configured as JAVA_HOME if a supported JDK can't be found. It's not recommended to run igv with
86
- pre-release JDKs.
86
+ pre-release JDKs. Setting TOOLS_JAVA_HOME to point at a supported JDK is the recommended way to
87
+ configure the JDK for IGV.
87
88
88
89
You can directly control which JDK is used to launch IGV using
89
90
@@ -95,18 +96,20 @@ def igv(args):
95
96
help for the NetBeans launcher.
96
97
97
98
"""
98
- v17 = mx .VersionSpec ("17" )
99
- v23 = mx .VersionSpec ("23" )
99
+ min_version = 17
100
+ max_version = 24
101
+ min_version_spec = mx .VersionSpec (str (min_version ))
102
+ next_version_spec = mx .VersionSpec (str (max_version + 1 ))
100
103
def _igvJdkVersionCheck (version ):
101
- return v17 <= version < v23
104
+ return min_version_spec <= version < next_version_spec
102
105
103
106
jdkhome = None
104
107
if not '--jdkhome' in args :
105
108
def _do_not_abort (msg ):
106
109
pass
107
110
108
111
# try to find a fully supported version first
109
- jdk = mx .get_tools_jdk (versionCheck = _igvJdkVersionCheck , versionDescription = 'IGV prefers JDK 17 through JDK 22 ' , abortCallback = _do_not_abort )
112
+ jdk = mx .get_tools_jdk (versionCheck = _igvJdkVersionCheck , versionDescription = f 'IGV prefers JDK { min_version } through JDK { max_version } ' , abortCallback = _do_not_abort )
110
113
if jdk is None :
111
114
# try any JDK
112
115
jdk = mx .get_jdk ()
@@ -116,7 +119,7 @@ def _do_not_abort(msg):
116
119
mx .log (f'Launching IGV with { jdkhome } ' )
117
120
if not _igvJdkVersionCheck (jdk .version ):
118
121
mx .warn (f'{ jdk .home } is not an officially supported JDK for IGV.' )
119
- mx .warn ('If you experience any problems try to use a JDK 17 or JDK 21 instead.' )
122
+ mx .warn (f 'If you experience any problems try to use an LTS release between JDK { min_version } and JDK { max_version } instead.' )
120
123
mx .warn (f'mx help igv provides more details.' )
121
124
122
125
run_netbeans_app ('IdealGraphVisualizer' , jdkhome , args = args , dist = 'IDEALGRAPHVISUALIZER_DIST' )
0 commit comments