nl.knowledgeplaza.util
Class SystemUtil

java.lang.Object
  extended by nl.knowledgeplaza.util.SystemUtil

public class SystemUtil
extends Object


Constructor Summary
SystemUtil()
           
 
Method Summary
static boolean isLinux()
          check if the current system is linux
static boolean isMac()
          check if the current system is a macintosh
static boolean isWindows()
          check if the current system is windows
static void setJavaLibraryPath(String value)
          Changing the system property after Java is started doesn’t have any effect, since the property is evaluated very early and cached.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SystemUtil

public SystemUtil()
Method Detail

isMac

public static boolean isMac()
check if the current system is a macintosh


isWindows

public static boolean isWindows()
check if the current system is windows


isLinux

public static boolean isLinux()
check if the current system is linux


setJavaLibraryPath

public static void setJavaLibraryPath(String value)
Changing the system property after Java is started doesn’t have any effect, since the property is evaluated very early and cached. But the guys over at jdic discovered a way how to work around it. It is a little bit dirty – but hey, those hacks are the reason we all love Java… http://blog.cedarsoft.com/2010/11/setting-java-library-path-programmatically/

Parameters:
value -


Copyright © 2011 KnowledgePlaza. All Rights Reserved.