Linux Arm

How to create an app and deploy to linux arm (RPI and Toradex)

To create your project, just follow the same step as Getting started, except that instead of pointing to the SDK version that is in Maven, you point to your machine.

See the example below:

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns=""

In line 55 the parameter set is -linux_arm, because this is the command needed to generate the file that will go to RPI and Toradex. You can see the other commands in the Deploy session.

To better understand, we recorded a video tutorial showing how it works:

Sample code used in video:

Hello World Application:

package com.totalcross.sample;
import totalcross.TotalCrossApplication;
public class HelloTCApplication {
public static void main(String[] args) {;

Hello World (Main class that extends from MainWindow):

public class HelloTC extends MainWindow {
public void initUI() {
Label label = new Label("Hello World");
add(label,CENTER,TOP + 50);
Button button = new Button("Click Here");
button.addPressListener(new PressListener() {
public void controlPressed(ControlEvent controlEvent) {
label.setText("Hello Totalcross");
add(button, SAME, CENTER);