package org.ingrahamrobotics.robottables.util;

public class Platform {

    private static final Object LOCK = new Object();
    private static boolean ready = false;
    private static boolean onRobot = false;

    public static boolean onRobot() {
        synchronized (LOCK) {
            if (!ready) {
                init();
            }
        }
        return onRobot;
    }

    private static void init() {
        try {
            Class.forName("java.util.ArrayList");
            onRobot = false;
        } catch (ClassNotFoundException ex) {
            onRobot = true;
        }
//        // One of these (or a combination thereof) will let me figure out if we're running on the robot
//        System.getProperty("java.version");
//        System.getProperty("java.vendor");
//        System.getProperty("java.compiler");
//        System.getProperty("os.name");
//        onRobot = false;

        ready = true;
    }
}

@@ -424,176 +424,24 @@
     
-try %7B%0A            Class.forName(%22java.util.ArrayList%22);%0A            onRobot = false;%0A        %7D catch (ClassNotFoundException ex) %7B%0A            onRobot = true;%0A        %7D
+onRobot = false;
 %0A// 
@@ -745,25 +745,24 @@
 ot = false;%0A
-%0A
         read

Remove temporary code to tell if networktables is running on the robot, as it no longer works with the RoboRIO.