Last updated
Last updated
We hope you learn how to use TotalCross Runtime and Process implementations. See more about:
Java 7
Java 8
These implementations work only for Linux platforms
Can compile C ++ applications and finish Get Started:
Use external codes with Totalcross:
Step 1: create a blank project based in HelloWorld
of VS Code plugin (we named it RunningCpp
)
Step 2: create an I/O sample in C++, in our case we did:
It's a simple application to get an I/O input and shortly thereafter return it as output.
Step 3: compile (something like this):
Step 4: inside initUI
method at RunningCpp
class, create a label to show the results:
Step 5: create a child process:
Step 6: output to the target program:
Step 7: read the C++ program output as input to TotalCross application
Step 8: run TotalCross: Package
with VS Code plugin or run mvn package
in your terminal.
Step 9: copy C++ binary to target folder (something like):
Step 10: run your program!!!
See our article about how to run RS232 protocol. See the full code:
Java 7
Java 8