Class PlatformUtil


  • public class PlatformUtil
    extends java.lang.Object
    Platform-specific utility functions.
    • Constructor Summary

      Constructors 
      Constructor Description
      PlatformUtil()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String[] getBootClassPathJars()
      get the jars in the boot classpath.
      static boolean onIKVM()
      are we running on IKVM? see http://www.ikvm.net
      static boolean onLinux()
      are we running on Linux?
      static boolean onMacOSX()
      are we running on Mac OS X?
      static boolean onWindows()
      are we running on Windows?
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PlatformUtil

        public PlatformUtil()
    • Method Detail

      • onMacOSX

        public static boolean onMacOSX()
        are we running on Mac OS X?
      • onLinux

        public static boolean onLinux()
        are we running on Linux?
      • onWindows

        public static boolean onWindows()
        are we running on Windows?
      • onIKVM

        public static boolean onIKVM()
        are we running on IKVM? see http://www.ikvm.net
      • getBootClassPathJars

        public static java.lang.String[] getBootClassPathJars()
        get the jars in the boot classpath. TODO test on more JVMs
        Throws:
        java.lang.IllegalStateException - if boot classpath cannot be found