Package com.logicaldoc.util
Class SystemUtil
java.lang.Object
com.logicaldoc.util.SystemUtil
Utility methods tpo get informations from the system
- Since:
- 7.7.2
- Author:
- Marco Meschieri - LogicalDOC
-
Field Summary
-
Constructor Summary
-
Method Summary
-
Field Details
-
SUN_JAVA_COMMAND
- See Also:
-
-
Constructor Details
-
SystemUtil
public SystemUtil()
-
-
Method Details
-
main
-
printEnvironment
-
printStackTrace
-
printSystemEnvironment
-
printJavaEnvironment
-
isWindows
public static boolean isWindows() -
isMac
public static boolean isMac() -
isUnix
public static boolean isUnix() -
isSolaris
public static boolean isSolaris() -
getOS
-
restartApplication
Restarts the current Java application- Parameters:
runBeforeRestart
- some custom code to be run before restarting- Throws:
IOException
- raised if the application cannot be restarted
-