| |
Ten
steps to become a TotalCross master: |
| |
1. First of all, read
the license here.
Once you use TotalCross, you're automatically agreeing with the license.. |
| |
2. TotalCross uses Java tools,
what means that you must know java basics to be able
to use it. You must know how to use the java.lang and
java.util packages, and how to compile and run applications.
If you do not know Java, start this free tutorial, and follow these topics:
- Your first cup of Java
- Getting started
- Learning the Java Language
- Essential Java classes. |
| |
3. Sign up at the site
and download the SDK. For better
compatibility, unzip the folder at the root, so it starts
as: "/TotalCrossSDK/...". |
| |
4. Make a good read of
the TotalCross Companion.pdf, located in the TotalCrossSDK/docs folder. It contains important information
regarding the platform.
|
| |
5. The most important
clue: read the javadocs, located in folder TotalCrossSDK/docs/html/index.html.
Add it to your browser shortcuts.
The most important packages are:
totalcross.lang (which includes only a subset
of the standard java.lang), totalcross.io, totalcross.ui,
totalcross.util and totalcross.sys.
This is very important! If you take an hour to just
look at the classes and methods that exists in these
packages, you will save hours of programming headaches! |
| |
6. TotalCross does not
contains the packages java.util, java.io, awt, swing,
etc. It contains only the classes included in the javadocs!
The deployer will show an error if you try to use a class or method
that does not belong to the SDK.
|
| |
7. Take a look at the
samples provided in the SDK. They are there to help
you get started. |
| |
8. To send your program
to the PDA, you must use tc.Deploy. Read about
its possible parameters in the TotalCross Companion.pdf. You
can use the ANT build scripts available in the SDK,
which makes everything easier. If you insist on using
the command line, please don't forget to add the /TotalCrossSDK/dist/tc.jar
file to the classpath, which contains all classes needed to develop at desktop.
|
| |
9. If you have questions,
take a look at the forums, its a great place to share your TotalCross experience.
Be sure to search old posts before sending new ones. If you need fast answers for tough problems,
you can also purchase out support plans. |
| |
10. Read the documentation, re-read the documentation. Ah, and don't forget to read the documentation!
|
| |
By following these steps, you'll be able
to develop great TotalCross applications without much
stress. |