ive been looking at the icommand source code and this is what ive come up with so far:
- Code: Select all
public static String programName = "Main.nxj" ;
public void startProgram() {
//Create byte array with Direct command and system command byteArray
byte [] request = {(byte)0x80, (byte)0x81};
request = appendString(request, programName);
int LSB = request.length;
int MSB = request.length >>> 8;
try {
// Send length of packet:
System.out.println("Starting program");
outputStream.flush();
outputStream.write((byte) LSB);
outputStream.write((byte) MSB);
outputStream.write(request);
outputStream.flush();
} catch (IOException e) {
System.err.println(e.getMessage());
e.printStackTrace();
}
}
Im trying to run Main.nxj which is already stored on the brick.
When it runs the little icon in the top right of the screen moves horizontally like when uploading a program but then nothing happens
any help?
ps when i run it with another file name that file name appears in the file system in the menu dont know if thats any indication of anyhting?
THanks
Ben
________
easy vape vaporizer