1 <!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
5 <!-- Generated by javadoc (build 1.4.2_16) on Sat Mar 15 20:43:47 PDT 2008 -->
6 <META http-equiv=
"Content-Type" content=
"text/html; charset=ISO-8859-1">
8 SystemUtils (Commons Lang
2.4 API)
11 <META NAME=
"keywords" CONTENT=
"org.apache.commons.lang.SystemUtils class">
13 <LINK REL =
"stylesheet" TYPE=
"text/css" HREF=
"../../../../stylesheet.css" TITLE=
"Style">
15 <SCRIPT type=
"text/javascript">
16 function windowTitle()
18 parent.document.
title=
"SystemUtils (Commons Lang 2.4 API)";
24 <BODY BGCOLOR=
"white" onload=
"windowTitle();">
27 <!-- ========= START OF TOP NAVBAR ======= -->
28 <A NAME=
"navbar_top"><!-- --></A>
29 <A HREF=
"#skip-navbar_top" title=
"Skip navigation links"></A>
30 <TABLE BORDER=
"0" WIDTH=
"100%" CELLPADDING=
"1" CELLSPACING=
"0" SUMMARY=
"">
32 <TD COLSPAN=
3 BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1">
33 <A NAME=
"navbar_top_firstrow"><!-- --></A>
34 <TABLE BORDER=
"0" CELLPADDING=
"0" CELLSPACING=
"3" SUMMARY=
"">
35 <TR ALIGN=
"center" VALIGN=
"top">
36 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"../../../../overview-summary.html"><FONT CLASS=
"NavBarFont1"><B>Overview
</B></FONT></A> </TD>
37 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"package-summary.html"><FONT CLASS=
"NavBarFont1"><B>Package
</B></FONT></A> </TD>
38 <TD BGCOLOR=
"#FFFFFF" CLASS=
"NavBarCell1Rev"> <FONT CLASS=
"NavBarFont1Rev"><B>Class
</B></FONT> </TD>
39 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"class-use/SystemUtils.html"><FONT CLASS=
"NavBarFont1"><B>Use
</B></FONT></A> </TD>
40 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"package-tree.html"><FONT CLASS=
"NavBarFont1"><B>Tree
</B></FONT></A> </TD>
41 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"../../../../deprecated-list.html"><FONT CLASS=
"NavBarFont1"><B>Deprecated
</B></FONT></A> </TD>
42 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"../../../../index-all.html"><FONT CLASS=
"NavBarFont1"><B>Index
</B></FONT></A> </TD>
43 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"../../../../help-doc.html"><FONT CLASS=
"NavBarFont1"><B>Help
</B></FONT></A> </TD>
47 <TD ALIGN=
"right" VALIGN=
"top" ROWSPAN=
3><EM>
53 <TD BGCOLOR=
"white" CLASS=
"NavBarCell2"><FONT SIZE=
"-2">
54 <A HREF=
"../../../../org/apache/commons/lang/StringUtils.html" title=
"class in org.apache.commons.lang"><B>PREV CLASS
</B></A>
55 <A HREF=
"../../../../org/apache/commons/lang/Validate.html" title=
"class in org.apache.commons.lang"><B>NEXT CLASS
</B></A></FONT></TD>
56 <TD BGCOLOR=
"white" CLASS=
"NavBarCell2"><FONT SIZE=
"-2">
57 <A HREF=
"../../../../index.html" target=
"_top"><B>FRAMES
</B></A>
58 <A HREF=
"SystemUtils.html" target=
"_top"><B>NO FRAMES
</B></A>
59 <SCRIPT type=
"text/javascript">
62 document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
67 <A HREF=
"../../../../allclasses-noframe.html"><B>All Classes
</B></A>
73 <TD VALIGN=
"top" CLASS=
"NavBarCell3"><FONT SIZE=
"-2">
74 SUMMARY:
NESTED
|
<A HREF=
"#field_summary">FIELD
</A> |
<A HREF=
"#constructor_summary">CONSTR
</A> |
<A HREF=
"#method_summary">METHOD
</A></FONT></TD>
75 <TD VALIGN=
"top" CLASS=
"NavBarCell3"><FONT SIZE=
"-2">
76 DETAIL:
<A HREF=
"#field_detail">FIELD
</A> |
<A HREF=
"#constructor_detail">CONSTR
</A> |
<A HREF=
"#method_detail">METHOD
</A></FONT></TD>
79 <A NAME=
"skip-navbar_top"></A>
80 <!-- ========= END OF TOP NAVBAR ========= -->
83 <!-- ======== START OF CLASS DATA ======== -->
86 org.apache.commons.lang
</FONT>
88 Class SystemUtils
</H2>
91 <IMG SRC=
"../../../../resources/inherit.gif" ALT=
"extended by"><B>org.apache.commons.lang.SystemUtils
</B>
95 <DT>public class
<B>SystemUtils
</B><DT>extends java.lang.Object
</DL>
98 <p>Helpers for
<code>java.lang.System
</code>.
</p>
100 <p>If a system property cannot be read due to security restrictions,
101 the corresponding field in this class will be set to
<code>null
</code>
102 and a message will be written to
<code>System.err
</code>.
</p>
107 <DT><B>Since:
</B></DT>
109 <DT><B>Version:
</B></DT>
110 <DD>$Id: SystemUtils.java
595798 2007-
11-
16 20:
01:
43Z bayard $
</DD>
111 <DT><B>Author:
</B></DT>
112 <DD>Based on code from Avalon Excalibur, Based on code from Lucene, Stephen Colebourne,
<a href=
"mailto:sdowney@panix.com">Steve Downey
</a>, Gary Gregory, Michael Becke, Tetsuya Kaneuchi, Rafal Krupinski, Jason Gritman
</DD>
117 <!-- ======== NESTED CLASS SUMMARY ======== -->
120 <!-- =========== FIELD SUMMARY =========== -->
122 <A NAME=
"field_summary"><!-- --></A>
123 <TABLE BORDER=
"1" WIDTH=
"100%" CELLPADDING=
"3" CELLSPACING=
"0" SUMMARY=
"">
124 <TR BGCOLOR=
"#CCCCFF" CLASS=
"TableHeadingColor">
125 <TD COLSPAN=
2><FONT SIZE=
"+2">
126 <B>Field Summary
</B></FONT></TD>
128 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
129 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
130 <CODE>static
java.lang.String
</CODE></FONT></TD>
131 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/lang/SystemUtils.html#AWT_TOOLKIT">AWT_TOOLKIT
</A></B></CODE>
134 The
<code>awt.toolkit
</code> System Property.
</TD>
136 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
137 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
138 <CODE>static
java.lang.String
</CODE></FONT></TD>
139 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/lang/SystemUtils.html#FILE_ENCODING">FILE_ENCODING
</A></B></CODE>
142 The
<code>file.encoding
</code> System Property.
</TD>
144 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
145 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
146 <CODE>static
java.lang.String
</CODE></FONT></TD>
147 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/lang/SystemUtils.html#FILE_SEPARATOR">FILE_SEPARATOR
</A></B></CODE>
150 The
<code>file.separator
</code> System Property.
</TD>
152 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
153 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
154 <CODE>static
boolean
</CODE></FONT></TD>
155 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/lang/SystemUtils.html#IS_JAVA_1_1">IS_JAVA_1_1
</A></B></CODE>
158 Is
<code>true
</code> if this is Java version
1.1 (also
1.1.x versions).
</TD>
160 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
161 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
162 <CODE>static
boolean
</CODE></FONT></TD>
163 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/lang/SystemUtils.html#IS_JAVA_1_2">IS_JAVA_1_2
</A></B></CODE>
166 Is
<code>true
</code> if this is Java version
1.2 (also
1.2.x versions).
</TD>
168 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
169 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
170 <CODE>static
boolean
</CODE></FONT></TD>
171 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/lang/SystemUtils.html#IS_JAVA_1_3">IS_JAVA_1_3
</A></B></CODE>
174 Is
<code>true
</code> if this is Java version
1.3 (also
1.3.x versions).
</TD>
176 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
177 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
178 <CODE>static
boolean
</CODE></FONT></TD>
179 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/lang/SystemUtils.html#IS_JAVA_1_4">IS_JAVA_1_4
</A></B></CODE>
182 Is
<code>true
</code> if this is Java version
1.4 (also
1.4.x versions).
</TD>
184 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
185 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
186 <CODE>static
boolean
</CODE></FONT></TD>
187 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/lang/SystemUtils.html#IS_JAVA_1_5">IS_JAVA_1_5
</A></B></CODE>
190 Is
<code>true
</code> if this is Java version
1.5 (also
1.5.x versions).
</TD>
192 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
193 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
194 <CODE>static
boolean
</CODE></FONT></TD>
195 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/lang/SystemUtils.html#IS_JAVA_1_6">IS_JAVA_1_6
</A></B></CODE>
198 Is
<code>true
</code> if this is Java version
1.6 (also
1.6.x versions).
</TD>
200 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
201 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
202 <CODE>static
boolean
</CODE></FONT></TD>
203 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/lang/SystemUtils.html#IS_OS_AIX">IS_OS_AIX
</A></B></CODE>
206 Is
<code>true
</code> if this is AIX.
</TD>
208 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
209 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
210 <CODE>static
boolean
</CODE></FONT></TD>
211 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/lang/SystemUtils.html#IS_OS_HP_UX">IS_OS_HP_UX
</A></B></CODE>
214 Is
<code>true
</code> if this is HP-UX.
</TD>
216 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
217 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
218 <CODE>static
boolean
</CODE></FONT></TD>
219 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/lang/SystemUtils.html#IS_OS_IRIX">IS_OS_IRIX
</A></B></CODE>
222 Is
<code>true
</code> if this is Irix.
</TD>
224 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
225 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
226 <CODE>static
boolean
</CODE></FONT></TD>
227 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/lang/SystemUtils.html#IS_OS_LINUX">IS_OS_LINUX
</A></B></CODE>
230 Is
<code>true
</code> if this is Linux.
</TD>
232 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
233 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
234 <CODE>static
boolean
</CODE></FONT></TD>
235 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/lang/SystemUtils.html#IS_OS_MAC">IS_OS_MAC
</A></B></CODE>
238 Is
<code>true
</code> if this is Mac.
</TD>
240 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
241 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
242 <CODE>static
boolean
</CODE></FONT></TD>
243 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/lang/SystemUtils.html#IS_OS_MAC_OSX">IS_OS_MAC_OSX
</A></B></CODE>
246 Is
<code>true
</code> if this is Mac.
</TD>
248 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
249 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
250 <CODE>static
boolean
</CODE></FONT></TD>
251 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/lang/SystemUtils.html#IS_OS_OS2">IS_OS_OS2
</A></B></CODE>
254 Is
<code>true
</code> if this is OS/
2.
</TD>
256 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
257 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
258 <CODE>static
boolean
</CODE></FONT></TD>
259 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/lang/SystemUtils.html#IS_OS_SOLARIS">IS_OS_SOLARIS
</A></B></CODE>
262 Is
<code>true
</code> if this is Solaris.
</TD>
264 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
265 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
266 <CODE>static
boolean
</CODE></FONT></TD>
267 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/lang/SystemUtils.html#IS_OS_SUN_OS">IS_OS_SUN_OS
</A></B></CODE>
270 Is
<code>true
</code> if this is SunOS.
</TD>
272 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
273 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
274 <CODE>static
boolean
</CODE></FONT></TD>
275 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/lang/SystemUtils.html#IS_OS_UNIX">IS_OS_UNIX
</A></B></CODE>
278 Is
<code>true
</code> if this is a POSIX compilant system,
279 as in any of AIX, HP-UX, Irix, Linux, MacOSX, Solaris or SUN OS.
</TD>
281 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
282 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
283 <CODE>static
boolean
</CODE></FONT></TD>
284 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/lang/SystemUtils.html#IS_OS_WINDOWS">IS_OS_WINDOWS
</A></B></CODE>
287 Is
<code>true
</code> if this is Windows.
</TD>
289 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
290 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
291 <CODE>static
boolean
</CODE></FONT></TD>
292 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/lang/SystemUtils.html#IS_OS_WINDOWS_2000">IS_OS_WINDOWS_2000
</A></B></CODE>
295 Is
<code>true
</code> if this is Windows
2000.
</TD>
297 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
298 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
299 <CODE>static
boolean
</CODE></FONT></TD>
300 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/lang/SystemUtils.html#IS_OS_WINDOWS_95">IS_OS_WINDOWS_95
</A></B></CODE>
303 Is
<code>true
</code> if this is Windows
95.
</TD>
305 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
306 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
307 <CODE>static
boolean
</CODE></FONT></TD>
308 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/lang/SystemUtils.html#IS_OS_WINDOWS_98">IS_OS_WINDOWS_98
</A></B></CODE>
311 Is
<code>true
</code> if this is Windows
98.
</TD>
313 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
314 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
315 <CODE>static
boolean
</CODE></FONT></TD>
316 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/lang/SystemUtils.html#IS_OS_WINDOWS_ME">IS_OS_WINDOWS_ME
</A></B></CODE>
319 Is
<code>true
</code> if this is Windows ME.
</TD>
321 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
322 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
323 <CODE>static
boolean
</CODE></FONT></TD>
324 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/lang/SystemUtils.html#IS_OS_WINDOWS_NT">IS_OS_WINDOWS_NT
</A></B></CODE>
327 Is
<code>true
</code> if this is Windows NT.
</TD>
329 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
330 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
331 <CODE>static
boolean
</CODE></FONT></TD>
332 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/lang/SystemUtils.html#IS_OS_WINDOWS_VISTA">IS_OS_WINDOWS_VISTA
</A></B></CODE>
335 Is
<code>true
</code> if this is Windows Vista.
</TD>
337 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
338 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
339 <CODE>static
boolean
</CODE></FONT></TD>
340 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/lang/SystemUtils.html#IS_OS_WINDOWS_XP">IS_OS_WINDOWS_XP
</A></B></CODE>
343 Is
<code>true
</code> if this is Windows XP.
</TD>
345 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
346 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
347 <CODE>static
java.lang.String
</CODE></FONT></TD>
348 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/lang/SystemUtils.html#JAVA_AWT_FONTS">JAVA_AWT_FONTS
</A></B></CODE>
351 The
<code>java.awt.fonts
</code> System Property.
</TD>
353 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
354 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
355 <CODE>static
java.lang.String
</CODE></FONT></TD>
356 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/lang/SystemUtils.html#JAVA_AWT_GRAPHICSENV">JAVA_AWT_GRAPHICSENV
</A></B></CODE>
359 The
<code>java.awt.graphicsenv
</code> System Property.
</TD>
361 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
362 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
363 <CODE>static
java.lang.String
</CODE></FONT></TD>
364 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/lang/SystemUtils.html#JAVA_AWT_HEADLESS">JAVA_AWT_HEADLESS
</A></B></CODE>
367
368 The
<code>java.awt.headless
</code> System Property.
</TD>
370 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
371 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
372 <CODE>static
java.lang.String
</CODE></FONT></TD>
373 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/lang/SystemUtils.html#JAVA_AWT_PRINTERJOB">JAVA_AWT_PRINTERJOB
</A></B></CODE>
376 The
<code>java.awt.printerjob
</code> System Property.
</TD>
378 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
379 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
380 <CODE>static
java.lang.String
</CODE></FONT></TD>
381 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/lang/SystemUtils.html#JAVA_CLASS_PATH">JAVA_CLASS_PATH
</A></B></CODE>
384 The
<code>java.class.path
</code> System Property.
</TD>
386 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
387 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
388 <CODE>static
java.lang.String
</CODE></FONT></TD>
389 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/lang/SystemUtils.html#JAVA_CLASS_VERSION">JAVA_CLASS_VERSION
</A></B></CODE>
392 The
<code>java.class.version
</code> System Property.
</TD>
394 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
395 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
396 <CODE>static
java.lang.String
</CODE></FONT></TD>
397 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/lang/SystemUtils.html#JAVA_COMPILER">JAVA_COMPILER
</A></B></CODE>
400 The
<code>java.compiler
</code> System Property.
</TD>
402 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
403 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
404 <CODE>static
java.lang.String
</CODE></FONT></TD>
405 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/lang/SystemUtils.html#JAVA_ENDORSED_DIRS">JAVA_ENDORSED_DIRS
</A></B></CODE>
408 The
<code>java.endorsed.dirs
</code> System Property.
</TD>
410 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
411 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
412 <CODE>static
java.lang.String
</CODE></FONT></TD>
413 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/lang/SystemUtils.html#JAVA_EXT_DIRS">JAVA_EXT_DIRS
</A></B></CODE>
416 The
<code>java.ext.dirs
</code> System Property.
</TD>
418 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
419 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
420 <CODE>static
java.lang.String
</CODE></FONT></TD>
421 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/lang/SystemUtils.html#JAVA_HOME">JAVA_HOME
</A></B></CODE>
424 The
<code>java.home
</code> System Property.
</TD>
426 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
427 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
428 <CODE>static
java.lang.String
</CODE></FONT></TD>
429 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/lang/SystemUtils.html#JAVA_IO_TMPDIR">JAVA_IO_TMPDIR
</A></B></CODE>
432 The
<code>java.io.tmpdir
</code> System Property.
</TD>
434 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
435 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
436 <CODE>static
java.lang.String
</CODE></FONT></TD>
437 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/lang/SystemUtils.html#JAVA_LIBRARY_PATH">JAVA_LIBRARY_PATH
</A></B></CODE>
440 The
<code>java.library.path
</code> System Property.
</TD>
442 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
443 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
444 <CODE>static
java.lang.String
</CODE></FONT></TD>
445 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/lang/SystemUtils.html#JAVA_RUNTIME_NAME">JAVA_RUNTIME_NAME
</A></B></CODE>
448 The
<code>java.runtime.name
</code> System Property.
</TD>
450 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
451 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
452 <CODE>static
java.lang.String
</CODE></FONT></TD>
453 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/lang/SystemUtils.html#JAVA_RUNTIME_VERSION">JAVA_RUNTIME_VERSION
</A></B></CODE>
456 The
<code>java.runtime.version
</code> System Property.
</TD>
458 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
459 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
460 <CODE>static
java.lang.String
</CODE></FONT></TD>
461 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/lang/SystemUtils.html#JAVA_SPECIFICATION_NAME">JAVA_SPECIFICATION_NAME
</A></B></CODE>
464 The
<code>java.specification.name
</code> System Property.
</TD>
466 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
467 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
468 <CODE>static
java.lang.String
</CODE></FONT></TD>
469 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/lang/SystemUtils.html#JAVA_SPECIFICATION_VENDOR">JAVA_SPECIFICATION_VENDOR
</A></B></CODE>
472 The
<code>java.specification.vendor
</code> System Property.
</TD>
474 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
475 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
476 <CODE>static
java.lang.String
</CODE></FONT></TD>
477 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/lang/SystemUtils.html#JAVA_SPECIFICATION_VERSION">JAVA_SPECIFICATION_VERSION
</A></B></CODE>
480 The
<code>java.specification.version
</code> System Property.
</TD>
482 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
483 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
484 <CODE>static
java.lang.String
</CODE></FONT></TD>
485 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/lang/SystemUtils.html#JAVA_UTIL_PREFS_PREFERENCES_FACTORY">JAVA_UTIL_PREFS_PREFERENCES_FACTORY
</A></B></CODE>
488 The
<code>java.util.prefs.PreferencesFactory
</code> System Property.
</TD>
490 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
491 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
492 <CODE>static
java.lang.String
</CODE></FONT></TD>
493 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/lang/SystemUtils.html#JAVA_VENDOR">JAVA_VENDOR
</A></B></CODE>
496 The
<code>java.vendor
</code> System Property.
</TD>
498 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
499 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
500 <CODE>static
java.lang.String
</CODE></FONT></TD>
501 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/lang/SystemUtils.html#JAVA_VENDOR_URL">JAVA_VENDOR_URL
</A></B></CODE>
504 The
<code>java.vendor.url
</code> System Property.
</TD>
506 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
507 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
508 <CODE>static
java.lang.String
</CODE></FONT></TD>
509 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/lang/SystemUtils.html#JAVA_VERSION">JAVA_VERSION
</A></B></CODE>
512 The
<code>java.version
</code> System Property.
</TD>
514 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
515 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
516 <CODE>static
float
</CODE></FONT></TD>
517 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/lang/SystemUtils.html#JAVA_VERSION_FLOAT">JAVA_VERSION_FLOAT
</A></B></CODE>
520 Gets the Java version as a
<code>float
</code>.
</TD>
522 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
523 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
524 <CODE>static
int
</CODE></FONT></TD>
525 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/lang/SystemUtils.html#JAVA_VERSION_INT">JAVA_VERSION_INT
</A></B></CODE>
528 Gets the Java version as an
<code>int
</code>.
</TD>
530 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
531 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
532 <CODE>static
java.lang.String
</CODE></FONT></TD>
533 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/lang/SystemUtils.html#JAVA_VERSION_TRIMMED">JAVA_VERSION_TRIMMED
</A></B></CODE>
536 Gets the Java version as a
<code>String
</code> trimming leading letters.
</TD>
538 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
539 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
540 <CODE>static
java.lang.String
</CODE></FONT></TD>
541 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/lang/SystemUtils.html#JAVA_VM_INFO">JAVA_VM_INFO
</A></B></CODE>
544 The
<code>java.vm.info
</code> System Property.
</TD>
546 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
547 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
548 <CODE>static
java.lang.String
</CODE></FONT></TD>
549 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/lang/SystemUtils.html#JAVA_VM_NAME">JAVA_VM_NAME
</A></B></CODE>
552 The
<code>java.vm.name
</code> System Property.
</TD>
554 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
555 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
556 <CODE>static
java.lang.String
</CODE></FONT></TD>
557 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/lang/SystemUtils.html#JAVA_VM_SPECIFICATION_NAME">JAVA_VM_SPECIFICATION_NAME
</A></B></CODE>
560 The
<code>java.vm.specification.name
</code> System Property.
</TD>
562 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
563 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
564 <CODE>static
java.lang.String
</CODE></FONT></TD>
565 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/lang/SystemUtils.html#JAVA_VM_SPECIFICATION_VENDOR">JAVA_VM_SPECIFICATION_VENDOR
</A></B></CODE>
568 The
<code>java.vm.specification.vendor
</code> System Property.
</TD>
570 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
571 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
572 <CODE>static
java.lang.String
</CODE></FONT></TD>
573 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/lang/SystemUtils.html#JAVA_VM_SPECIFICATION_VERSION">JAVA_VM_SPECIFICATION_VERSION
</A></B></CODE>
576 The
<code>java.vm.specification.version
</code> System Property.
</TD>
578 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
579 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
580 <CODE>static
java.lang.String
</CODE></FONT></TD>
581 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/lang/SystemUtils.html#JAVA_VM_VENDOR">JAVA_VM_VENDOR
</A></B></CODE>
584 The
<code>java.vm.vendor
</code> System Property.
</TD>
586 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
587 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
588 <CODE>static
java.lang.String
</CODE></FONT></TD>
589 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/lang/SystemUtils.html#JAVA_VM_VERSION">JAVA_VM_VERSION
</A></B></CODE>
592 The
<code>java.vm.version
</code> System Property.
</TD>
594 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
595 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
596 <CODE>static
java.lang.String
</CODE></FONT></TD>
597 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/lang/SystemUtils.html#LINE_SEPARATOR">LINE_SEPARATOR
</A></B></CODE>
600 The
<code>line.separator
</code> System Property.
</TD>
602 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
603 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
604 <CODE>static
java.lang.String
</CODE></FONT></TD>
605 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/lang/SystemUtils.html#OS_ARCH">OS_ARCH
</A></B></CODE>
608 The
<code>os.arch
</code> System Property.
</TD>
610 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
611 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
612 <CODE>static
java.lang.String
</CODE></FONT></TD>
613 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/lang/SystemUtils.html#OS_NAME">OS_NAME
</A></B></CODE>
616 The
<code>os.name
</code> System Property.
</TD>
618 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
619 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
620 <CODE>static
java.lang.String
</CODE></FONT></TD>
621 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/lang/SystemUtils.html#OS_VERSION">OS_VERSION
</A></B></CODE>
624 The
<code>os.version
</code> System Property.
</TD>
626 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
627 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
628 <CODE>static
java.lang.String
</CODE></FONT></TD>
629 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/lang/SystemUtils.html#PATH_SEPARATOR">PATH_SEPARATOR
</A></B></CODE>
632 The
<code>path.separator
</code> System Property.
</TD>
634 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
635 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
636 <CODE>static
java.lang.String
</CODE></FONT></TD>
637 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/lang/SystemUtils.html#USER_COUNTRY">USER_COUNTRY
</A></B></CODE>
640 The
<code>user.country
</code> or
<code>user.region
</code> System Property.
</TD>
642 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
643 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
644 <CODE>static
java.lang.String
</CODE></FONT></TD>
645 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/lang/SystemUtils.html#USER_DIR">USER_DIR
</A></B></CODE>
648 The
<code>user.dir
</code> System Property.
</TD>
650 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
651 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
652 <CODE>static
java.lang.String
</CODE></FONT></TD>
653 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/lang/SystemUtils.html#USER_HOME">USER_HOME
</A></B></CODE>
656 The
<code>user.home
</code> System Property.
</TD>
658 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
659 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
660 <CODE>static
java.lang.String
</CODE></FONT></TD>
661 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/lang/SystemUtils.html#USER_LANGUAGE">USER_LANGUAGE
</A></B></CODE>
664 The
<code>user.language
</code> System Property.
</TD>
666 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
667 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
668 <CODE>static
java.lang.String
</CODE></FONT></TD>
669 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/lang/SystemUtils.html#USER_NAME">USER_NAME
</A></B></CODE>
672 The
<code>user.name
</code> System Property.
</TD>
674 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
675 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
676 <CODE>static
java.lang.String
</CODE></FONT></TD>
677 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/lang/SystemUtils.html#USER_TIMEZONE">USER_TIMEZONE
</A></B></CODE>
680 The
<code>user.timezone
</code> System Property.
</TD>
684 <!-- ======== CONSTRUCTOR SUMMARY ======== -->
686 <A NAME=
"constructor_summary"><!-- --></A>
687 <TABLE BORDER=
"1" WIDTH=
"100%" CELLPADDING=
"3" CELLSPACING=
"0" SUMMARY=
"">
688 <TR BGCOLOR=
"#CCCCFF" CLASS=
"TableHeadingColor">
689 <TD COLSPAN=
2><FONT SIZE=
"+2">
690 <B>Constructor Summary
</B></FONT></TD>
692 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
693 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/lang/SystemUtils.html#SystemUtils()">SystemUtils
</A></B>()
</CODE>
696 SystemUtils instances should NOT be constructed in standard
701 <!-- ========== METHOD SUMMARY =========== -->
703 <A NAME=
"method_summary"><!-- --></A>
704 <TABLE BORDER=
"1" WIDTH=
"100%" CELLPADDING=
"3" CELLSPACING=
"0" SUMMARY=
"">
705 <TR BGCOLOR=
"#CCCCFF" CLASS=
"TableHeadingColor">
706 <TD COLSPAN=
2><FONT SIZE=
"+2">
707 <B>Method Summary
</B></FONT></TD>
709 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
710 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
711 <CODE>static
java.io.File
</CODE></FONT></TD>
712 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/lang/SystemUtils.html#getJavaHome()">getJavaHome
</A></B>()
</CODE>
715 Gets the Java home directory as a
<code>File
</code>.
</TD>
717 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
718 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
719 <CODE>static
java.io.File
</CODE></FONT></TD>
720 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/lang/SystemUtils.html#getJavaIoTmpDir()">getJavaIoTmpDir
</A></B>()
</CODE>
723 Gets the Java IO temporary directory as a
<code>File
</code>.
</TD>
725 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
726 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
727 <CODE>static
float
</CODE></FONT></TD>
728 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/lang/SystemUtils.html#getJavaVersion()">getJavaVersion
</A></B>()
</CODE>
731 <B>Deprecated.
</B> <I>Use
<A HREF=
"../../../../org/apache/commons/lang/SystemUtils.html#JAVA_VERSION_FLOAT"><CODE>JAVA_VERSION_FLOAT
</CODE></A> instead.
732 Method will be removed in Commons Lang
3.0.
</I></TD>
734 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
735 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
736 <CODE>static
java.io.File
</CODE></FONT></TD>
737 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/lang/SystemUtils.html#getUserDir()">getUserDir
</A></B>()
</CODE>
740 Gets the user directory as a
<code>File
</code>.
</TD>
742 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
743 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
744 <CODE>static
java.io.File
</CODE></FONT></TD>
745 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/lang/SystemUtils.html#getUserHome()">getUserHome
</A></B>()
</CODE>
748 Gets the user home directory as a
<code>File
</code>.
</TD>
750 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
751 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
752 <CODE>static
boolean
</CODE></FONT></TD>
753 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/lang/SystemUtils.html#isJavaAwtHeadless()">isJavaAwtHeadless
</A></B>()
</CODE>
756 Returns whether the
<A HREF=
"../../../../org/apache/commons/lang/SystemUtils.html#JAVA_AWT_HEADLESS"><CODE>JAVA_AWT_HEADLESS
</CODE></A> value is
<code>true
</code>.
</TD>
758 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
759 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
760 <CODE>static
boolean
</CODE></FONT></TD>
761 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/lang/SystemUtils.html#isJavaVersionAtLeast(float)">isJavaVersionAtLeast
</A></B>(float
requiredVersion)
</CODE>
764 Is the Java version at least the requested version.
</TD>
766 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
767 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
768 <CODE>static
boolean
</CODE></FONT></TD>
769 <TD><CODE><B><A HREF=
"../../../../org/apache/commons/lang/SystemUtils.html#isJavaVersionAtLeast(int)">isJavaVersionAtLeast
</A></B>(int
requiredVersion)
</CODE>
772 Is the Java version at least the requested version.
</TD>
775 <A NAME=
"methods_inherited_from_class_java.lang.Object"><!-- --></A>
776 <TABLE BORDER=
"1" WIDTH=
"100%" CELLPADDING=
"3" CELLSPACING=
"0" SUMMARY=
"">
777 <TR BGCOLOR=
"#EEEEFF" CLASS=
"TableSubHeadingColor">
778 <TD><B>Methods inherited from class java.lang.Object
</B></TD>
780 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
781 <TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
</CODE></TD>
787 <!-- ============ FIELD DETAIL =========== -->
789 <A NAME=
"field_detail"><!-- --></A>
790 <TABLE BORDER=
"1" WIDTH=
"100%" CELLPADDING=
"3" CELLSPACING=
"0" SUMMARY=
"">
791 <TR BGCOLOR=
"#CCCCFF" CLASS=
"TableHeadingColor">
792 <TD COLSPAN=
1><FONT SIZE=
"+2">
793 <B>Field Detail
</B></FONT></TD>
797 <A NAME=
"AWT_TOOLKIT"><!-- --></A><H3>
800 public static final java.lang.String
<B>AWT_TOOLKIT
</B></PRE>
802 <DD><p>The
<code>awt.toolkit
</code> System Property.
</p>
803 <p>Holds a class name, on Windows XP this is
<code>sun.awt.windows.WToolkit
</code>.
</p>
804 <p><b>On platforms without a GUI, this value is
<code>null
</code>.
</b></p>
806 <p>Defaults to
<code>null
</code> if the runtime does not have
807 security access to read this property or the property does not exist.
</p>
810 This value is initialized when the class is loaded. If
<CODE>System.setProperty(String,String)
</CODE>
811 or
<CODE>System.setProperties(java.util.Properties)
</CODE> is called after this class is loaded, the value
812 will be out of sync with that System property.
816 <DT><B>Since:
</B></DT>
822 <A NAME=
"FILE_ENCODING"><!-- --></A><H3>
825 public static final java.lang.String
<B>FILE_ENCODING
</B></PRE>
827 <DD><p>The
<code>file.encoding
</code> System Property.
</p>
828 <p>File encoding, such as
<code>Cp1252
</code>.
</p>
830 <p>Defaults to
<code>null
</code> if the runtime does not have
831 security access to read this property or the property does not exist.
</p>
834 This value is initialized when the class is loaded. If
<CODE>System.setProperty(String,String)
</CODE>
835 or
<CODE>System.setProperties(java.util.Properties)
</CODE> is called after this class is loaded, the value
836 will be out of sync with that System property.
840 <DT><B>Since:
</B></DT>
841 <DD>2.0, Java
1.2</DD>
846 <A NAME=
"FILE_SEPARATOR"><!-- --></A><H3>
849 public static final java.lang.String
<B>FILE_SEPARATOR
</B></PRE>
851 <DD><p>The
<code>file.separator
</code> System Property.
852 File separator (
<code>"/
"</code> on UNIX).
</p>
854 <p>Defaults to
<code>null
</code> if the runtime does not have
855 security access to read this property or the property does not exist.
</p>
858 This value is initialized when the class is loaded. If
<CODE>System.setProperty(String,String)
</CODE>
859 or
<CODE>System.setProperties(java.util.Properties)
</CODE> is called after this class is loaded, the value
860 will be out of sync with that System property.
864 <DT><B>Since:
</B></DT>
870 <A NAME=
"JAVA_AWT_FONTS"><!-- --></A><H3>
873 public static final java.lang.String
<B>JAVA_AWT_FONTS
</B></PRE>
875 <DD><p>The
<code>java.awt.fonts
</code> System Property.
</p>
877 <p>Defaults to
<code>null
</code> if the runtime does not have
878 security access to read this property or the property does not exist.
</p>
881 This value is initialized when the class is loaded. If
<CODE>System.setProperty(String,String)
</CODE>
882 or
<CODE>System.setProperties(java.util.Properties)
</CODE> is called after this class is loaded, the value
883 will be out of sync with that System property.
887 <DT><B>Since:
</B></DT>
893 <A NAME=
"JAVA_AWT_GRAPHICSENV"><!-- --></A><H3>
894 JAVA_AWT_GRAPHICSENV
</H3>
896 public static final java.lang.String
<B>JAVA_AWT_GRAPHICSENV
</B></PRE>
898 <DD><p>The
<code>java.awt.graphicsenv
</code> System Property.
</p>
900 <p>Defaults to
<code>null
</code> if the runtime does not have
901 security access to read this property or the property does not exist.
</p>
904 This value is initialized when the class is loaded. If
<CODE>System.setProperty(String,String)
</CODE>
905 or
<CODE>System.setProperties(java.util.Properties)
</CODE> is called after this class is loaded, the value
906 will be out of sync with that System property.
910 <DT><B>Since:
</B></DT>
916 <A NAME=
"JAVA_AWT_HEADLESS"><!-- --></A><H3>
917 JAVA_AWT_HEADLESS
</H3>
919 public static final java.lang.String
<B>JAVA_AWT_HEADLESS
</B></PRE>
922 The
<code>java.awt.headless
</code> System Property.
923 The value of this property is the String
<code>"true"</code> or
<code>"false"</code>.
926 <p>Defaults to
<code>null
</code> if the runtime does not have
927 security access to read this property or the property does not exist.
</p>
930 This value is initialized when the class is loaded. If
<CODE>System.setProperty(String,String)
</CODE>
931 or
<CODE>System.setProperties(java.util.Properties)
</CODE> is called after this class is loaded, the value
932 will be out of sync with that System property.
936 <DT><B>Since:
</B></DT>
937 <DD>2.1, Java
1.4</DD>
938 <DT><B>See Also:
</B><DD><A HREF=
"../../../../org/apache/commons/lang/SystemUtils.html#isJavaAwtHeadless()"><CODE>isJavaAwtHeadless()
</CODE></A></DL>
942 <A NAME=
"JAVA_AWT_PRINTERJOB"><!-- --></A><H3>
943 JAVA_AWT_PRINTERJOB
</H3>
945 public static final java.lang.String
<B>JAVA_AWT_PRINTERJOB
</B></PRE>
947 <DD><p>The
<code>java.awt.printerjob
</code> System Property.
</p>
949 <p>Defaults to
<code>null
</code> if the runtime does not have
950 security access to read this property or the property does not exist.
</p>
953 This value is initialized when the class is loaded. If
<CODE>System.setProperty(String,String)
</CODE>
954 or
<CODE>System.setProperties(java.util.Properties)
</CODE> is called after this class is loaded, the value
955 will be out of sync with that System property.
959 <DT><B>Since:
</B></DT>
965 <A NAME=
"JAVA_CLASS_PATH"><!-- --></A><H3>
968 public static final java.lang.String
<B>JAVA_CLASS_PATH
</B></PRE>
970 <DD><p>The
<code>java.class.path
</code> System Property. Java class path.
</p>
972 <p>Defaults to
<code>null
</code> if the runtime does not have
973 security access to read this property or the property does not exist.
</p>
976 This value is initialized when the class is loaded. If
<CODE>System.setProperty(String,String)
</CODE>
977 or
<CODE>System.setProperties(java.util.Properties)
</CODE> is called after this class is loaded, the value
978 will be out of sync with that System property.
982 <DT><B>Since:
</B></DT>
988 <A NAME=
"JAVA_CLASS_VERSION"><!-- --></A><H3>
989 JAVA_CLASS_VERSION
</H3>
991 public static final java.lang.String
<B>JAVA_CLASS_VERSION
</B></PRE>
993 <DD><p>The
<code>java.class.version
</code> System Property.
994 Java class format version number.
</p>
996 <p>Defaults to
<code>null
</code> if the runtime does not have
997 security access to read this property or the property does not exist.
</p>
1000 This value is initialized when the class is loaded. If
<CODE>System.setProperty(String,String)
</CODE>
1001 or
<CODE>System.setProperties(java.util.Properties)
</CODE> is called after this class is loaded, the value
1002 will be out of sync with that System property.
1006 <DT><B>Since:
</B></DT>
1012 <A NAME=
"JAVA_COMPILER"><!-- --></A><H3>
1015 public static final java.lang.String
<B>JAVA_COMPILER
</B></PRE>
1017 <DD><p>The
<code>java.compiler
</code> System Property. Name of JIT compiler to use.
1018 First in JDK version
1.2. Not used in Sun JDKs after
1.2.
</p>
1020 <p>Defaults to
<code>null
</code> if the runtime does not have
1021 security access to read this property or the property does not exist.
</p>
1024 This value is initialized when the class is loaded. If
<CODE>System.setProperty(String,String)
</CODE>
1025 or
<CODE>System.setProperties(java.util.Properties)
</CODE> is called after this class is loaded, the value
1026 will be out of sync with that System property.
1030 <DT><B>Since:
</B></DT>
1031 <DD>Java
1.2. Not used in Sun versions after
1.2.
</DD>
1036 <A NAME=
"JAVA_ENDORSED_DIRS"><!-- --></A><H3>
1037 JAVA_ENDORSED_DIRS
</H3>
1039 public static final java.lang.String
<B>JAVA_ENDORSED_DIRS
</B></PRE>
1041 <DD><p>The
<code>java.endorsed.dirs
</code> System Property. Path of endorsed directory
1044 <p>Defaults to
<code>null
</code> if the runtime does not have
1045 security access to read this property or the property does not exist.
</p>
1048 This value is initialized when the class is loaded. If
<CODE>System.setProperty(String,String)
</CODE>
1049 or
<CODE>System.setProperties(java.util.Properties)
</CODE> is called after this class is loaded, the value
1050 will be out of sync with that System property.
1054 <DT><B>Since:
</B></DT>
1060 <A NAME=
"JAVA_EXT_DIRS"><!-- --></A><H3>
1063 public static final java.lang.String
<B>JAVA_EXT_DIRS
</B></PRE>
1065 <DD><p>The
<code>java.ext.dirs
</code> System Property. Path of extension directory
1068 <p>Defaults to
<code>null
</code> if the runtime does not have
1069 security access to read this property or the property does not exist.
</p>
1072 This value is initialized when the class is loaded. If
<CODE>System.setProperty(String,String)
</CODE>
1073 or
<CODE>System.setProperties(java.util.Properties)
</CODE> is called after this class is loaded, the value
1074 will be out of sync with that System property.
1078 <DT><B>Since:
</B></DT>
1084 <A NAME=
"JAVA_HOME"><!-- --></A><H3>
1087 public static final java.lang.String
<B>JAVA_HOME
</B></PRE>
1089 <DD><p>The
<code>java.home
</code> System Property. Java installation directory.
</p>
1091 <p>Defaults to
<code>null
</code> if the runtime does not have
1092 security access to read this property or the property does not exist.
</p>
1095 This value is initialized when the class is loaded. If
<CODE>System.setProperty(String,String)
</CODE>
1096 or
<CODE>System.setProperties(java.util.Properties)
</CODE> is called after this class is loaded, the value
1097 will be out of sync with that System property.
1101 <DT><B>Since:
</B></DT>
1107 <A NAME=
"JAVA_IO_TMPDIR"><!-- --></A><H3>
1110 public static final java.lang.String
<B>JAVA_IO_TMPDIR
</B></PRE>
1112 <DD><p>The
<code>java.io.tmpdir
</code> System Property. Default temp file path.
</p>
1114 <p>Defaults to
<code>null
</code> if the runtime does not have
1115 security access to read this property or the property does not exist.
</p>
1118 This value is initialized when the class is loaded. If
<CODE>System.setProperty(String,String)
</CODE>
1119 or
<CODE>System.setProperties(java.util.Properties)
</CODE> is called after this class is loaded, the value
1120 will be out of sync with that System property.
1124 <DT><B>Since:
</B></DT>
1130 <A NAME=
"JAVA_LIBRARY_PATH"><!-- --></A><H3>
1131 JAVA_LIBRARY_PATH
</H3>
1133 public static final java.lang.String
<B>JAVA_LIBRARY_PATH
</B></PRE>
1135 <DD><p>The
<code>java.library.path
</code> System Property. List of paths to search
1136 when loading libraries.
</p>
1138 <p>Defaults to
<code>null
</code> if the runtime does not have
1139 security access to read this property or the property does not exist.
</p>
1142 This value is initialized when the class is loaded. If
<CODE>System.setProperty(String,String)
</CODE>
1143 or
<CODE>System.setProperties(java.util.Properties)
</CODE> is called after this class is loaded, the value
1144 will be out of sync with that System property.
1148 <DT><B>Since:
</B></DT>
1154 <A NAME=
"JAVA_RUNTIME_NAME"><!-- --></A><H3>
1155 JAVA_RUNTIME_NAME
</H3>
1157 public static final java.lang.String
<B>JAVA_RUNTIME_NAME
</B></PRE>
1159 <DD><p>The
<code>java.runtime.name
</code> System Property. Java Runtime Environment
1162 <p>Defaults to
<code>null
</code> if the runtime does not have
1163 security access to read this property or the property does not exist.
</p>
1166 This value is initialized when the class is loaded. If
<CODE>System.setProperty(String,String)
</CODE>
1167 or
<CODE>System.setProperties(java.util.Properties)
</CODE> is called after this class is loaded, the value
1168 will be out of sync with that System property.
1172 <DT><B>Since:
</B></DT>
1173 <DD>2.0, Java
1.3</DD>
1178 <A NAME=
"JAVA_RUNTIME_VERSION"><!-- --></A><H3>
1179 JAVA_RUNTIME_VERSION
</H3>
1181 public static final java.lang.String
<B>JAVA_RUNTIME_VERSION
</B></PRE>
1183 <DD><p>The
<code>java.runtime.version
</code> System Property. Java Runtime Environment
1186 <p>Defaults to
<code>null
</code> if the runtime does not have
1187 security access to read this property or the property does not exist.
</p>
1190 This value is initialized when the class is loaded. If
<CODE>System.setProperty(String,String)
</CODE>
1191 or
<CODE>System.setProperties(java.util.Properties)
</CODE> is called after this class is loaded, the value
1192 will be out of sync with that System property.
1196 <DT><B>Since:
</B></DT>
1197 <DD>2.0, Java
1.3</DD>
1202 <A NAME=
"JAVA_SPECIFICATION_NAME"><!-- --></A><H3>
1203 JAVA_SPECIFICATION_NAME
</H3>
1205 public static final java.lang.String
<B>JAVA_SPECIFICATION_NAME
</B></PRE>
1207 <DD><p>The
<code>java.specification.name
</code> System Property. Java Runtime Environment
1208 specification name.
</p>
1210 <p>Defaults to
<code>null
</code> if the runtime does not have
1211 security access to read this property or the property does not exist.
</p>
1214 This value is initialized when the class is loaded. If
<CODE>System.setProperty(String,String)
</CODE>
1215 or
<CODE>System.setProperties(java.util.Properties)
</CODE> is called after this class is loaded, the value
1216 will be out of sync with that System property.
1220 <DT><B>Since:
</B></DT>
1226 <A NAME=
"JAVA_SPECIFICATION_VENDOR"><!-- --></A><H3>
1227 JAVA_SPECIFICATION_VENDOR
</H3>
1229 public static final java.lang.String
<B>JAVA_SPECIFICATION_VENDOR
</B></PRE>
1231 <DD><p>The
<code>java.specification.vendor
</code> System Property. Java Runtime Environment
1232 specification vendor.
</p>
1234 <p>Defaults to
<code>null
</code> if the runtime does not have
1235 security access to read this property or the property does not exist.
</p>
1238 This value is initialized when the class is loaded. If
<CODE>System.setProperty(String,String)
</CODE>
1239 or
<CODE>System.setProperties(java.util.Properties)
</CODE> is called after this class is loaded, the value
1240 will be out of sync with that System property.
1244 <DT><B>Since:
</B></DT>
1250 <A NAME=
"JAVA_SPECIFICATION_VERSION"><!-- --></A><H3>
1251 JAVA_SPECIFICATION_VERSION
</H3>
1253 public static final java.lang.String
<B>JAVA_SPECIFICATION_VERSION
</B></PRE>
1255 <DD><p>The
<code>java.specification.version
</code> System Property. Java Runtime Environment
1256 specification version.
</p>
1258 <p>Defaults to
<code>null
</code> if the runtime does not have
1259 security access to read this property or the property does not exist.
</p>
1262 This value is initialized when the class is loaded. If
<CODE>System.setProperty(String,String)
</CODE>
1263 or
<CODE>System.setProperties(java.util.Properties)
</CODE> is called after this class is loaded, the value
1264 will be out of sync with that System property.
1268 <DT><B>Since:
</B></DT>
1274 <A NAME=
"JAVA_UTIL_PREFS_PREFERENCES_FACTORY"><!-- --></A><H3>
1275 JAVA_UTIL_PREFS_PREFERENCES_FACTORY
</H3>
1277 public static final java.lang.String
<B>JAVA_UTIL_PREFS_PREFERENCES_FACTORY
</B></PRE>
1279 <DD><p>The
<code>java.util.prefs.PreferencesFactory
</code> System Property. A class name.
</p>
1281 <p>Defaults to
<code>null
</code> if the runtime does not have
1282 security access to read this property or the property does not exist.
</p>
1285 This value is initialized when the class is loaded. If
<CODE>System.setProperty(String,String)
</CODE>
1286 or
<CODE>System.setProperties(java.util.Properties)
</CODE> is called after this class is loaded, the value
1287 will be out of sync with that System property.
1291 <DT><B>Since:
</B></DT>
1292 <DD>2.1, Java
1.4</DD>
1297 <A NAME=
"JAVA_VENDOR"><!-- --></A><H3>
1300 public static final java.lang.String
<B>JAVA_VENDOR
</B></PRE>
1302 <DD><p>The
<code>java.vendor
</code> System Property. Java vendor-specific string.
</p>
1304 <p>Defaults to
<code>null
</code> if the runtime does not have
1305 security access to read this property or the property does not exist.
</p>
1308 This value is initialized when the class is loaded. If
<CODE>System.setProperty(String,String)
</CODE>
1309 or
<CODE>System.setProperties(java.util.Properties)
</CODE> is called after this class is loaded, the value
1310 will be out of sync with that System property.
1314 <DT><B>Since:
</B></DT>
1320 <A NAME=
"JAVA_VENDOR_URL"><!-- --></A><H3>
1321 JAVA_VENDOR_URL
</H3>
1323 public static final java.lang.String
<B>JAVA_VENDOR_URL
</B></PRE>
1325 <DD><p>The
<code>java.vendor.url
</code> System Property. Java vendor URL.
</p>
1327 <p>Defaults to
<code>null
</code> if the runtime does not have
1328 security access to read this property or the property does not exist.
</p>
1331 This value is initialized when the class is loaded. If
<CODE>System.setProperty(String,String)
</CODE>
1332 or
<CODE>System.setProperties(java.util.Properties)
</CODE> is called after this class is loaded, the value
1333 will be out of sync with that System property.
1337 <DT><B>Since:
</B></DT>
1343 <A NAME=
"JAVA_VERSION"><!-- --></A><H3>
1346 public static final java.lang.String
<B>JAVA_VERSION
</B></PRE>
1348 <DD><p>The
<code>java.version
</code> System Property. Java version number.
</p>
1350 <p>Defaults to
<code>null
</code> if the runtime does not have
1351 security access to read this property or the property does not exist.
</p>
1354 This value is initialized when the class is loaded. If
<CODE>System.setProperty(String,String)
</CODE>
1355 or
<CODE>System.setProperties(java.util.Properties)
</CODE> is called after this class is loaded, the value
1356 will be out of sync with that System property.
1360 <DT><B>Since:
</B></DT>
1366 <A NAME=
"JAVA_VM_INFO"><!-- --></A><H3>
1369 public static final java.lang.String
<B>JAVA_VM_INFO
</B></PRE>
1371 <DD><p>The
<code>java.vm.info
</code> System Property. Java Virtual Machine implementation
1374 <p>Defaults to
<code>null
</code> if the runtime does not have
1375 security access to read this property or the property does not exist.
</p>
1378 This value is initialized when the class is loaded. If
<CODE>System.setProperty(String,String)
</CODE>
1379 or
<CODE>System.setProperties(java.util.Properties)
</CODE> is called after this class is loaded, the value
1380 will be out of sync with that System property.
1384 <DT><B>Since:
</B></DT>
1385 <DD>2.0, Java
1.2</DD>
1390 <A NAME=
"JAVA_VM_NAME"><!-- --></A><H3>
1393 public static final java.lang.String
<B>JAVA_VM_NAME
</B></PRE>
1395 <DD><p>The
<code>java.vm.name
</code> System Property. Java Virtual Machine implementation
1398 <p>Defaults to
<code>null
</code> if the runtime does not have
1399 security access to read this property or the property does not exist.
</p>
1402 This value is initialized when the class is loaded. If
<CODE>System.setProperty(String,String)
</CODE>
1403 or
<CODE>System.setProperties(java.util.Properties)
</CODE> is called after this class is loaded, the value
1404 will be out of sync with that System property.
1408 <DT><B>Since:
</B></DT>
1414 <A NAME=
"JAVA_VM_SPECIFICATION_NAME"><!-- --></A><H3>
1415 JAVA_VM_SPECIFICATION_NAME
</H3>
1417 public static final java.lang.String
<B>JAVA_VM_SPECIFICATION_NAME
</B></PRE>
1419 <DD><p>The
<code>java.vm.specification.name
</code> System Property. Java Virtual Machine
1420 specification name.
</p>
1422 <p>Defaults to
<code>null
</code> if the runtime does not have
1423 security access to read this property or the property does not exist.
</p>
1426 This value is initialized when the class is loaded. If
<CODE>System.setProperty(String,String)
</CODE>
1427 or
<CODE>System.setProperties(java.util.Properties)
</CODE> is called after this class is loaded, the value
1428 will be out of sync with that System property.
1432 <DT><B>Since:
</B></DT>
1438 <A NAME=
"JAVA_VM_SPECIFICATION_VENDOR"><!-- --></A><H3>
1439 JAVA_VM_SPECIFICATION_VENDOR
</H3>
1441 public static final java.lang.String
<B>JAVA_VM_SPECIFICATION_VENDOR
</B></PRE>
1443 <DD><p>The
<code>java.vm.specification.vendor
</code> System Property. Java Virtual
1444 Machine specification vendor.
</p>
1446 <p>Defaults to
<code>null
</code> if the runtime does not have
1447 security access to read this property or the property does not exist.
</p>
1450 This value is initialized when the class is loaded. If
<CODE>System.setProperty(String,String)
</CODE>
1451 or
<CODE>System.setProperties(java.util.Properties)
</CODE> is called after this class is loaded, the value
1452 will be out of sync with that System property.
1456 <DT><B>Since:
</B></DT>
1462 <A NAME=
"JAVA_VM_SPECIFICATION_VERSION"><!-- --></A><H3>
1463 JAVA_VM_SPECIFICATION_VERSION
</H3>
1465 public static final java.lang.String
<B>JAVA_VM_SPECIFICATION_VERSION
</B></PRE>
1467 <DD><p>The
<code>java.vm.specification.version
</code> System Property. Java Virtual Machine
1468 specification version.
</p>
1470 <p>Defaults to
<code>null
</code> if the runtime does not have
1471 security access to read this property or the property does not exist.
</p>
1474 This value is initialized when the class is loaded. If
<CODE>System.setProperty(String,String)
</CODE>
1475 or
<CODE>System.setProperties(java.util.Properties)
</CODE> is called after this class is loaded, the value
1476 will be out of sync with that System property.
1480 <DT><B>Since:
</B></DT>
1486 <A NAME=
"JAVA_VM_VENDOR"><!-- --></A><H3>
1489 public static final java.lang.String
<B>JAVA_VM_VENDOR
</B></PRE>
1491 <DD><p>The
<code>java.vm.vendor
</code> System Property. Java Virtual Machine implementation
1494 <p>Defaults to
<code>null
</code> if the runtime does not have
1495 security access to read this property or the property does not exist.
</p>
1498 This value is initialized when the class is loaded. If
<CODE>System.setProperty(String,String)
</CODE>
1499 or
<CODE>System.setProperties(java.util.Properties)
</CODE> is called after this class is loaded, the value
1500 will be out of sync with that System property.
1504 <DT><B>Since:
</B></DT>
1510 <A NAME=
"JAVA_VM_VERSION"><!-- --></A><H3>
1511 JAVA_VM_VERSION
</H3>
1513 public static final java.lang.String
<B>JAVA_VM_VERSION
</B></PRE>
1515 <DD><p>The
<code>java.vm.version
</code> System Property. Java Virtual Machine
1516 implementation version.
</p>
1518 <p>Defaults to
<code>null
</code> if the runtime does not have
1519 security access to read this property or the property does not exist.
</p>
1522 This value is initialized when the class is loaded. If
<CODE>System.setProperty(String,String)
</CODE>
1523 or
<CODE>System.setProperties(java.util.Properties)
</CODE> is called after this class is loaded, the value
1524 will be out of sync with that System property.
1528 <DT><B>Since:
</B></DT>
1534 <A NAME=
"LINE_SEPARATOR"><!-- --></A><H3>
1537 public static final java.lang.String
<B>LINE_SEPARATOR
</B></PRE>
1539 <DD><p>The
<code>line.separator
</code> System Property. Line separator
1540 (
<code>"\n
"</code> on UNIX).
</p>
1542 <p>Defaults to
<code>null
</code> if the runtime does not have
1543 security access to read this property or the property does not exist.
</p>
1546 This value is initialized when the class is loaded. If
<CODE>System.setProperty(String,String)
</CODE>
1547 or
<CODE>System.setProperties(java.util.Properties)
</CODE> is called after this class is loaded, the value
1548 will be out of sync with that System property.
1552 <DT><B>Since:
</B></DT>
1558 <A NAME=
"OS_ARCH"><!-- --></A><H3>
1561 public static final java.lang.String
<B>OS_ARCH
</B></PRE>
1563 <DD><p>The
<code>os.arch
</code> System Property. Operating system architecture.
</p>
1565 <p>Defaults to
<code>null
</code> if the runtime does not have
1566 security access to read this property or the property does not exist.
</p>
1569 This value is initialized when the class is loaded. If
<CODE>System.setProperty(String,String)
</CODE>
1570 or
<CODE>System.setProperties(java.util.Properties)
</CODE> is called after this class is loaded, the value
1571 will be out of sync with that System property.
1575 <DT><B>Since:
</B></DT>
1581 <A NAME=
"OS_NAME"><!-- --></A><H3>
1584 public static final java.lang.String
<B>OS_NAME
</B></PRE>
1586 <DD><p>The
<code>os.name
</code> System Property. Operating system name.
</p>
1588 <p>Defaults to
<code>null
</code> if the runtime does not have
1589 security access to read this property or the property does not exist.
</p>
1592 This value is initialized when the class is loaded. If
<CODE>System.setProperty(String,String)
</CODE>
1593 or
<CODE>System.setProperties(java.util.Properties)
</CODE> is called after this class is loaded, the value
1594 will be out of sync with that System property.
1598 <DT><B>Since:
</B></DT>
1604 <A NAME=
"OS_VERSION"><!-- --></A><H3>
1607 public static final java.lang.String
<B>OS_VERSION
</B></PRE>
1609 <DD><p>The
<code>os.version
</code> System Property. Operating system version.
</p>
1611 <p>Defaults to
<code>null
</code> if the runtime does not have
1612 security access to read this property or the property does not exist.
</p>
1615 This value is initialized when the class is loaded. If
<CODE>System.setProperty(String,String)
</CODE>
1616 or
<CODE>System.setProperties(java.util.Properties)
</CODE> is called after this class is loaded, the value
1617 will be out of sync with that System property.
1621 <DT><B>Since:
</B></DT>
1627 <A NAME=
"PATH_SEPARATOR"><!-- --></A><H3>
1630 public static final java.lang.String
<B>PATH_SEPARATOR
</B></PRE>
1632 <DD><p>The
<code>path.separator
</code> System Property. Path separator
1633 (
<code>":
"</code> on UNIX).
</p>
1635 <p>Defaults to
<code>null
</code> if the runtime does not have
1636 security access to read this property or the property does not exist.
</p>
1639 This value is initialized when the class is loaded. If
<CODE>System.setProperty(String,String)
</CODE>
1640 or
<CODE>System.setProperties(java.util.Properties)
</CODE> is called after this class is loaded, the value
1641 will be out of sync with that System property.
1645 <DT><B>Since:
</B></DT>
1651 <A NAME=
"USER_COUNTRY"><!-- --></A><H3>
1654 public static final java.lang.String
<B>USER_COUNTRY
</B></PRE>
1656 <DD><p>The
<code>user.country
</code> or
<code>user.region
</code> System Property.
1657 User's country code, such as
<code>GB
</code>. First in JDK version
1.2 as
1658 <code>user.region
</code>. Renamed to
<code>user.country
</code> in
1.4</p>
1660 <p>Defaults to
<code>null
</code> if the runtime does not have
1661 security access to read this property or the property does not exist.
</p>
1664 This value is initialized when the class is loaded. If
<CODE>System.setProperty(String,String)
</CODE>
1665 or
<CODE>System.setProperties(java.util.Properties)
</CODE> is called after this class is loaded, the value
1666 will be out of sync with that System property.
1670 <DT><B>Since:
</B></DT>
1671 <DD>2.0, Java
1.2</DD>
1676 <A NAME=
"USER_DIR"><!-- --></A><H3>
1679 public static final java.lang.String
<B>USER_DIR
</B></PRE>
1681 <DD><p>The
<code>user.dir
</code> System Property. User's current working
1684 <p>Defaults to
<code>null
</code> if the runtime does not have
1685 security access to read this property or the property does not exist.
</p>
1688 This value is initialized when the class is loaded. If
<CODE>System.setProperty(String,String)
</CODE>
1689 or
<CODE>System.setProperties(java.util.Properties)
</CODE> is called after this class is loaded, the value
1690 will be out of sync with that System property.
1694 <DT><B>Since:
</B></DT>
1700 <A NAME=
"USER_HOME"><!-- --></A><H3>
1703 public static final java.lang.String
<B>USER_HOME
</B></PRE>
1705 <DD><p>The
<code>user.home
</code> System Property. User's home directory.
</p>
1707 <p>Defaults to
<code>null
</code> if the runtime does not have
1708 security access to read this property or the property does not exist.
</p>
1711 This value is initialized when the class is loaded. If
<CODE>System.setProperty(String,String)
</CODE>
1712 or
<CODE>System.setProperties(java.util.Properties)
</CODE> is called after this class is loaded, the value
1713 will be out of sync with that System property.
1717 <DT><B>Since:
</B></DT>
1723 <A NAME=
"USER_LANGUAGE"><!-- --></A><H3>
1726 public static final java.lang.String
<B>USER_LANGUAGE
</B></PRE>
1728 <DD><p>The
<code>user.language
</code> System Property. User's language code,
1729 such as
<code>"en"</code>.
</p>
1731 <p>Defaults to
<code>null
</code> if the runtime does not have
1732 security access to read this property or the property does not exist.
</p>
1735 This value is initialized when the class is loaded. If
<CODE>System.setProperty(String,String)
</CODE>
1736 or
<CODE>System.setProperties(java.util.Properties)
</CODE> is called after this class is loaded, the value
1737 will be out of sync with that System property.
1741 <DT><B>Since:
</B></DT>
1742 <DD>2.0, Java
1.2</DD>
1747 <A NAME=
"USER_NAME"><!-- --></A><H3>
1750 public static final java.lang.String
<B>USER_NAME
</B></PRE>
1752 <DD><p>The
<code>user.name
</code> System Property. User's account name.
</p>
1754 <p>Defaults to
<code>null
</code> if the runtime does not have
1755 security access to read this property or the property does not exist.
</p>
1758 This value is initialized when the class is loaded. If
<CODE>System.setProperty(String,String)
</CODE>
1759 or
<CODE>System.setProperties(java.util.Properties)
</CODE> is called after this class is loaded, the value
1760 will be out of sync with that System property.
1764 <DT><B>Since:
</B></DT>
1770 <A NAME=
"USER_TIMEZONE"><!-- --></A><H3>
1773 public static final java.lang.String
<B>USER_TIMEZONE
</B></PRE>
1775 <DD><p>The
<code>user.timezone
</code> System Property.
1776 For example:
<code>"America/Los_Angeles"</code>.
</p>
1778 <p>Defaults to
<code>null
</code> if the runtime does not have
1779 security access to read this property or the property does not exist.
</p>
1782 This value is initialized when the class is loaded. If
<CODE>System.setProperty(String,String)
</CODE>
1783 or
<CODE>System.setProperties(java.util.Properties)
</CODE> is called after this class is loaded, the value
1784 will be out of sync with that System property.
1788 <DT><B>Since:
</B></DT>
1794 <A NAME=
"JAVA_VERSION_TRIMMED"><!-- --></A><H3>
1795 JAVA_VERSION_TRIMMED
</H3>
1797 public static final java.lang.String
<B>JAVA_VERSION_TRIMMED
</B></PRE>
1799 <DD><p>Gets the Java version as a
<code>String
</code> trimming leading letters.
</p>
1801 <p>The field will return
<code>null
</code> if
<A HREF=
"../../../../org/apache/commons/lang/SystemUtils.html#JAVA_VERSION"><CODE>JAVA_VERSION
</CODE></A> is
<code>null
</code>.
</p>
1804 <DT><B>Since:
</B></DT>
1810 <A NAME=
"JAVA_VERSION_FLOAT"><!-- --></A><H3>
1811 JAVA_VERSION_FLOAT
</H3>
1813 public static final float
<B>JAVA_VERSION_FLOAT
</B></PRE>
1815 <DD><p>Gets the Java version as a
<code>float
</code>.
</p>
1817 <p>Example return values:
</p>
1819 <li><code>1.2f
</code> for JDK
1.2
1820 <li><code>1.31f
</code> for JDK
1.3.1
1823 <p>The field will return zero if
<A HREF=
"../../../../org/apache/commons/lang/SystemUtils.html#JAVA_VERSION"><CODE>JAVA_VERSION
</CODE></A> is
<code>null
</code>.
</p>
1826 <DT><B>Since:
</B></DT>
1832 <A NAME=
"JAVA_VERSION_INT"><!-- --></A><H3>
1833 JAVA_VERSION_INT
</H3>
1835 public static final int
<B>JAVA_VERSION_INT
</B></PRE>
1837 <DD><p>Gets the Java version as an
<code>int
</code>.
</p>
1839 <p>Example return values:
</p>
1841 <li><code>120</code> for JDK
1.2
1842 <li><code>131</code> for JDK
1.3.1
1845 <p>The field will return zero if
<A HREF=
"../../../../org/apache/commons/lang/SystemUtils.html#JAVA_VERSION"><CODE>JAVA_VERSION
</CODE></A> is
<code>null
</code>.
</p>
1848 <DT><B>Since:
</B></DT>
1854 <A NAME=
"IS_JAVA_1_1"><!-- --></A><H3>
1857 public static final boolean
<B>IS_JAVA_1_1
</B></PRE>
1859 <DD><p>Is
<code>true
</code> if this is Java version
1.1 (also
1.1.x versions).
</p>
1861 <p>The field will return
<code>false
</code> if
<A HREF=
"../../../../org/apache/commons/lang/SystemUtils.html#JAVA_VERSION"><CODE>JAVA_VERSION
</CODE></A> is
1862 <code>null
</code>.
</p>
1869 <A NAME=
"IS_JAVA_1_2"><!-- --></A><H3>
1872 public static final boolean
<B>IS_JAVA_1_2
</B></PRE>
1874 <DD><p>Is
<code>true
</code> if this is Java version
1.2 (also
1.2.x versions).
</p>
1876 <p>The field will return
<code>false
</code> if
<A HREF=
"../../../../org/apache/commons/lang/SystemUtils.html#JAVA_VERSION"><CODE>JAVA_VERSION
</CODE></A> is
1877 <code>null
</code>.
</p>
1884 <A NAME=
"IS_JAVA_1_3"><!-- --></A><H3>
1887 public static final boolean
<B>IS_JAVA_1_3
</B></PRE>
1889 <DD><p>Is
<code>true
</code> if this is Java version
1.3 (also
1.3.x versions).
</p>
1891 <p>The field will return
<code>false
</code> if
<A HREF=
"../../../../org/apache/commons/lang/SystemUtils.html#JAVA_VERSION"><CODE>JAVA_VERSION
</CODE></A> is
1892 <code>null
</code>.
</p>
1899 <A NAME=
"IS_JAVA_1_4"><!-- --></A><H3>
1902 public static final boolean
<B>IS_JAVA_1_4
</B></PRE>
1904 <DD><p>Is
<code>true
</code> if this is Java version
1.4 (also
1.4.x versions).
</p>
1906 <p>The field will return
<code>false
</code> if
<A HREF=
"../../../../org/apache/commons/lang/SystemUtils.html#JAVA_VERSION"><CODE>JAVA_VERSION
</CODE></A> is
1907 <code>null
</code>.
</p>
1914 <A NAME=
"IS_JAVA_1_5"><!-- --></A><H3>
1917 public static final boolean
<B>IS_JAVA_1_5
</B></PRE>
1919 <DD><p>Is
<code>true
</code> if this is Java version
1.5 (also
1.5.x versions).
</p>
1921 <p>The field will return
<code>false
</code> if
<A HREF=
"../../../../org/apache/commons/lang/SystemUtils.html#JAVA_VERSION"><CODE>JAVA_VERSION
</CODE></A> is
1922 <code>null
</code>.
</p>
1929 <A NAME=
"IS_JAVA_1_6"><!-- --></A><H3>
1932 public static final boolean
<B>IS_JAVA_1_6
</B></PRE>
1934 <DD><p>Is
<code>true
</code> if this is Java version
1.6 (also
1.6.x versions).
</p>
1936 <p>The field will return
<code>false
</code> if
<A HREF=
"../../../../org/apache/commons/lang/SystemUtils.html#JAVA_VERSION"><CODE>JAVA_VERSION
</CODE></A> is
1937 <code>null
</code>.
</p>
1944 <A NAME=
"IS_OS_AIX"><!-- --></A><H3>
1947 public static final boolean
<B>IS_OS_AIX
</B></PRE>
1949 <DD><p>Is
<code>true
</code> if this is AIX.
</p>
1951 <p>The field will return
<code>false
</code> if
<code>OS_NAME
</code> is
1952 <code>null
</code>.
</p>
1955 <DT><B>Since:
</B></DT>
1961 <A NAME=
"IS_OS_HP_UX"><!-- --></A><H3>
1964 public static final boolean
<B>IS_OS_HP_UX
</B></PRE>
1966 <DD><p>Is
<code>true
</code> if this is HP-UX.
</p>
1968 <p>The field will return
<code>false
</code> if
<code>OS_NAME
</code> is
1969 <code>null
</code>.
</p>
1972 <DT><B>Since:
</B></DT>
1978 <A NAME=
"IS_OS_IRIX"><!-- --></A><H3>
1981 public static final boolean
<B>IS_OS_IRIX
</B></PRE>
1983 <DD><p>Is
<code>true
</code> if this is Irix.
</p>
1985 <p>The field will return
<code>false
</code> if
<code>OS_NAME
</code> is
1986 <code>null
</code>.
</p>
1989 <DT><B>Since:
</B></DT>
1995 <A NAME=
"IS_OS_LINUX"><!-- --></A><H3>
1998 public static final boolean
<B>IS_OS_LINUX
</B></PRE>
2000 <DD><p>Is
<code>true
</code> if this is Linux.
</p>
2002 <p>The field will return
<code>false
</code> if
<code>OS_NAME
</code> is
2003 <code>null
</code>.
</p>
2006 <DT><B>Since:
</B></DT>
2012 <A NAME=
"IS_OS_MAC"><!-- --></A><H3>
2015 public static final boolean
<B>IS_OS_MAC
</B></PRE>
2017 <DD><p>Is
<code>true
</code> if this is Mac.
</p>
2019 <p>The field will return
<code>false
</code> if
<code>OS_NAME
</code> is
2020 <code>null
</code>.
</p>
2023 <DT><B>Since:
</B></DT>
2029 <A NAME=
"IS_OS_MAC_OSX"><!-- --></A><H3>
2032 public static final boolean
<B>IS_OS_MAC_OSX
</B></PRE>
2034 <DD><p>Is
<code>true
</code> if this is Mac.
</p>
2036 <p>The field will return
<code>false
</code> if
<code>OS_NAME
</code> is
2037 <code>null
</code>.
</p>
2040 <DT><B>Since:
</B></DT>
2046 <A NAME=
"IS_OS_OS2"><!-- --></A><H3>
2049 public static final boolean
<B>IS_OS_OS2
</B></PRE>
2051 <DD><p>Is
<code>true
</code> if this is OS/
2.
</p>
2053 <p>The field will return
<code>false
</code> if
<code>OS_NAME
</code> is
2054 <code>null
</code>.
</p>
2057 <DT><B>Since:
</B></DT>
2063 <A NAME=
"IS_OS_SOLARIS"><!-- --></A><H3>
2066 public static final boolean
<B>IS_OS_SOLARIS
</B></PRE>
2068 <DD><p>Is
<code>true
</code> if this is Solaris.
</p>
2070 <p>The field will return
<code>false
</code> if
<code>OS_NAME
</code> is
2071 <code>null
</code>.
</p>
2074 <DT><B>Since:
</B></DT>
2080 <A NAME=
"IS_OS_SUN_OS"><!-- --></A><H3>
2083 public static final boolean
<B>IS_OS_SUN_OS
</B></PRE>
2085 <DD><p>Is
<code>true
</code> if this is SunOS.
</p>
2087 <p>The field will return
<code>false
</code> if
<code>OS_NAME
</code> is
2088 <code>null
</code>.
</p>
2091 <DT><B>Since:
</B></DT>
2097 <A NAME=
"IS_OS_UNIX"><!-- --></A><H3>
2100 public static final boolean
<B>IS_OS_UNIX
</B></PRE>
2102 <DD><p>Is
<code>true
</code> if this is a POSIX compilant system,
2103 as in any of AIX, HP-UX, Irix, Linux, MacOSX, Solaris or SUN OS.
</p>
2105 <p>The field will return
<code>false
</code> if
<code>OS_NAME
</code> is
2106 <code>null
</code>.
</p>
2109 <DT><B>Since:
</B></DT>
2115 <A NAME=
"IS_OS_WINDOWS"><!-- --></A><H3>
2118 public static final boolean
<B>IS_OS_WINDOWS
</B></PRE>
2120 <DD><p>Is
<code>true
</code> if this is Windows.
</p>
2122 <p>The field will return
<code>false
</code> if
<code>OS_NAME
</code> is
2123 <code>null
</code>.
</p>
2126 <DT><B>Since:
</B></DT>
2132 <A NAME=
"IS_OS_WINDOWS_2000"><!-- --></A><H3>
2133 IS_OS_WINDOWS_2000
</H3>
2135 public static final boolean
<B>IS_OS_WINDOWS_2000
</B></PRE>
2137 <DD><p>Is
<code>true
</code> if this is Windows
2000.
</p>
2139 <p>The field will return
<code>false
</code> if
<code>OS_NAME
</code> is
2140 <code>null
</code>.
</p>
2143 <DT><B>Since:
</B></DT>
2149 <A NAME=
"IS_OS_WINDOWS_95"><!-- --></A><H3>
2150 IS_OS_WINDOWS_95
</H3>
2152 public static final boolean
<B>IS_OS_WINDOWS_95
</B></PRE>
2154 <DD><p>Is
<code>true
</code> if this is Windows
95.
</p>
2156 <p>The field will return
<code>false
</code> if
<code>OS_NAME
</code> is
2157 <code>null
</code>.
</p>
2160 <DT><B>Since:
</B></DT>
2166 <A NAME=
"IS_OS_WINDOWS_98"><!-- --></A><H3>
2167 IS_OS_WINDOWS_98
</H3>
2169 public static final boolean
<B>IS_OS_WINDOWS_98
</B></PRE>
2171 <DD><p>Is
<code>true
</code> if this is Windows
98.
</p>
2173 <p>The field will return
<code>false
</code> if
<code>OS_NAME
</code> is
2174 <code>null
</code>.
</p>
2177 <DT><B>Since:
</B></DT>
2183 <A NAME=
"IS_OS_WINDOWS_ME"><!-- --></A><H3>
2184 IS_OS_WINDOWS_ME
</H3>
2186 public static final boolean
<B>IS_OS_WINDOWS_ME
</B></PRE>
2188 <DD><p>Is
<code>true
</code> if this is Windows ME.
</p>
2190 <p>The field will return
<code>false
</code> if
<code>OS_NAME
</code> is
2191 <code>null
</code>.
</p>
2194 <DT><B>Since:
</B></DT>
2200 <A NAME=
"IS_OS_WINDOWS_NT"><!-- --></A><H3>
2201 IS_OS_WINDOWS_NT
</H3>
2203 public static final boolean
<B>IS_OS_WINDOWS_NT
</B></PRE>
2205 <DD><p>Is
<code>true
</code> if this is Windows NT.
</p>
2207 <p>The field will return
<code>false
</code> if
<code>OS_NAME
</code> is
2208 <code>null
</code>.
</p>
2211 <DT><B>Since:
</B></DT>
2217 <A NAME=
"IS_OS_WINDOWS_XP"><!-- --></A><H3>
2218 IS_OS_WINDOWS_XP
</H3>
2220 public static final boolean
<B>IS_OS_WINDOWS_XP
</B></PRE>
2222 <DD><p>Is
<code>true
</code> if this is Windows XP.
</p>
2224 <p>The field will return
<code>false
</code> if
<code>OS_NAME
</code> is
2225 <code>null
</code>.
</p>
2228 <DT><B>Since:
</B></DT>
2234 <A NAME=
"IS_OS_WINDOWS_VISTA"><!-- --></A><H3>
2235 IS_OS_WINDOWS_VISTA
</H3>
2237 public static final boolean
<B>IS_OS_WINDOWS_VISTA
</B></PRE>
2239 <DD><p>Is
<code>true
</code> if this is Windows Vista.
</p>
2241 <p>The field will return
<code>false
</code> if
<code>OS_NAME
</code> is
2242 <code>null
</code>.
</p>
2245 <DT><B>Since:
</B></DT>
2250 <!-- ========= CONSTRUCTOR DETAIL ======== -->
2252 <A NAME=
"constructor_detail"><!-- --></A>
2253 <TABLE BORDER=
"1" WIDTH=
"100%" CELLPADDING=
"3" CELLSPACING=
"0" SUMMARY=
"">
2254 <TR BGCOLOR=
"#CCCCFF" CLASS=
"TableHeadingColor">
2255 <TD COLSPAN=
1><FONT SIZE=
"+2">
2256 <B>Constructor Detail
</B></FONT></TD>
2260 <A NAME=
"SystemUtils()"><!-- --></A><H3>
2263 public
<B>SystemUtils
</B>()
</PRE>
2265 <DD><p>SystemUtils instances should NOT be constructed in standard
2266 programming. Instead, the class should be used as
2267 <code>SystemUtils.FILE_SEPARATOR
</code>.
</p>
2269 <p>This constructor is public to permit tools that require a JavaBean
2270 instance to operate.
</p>
2274 <!-- ============ METHOD DETAIL ========== -->
2276 <A NAME=
"method_detail"><!-- --></A>
2277 <TABLE BORDER=
"1" WIDTH=
"100%" CELLPADDING=
"3" CELLSPACING=
"0" SUMMARY=
"">
2278 <TR BGCOLOR=
"#CCCCFF" CLASS=
"TableHeadingColor">
2279 <TD COLSPAN=
1><FONT SIZE=
"+2">
2280 <B>Method Detail
</B></FONT></TD>
2284 <A NAME=
"getJavaVersion()"><!-- --></A><H3>
2287 public static float
<B>getJavaVersion
</B>()
</PRE>
2289 <DD><B>Deprecated.
</B> <I>Use
<A HREF=
"../../../../org/apache/commons/lang/SystemUtils.html#JAVA_VERSION_FLOAT"><CODE>JAVA_VERSION_FLOAT
</CODE></A> instead.
2290 Method will be removed in Commons Lang
3.0.
</I>
2292 <DD><p>Gets the Java version number as a
<code>float
</code>.
</p>
2294 <p>Example return values:
</p>
2296 <li><code>1.2f
</code> for JDK
1.2
2297 <li><code>1.31f
</code> for JDK
1.3.1
2302 <DT><B>Returns:
</B><DD>the version, for example
1.31f for JDK
1.3.1</DL>
2307 <A NAME=
"isJavaVersionAtLeast(float)"><!-- --></A><H3>
2308 isJavaVersionAtLeast
</H3>
2310 public static boolean
<B>isJavaVersionAtLeast
</B>(float
requiredVersion)
</PRE>
2312 <DD><p>Is the Java version at least the requested version.
</p>
2314 <p>Example input:
</p>
2316 <li><code>1.2f
</code> to test for JDK
1.2</li>
2317 <li><code>1.31f
</code> to test for JDK
1.3.1</li>
2321 <DT><B>Parameters:
</B><DD><CODE>requiredVersion
</CODE> - the required version, for example
1.31f
2322 <DT><B>Returns:
</B><DD><code>true
</code> if the actual version is equal or greater
2323 than the required version
</DL>
2328 <A NAME=
"isJavaVersionAtLeast(int)"><!-- --></A><H3>
2329 isJavaVersionAtLeast
</H3>
2331 public static boolean
<B>isJavaVersionAtLeast
</B>(int
requiredVersion)
</PRE>
2333 <DD><p>Is the Java version at least the requested version.
</p>
2335 <p>Example input:
</p>
2337 <li><code>120</code> to test for JDK
1.2 or greater
</li>
2338 <li><code>131</code> to test for JDK
1.3.1 or greater
</li>
2342 <DT><B>Parameters:
</B><DD><CODE>requiredVersion
</CODE> - the required version, for example
131
2343 <DT><B>Returns:
</B><DD><code>true
</code> if the actual version is equal or greater
2344 than the required version
<DT><B>Since:
</B></DT>
2351 <A NAME=
"isJavaAwtHeadless()"><!-- --></A><H3>
2352 isJavaAwtHeadless
</H3>
2354 public static boolean
<B>isJavaAwtHeadless
</B>()
</PRE>
2356 <DD>Returns whether the
<A HREF=
"../../../../org/apache/commons/lang/SystemUtils.html#JAVA_AWT_HEADLESS"><CODE>JAVA_AWT_HEADLESS
</CODE></A> value is
<code>true
</code>.
2360 <DT><B>Returns:
</B><DD><code>true
</code> if
<code>JAVA_AWT_HEADLESS
</code> is
<code>"true"</code>,
2361 <code>false
</code> otherwise.
<DT><B>Since:
</B></DT>
2362 <DD>2.1, Java
1.4</DD>
2363 <DT><B>See Also:
</B><DD><A HREF=
"../../../../org/apache/commons/lang/SystemUtils.html#JAVA_AWT_HEADLESS"><CODE>JAVA_AWT_HEADLESS
</CODE></A></DL>
2368 <A NAME=
"getJavaHome()"><!-- --></A><H3>
2371 public static java.io.File
<B>getJavaHome
</B>()
</PRE>
2373 <DD><p>Gets the Java home directory as a
<code>File
</code>.
</p>
2377 <DT><B>Returns:
</B><DD>a directory
2379 <DD><CODE>java.lang.SecurityException
</CODE> - if a security manager exists and its
2380 <code>checkPropertyAccess
</code> method doesn't allow
2381 access to the specified system property.
<DT><B>Since:
</B></DT>
2383 <DT><B>See Also:
</B><DD><CODE>System.getProperty(String)
</CODE></DL>
2388 <A NAME=
"getJavaIoTmpDir()"><!-- --></A><H3>
2389 getJavaIoTmpDir
</H3>
2391 public static java.io.File
<B>getJavaIoTmpDir
</B>()
</PRE>
2393 <DD><p>Gets the Java IO temporary directory as a
<code>File
</code>.
</p>
2397 <DT><B>Returns:
</B><DD>a directory
2399 <DD><CODE>java.lang.SecurityException
</CODE> - if a security manager exists and its
2400 <code>checkPropertyAccess
</code> method doesn't allow
2401 access to the specified system property.
<DT><B>Since:
</B></DT>
2403 <DT><B>See Also:
</B><DD><CODE>System.getProperty(String)
</CODE></DL>
2408 <A NAME=
"getUserDir()"><!-- --></A><H3>
2411 public static java.io.File
<B>getUserDir
</B>()
</PRE>
2413 <DD><p>Gets the user directory as a
<code>File
</code>.
</p>
2417 <DT><B>Returns:
</B><DD>a directory
2419 <DD><CODE>java.lang.SecurityException
</CODE> - if a security manager exists and its
2420 <code>checkPropertyAccess
</code> method doesn't allow
2421 access to the specified system property.
<DT><B>Since:
</B></DT>
2423 <DT><B>See Also:
</B><DD><CODE>System.getProperty(String)
</CODE></DL>
2428 <A NAME=
"getUserHome()"><!-- --></A><H3>
2431 public static java.io.File
<B>getUserHome
</B>()
</PRE>
2433 <DD><p>Gets the user home directory as a
<code>File
</code>.
</p>
2437 <DT><B>Returns:
</B><DD>a directory
2439 <DD><CODE>java.lang.SecurityException
</CODE> - if a security manager exists and its
2440 <code>checkPropertyAccess
</code> method doesn't allow
2441 access to the specified system property.
<DT><B>Since:
</B></DT>
2443 <DT><B>See Also:
</B><DD><CODE>System.getProperty(String)
</CODE></DL>
2446 <!-- ========= END OF CLASS DATA ========= -->
2450 <!-- ======= START OF BOTTOM NAVBAR ====== -->
2451 <A NAME=
"navbar_bottom"><!-- --></A>
2452 <A HREF=
"#skip-navbar_bottom" title=
"Skip navigation links"></A>
2453 <TABLE BORDER=
"0" WIDTH=
"100%" CELLPADDING=
"1" CELLSPACING=
"0" SUMMARY=
"">
2455 <TD COLSPAN=
3 BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1">
2456 <A NAME=
"navbar_bottom_firstrow"><!-- --></A>
2457 <TABLE BORDER=
"0" CELLPADDING=
"0" CELLSPACING=
"3" SUMMARY=
"">
2458 <TR ALIGN=
"center" VALIGN=
"top">
2459 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"../../../../overview-summary.html"><FONT CLASS=
"NavBarFont1"><B>Overview
</B></FONT></A> </TD>
2460 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"package-summary.html"><FONT CLASS=
"NavBarFont1"><B>Package
</B></FONT></A> </TD>
2461 <TD BGCOLOR=
"#FFFFFF" CLASS=
"NavBarCell1Rev"> <FONT CLASS=
"NavBarFont1Rev"><B>Class
</B></FONT> </TD>
2462 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"class-use/SystemUtils.html"><FONT CLASS=
"NavBarFont1"><B>Use
</B></FONT></A> </TD>
2463 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"package-tree.html"><FONT CLASS=
"NavBarFont1"><B>Tree
</B></FONT></A> </TD>
2464 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"../../../../deprecated-list.html"><FONT CLASS=
"NavBarFont1"><B>Deprecated
</B></FONT></A> </TD>
2465 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"../../../../index-all.html"><FONT CLASS=
"NavBarFont1"><B>Index
</B></FONT></A> </TD>
2466 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"../../../../help-doc.html"><FONT CLASS=
"NavBarFont1"><B>Help
</B></FONT></A> </TD>
2470 <TD ALIGN=
"right" VALIGN=
"top" ROWSPAN=
3><EM>
2476 <TD BGCOLOR=
"white" CLASS=
"NavBarCell2"><FONT SIZE=
"-2">
2477 <A HREF=
"../../../../org/apache/commons/lang/StringUtils.html" title=
"class in org.apache.commons.lang"><B>PREV CLASS
</B></A>
2478 <A HREF=
"../../../../org/apache/commons/lang/Validate.html" title=
"class in org.apache.commons.lang"><B>NEXT CLASS
</B></A></FONT></TD>
2479 <TD BGCOLOR=
"white" CLASS=
"NavBarCell2"><FONT SIZE=
"-2">
2480 <A HREF=
"../../../../index.html" target=
"_top"><B>FRAMES
</B></A>
2481 <A HREF=
"SystemUtils.html" target=
"_top"><B>NO FRAMES
</B></A>
2482 <SCRIPT type=
"text/javascript">
2485 document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
2490 <A HREF=
"../../../../allclasses-noframe.html"><B>All Classes
</B></A>
2496 <TD VALIGN=
"top" CLASS=
"NavBarCell3"><FONT SIZE=
"-2">
2497 SUMMARY:
NESTED
|
<A HREF=
"#field_summary">FIELD
</A> |
<A HREF=
"#constructor_summary">CONSTR
</A> |
<A HREF=
"#method_summary">METHOD
</A></FONT></TD>
2498 <TD VALIGN=
"top" CLASS=
"NavBarCell3"><FONT SIZE=
"-2">
2499 DETAIL:
<A HREF=
"#field_detail">FIELD
</A> |
<A HREF=
"#constructor_detail">CONSTR
</A> |
<A HREF=
"#method_detail">METHOD
</A></FONT></TD>
2502 <A NAME=
"skip-navbar_bottom"></A>
2503 <!-- ======== END OF BOTTOM NAVBAR ======= -->
2506 Copyright ©
2001-
2008 <a href=
"http://www.apache.org/">The Apache Software Foundation
</a>. All Rights Reserved.