import lejos.hardware.ev3.EV3;
import lejos.hardware.motor.NXTMotor;
import lejos.hardware.port.AnalogPort;
import lejos.hardware.sensor.AccelMindSensor;
import lejos.hardware.sensor.EV3IRSensor;
import lejos.hardware.sensor.LightSensor;
import lejos.remote.ev3.RemoteAnalogPort;
import lejos.remote.ev3.RemoteEV3;
import lejos.utility.Delay;


public class RemoteTest {
	public static void main(String[] args) throws Exception {
		EV3 ev3 = new RemoteEV3("192.168.0.9");
		
		System.out.println("Battery voltage: " + ev3.getBattery().getVoltage());

		AnalogPort port = ev3.getPort("S1").open(RemoteAnalogPort.class);
		LightSensor light = new LightSensor(port);
		
		System.out.println("Light value is " + light.getLightValue());
		
		AccelMindSensor accel = new AccelMindSensor(ev3.getPort("S2"));
		
		EV3IRSensor ir = new EV3IRSensor(ev3.getPort("S3"));
		
		System.out.println("X Acceleration is " + accel.getXAccel());
		
		System.out.println("Distance  is " + ir.getRange());
		
		NXTMotor m = new NXTMotor(ev3.getPort("B"));

		m.setPower(50);
		
		m.forward();
		Delay.msDelay(5000);
		
		System.out.println("Motor stop");
		m.stop();
		
		port.close();
		
		accel.close();
		
		ir.close();
		
		m.close();
		
	}
}

@@ -218,16 +218,19 @@
 .sensor.
+NXT
 LightSen
@@ -617,16 +617,19 @@
 ass);%0A%09%09
+NXT
 LightSen
@@ -644,16 +644,19 @@
 t = new 
+NXT
 LightSen
@@ -663,32 +663,34 @@
 sor(port);%0A%09%09%0A%09%09
+//
 System.out.print

Comment out broken code