public class JdkUtils extends Object
| Constructor and Description |
|---|
JdkUtils() |
| Modifier and Type | Method and Description |
|---|---|
File |
getToolsJar()
Returns the file containing the JDK tools (such as the compiler).
|
File |
getToolsJar(String javaHome)
Returns the file containing the JDK tools (such as the compiler) for the specified Java
installation.
|
boolean |
isOSX()
Is the user running on a Macintosh OS X system? Heuristic derived from Apple Tech Note
2042.
|
void |
sleep(long ms)
Pauses the current thread for the specified amount.
|
public File getToolsJar() throws FileNotFoundException
FileNotFoundException - If the tools.jar file could not be foundpublic File getToolsJar(String javaHome)
tools.jar file
on that platform (everything is included in classes.jar).javaHome - The installation directory of the JRE/JDK for which to locate the JDK tools,
must not be null.tools.jar file, never
null.public boolean isOSX()
public void sleep(long ms)
ms - The time to sleep in millisecondsCopyright © 2004-2013 Codehaus. All Rights Reserved.