... | ... | @@ -25,20 +25,7 @@ In a project directory of your choosing, create the following subdirectory struc |
|
|
└── java
|
|
|
└── hello
|
|
|
```
|
|
|
Within the `src/main/java/hello` directory, you can create any Java classes you want. To maintain consistency with the rest of this guide, create these three classes: `HelloWorldApplication.java`, `HelloWorld.java` and `Greeter.java`.
|
|
|
|
|
|
`src/main/java/hello/HelloWorldApplication.java`
|
|
|
|
|
|
```java
|
|
|
package hello;
|
|
|
|
|
|
public class HelloWorldApplication{
|
|
|
public static void main(String[] args) {
|
|
|
TotalCrossApplication.run(HelloWorld.class,
|
|
|
new String[]{"/r", "ACTIVATION_KEY","/scr","android","/fontsize","20", "/fingertouch"});
|
|
|
}
|
|
|
}
|
|
|
```
|
|
|
Within the `src/main/java/hello` directory, you can create any Java classes you want. To maintain consistency with the rest of this guide, create these three classes: `HelloWorld.java`, `Greeter.java` and `HelloWorldApplication.java`.
|
|
|
|
|
|
`src/main/java/hello/HelloWorld.java`
|
|
|
|
... | ... | @@ -57,6 +44,7 @@ public class HelloWorld extends MainWindow { |
|
|
```
|
|
|
|
|
|
`src/main/java/hello/Greeter.java`
|
|
|
|
|
|
```java
|
|
|
package hello;
|
|
|
|
... | ... | @@ -68,6 +56,20 @@ public class Greeter { |
|
|
}
|
|
|
}
|
|
|
```
|
|
|
|
|
|
`src/main/java/hello/HelloWorldApplication.java`
|
|
|
|
|
|
```java
|
|
|
package hello;
|
|
|
|
|
|
public class HelloWorldApplication{
|
|
|
public static void main(String[] args) {
|
|
|
TotalCrossApplication.run(HelloWorld.class,
|
|
|
new String[]{"/r", "ACTIVATION_KEY","/scr","android","/fontsize","20", "/fingertouch"});
|
|
|
}
|
|
|
}
|
|
|
```
|
|
|
|
|
|
Now that you have a project that is ready to be built with Maven, the next step is to install Maven.
|
|
|
|
|
|
Maven is downloadable as a zip file at http://maven.apache.org/download.cgi. Only the binaries are required, so look for the link to apache-maven-_{version}_-bin.zip or apache-maven-_{version}_-bin.tar.gz.
|
... | ... | |