 leJOS NXJ is a high level open source language based on Java that uses custom firmware developed by the leJOS team.To be able to write in C (programming language)/C++, nxtOSEK can be used, but that requires custom firmware too.MATLAB and Simulink code for NXT programming is freely available.