To compile and run your DEX application you must take into account your development framework.
In the Installation chapter we have seen how to download and unpack the java package to get the dexjava.jar file. You need to include that jar in you development environment project.
If you don't use an IDE, you just need to add the dexjava.jar file to the classpath. So, you can compile and run the HelloDEX application with these simple commands:
$ javac -cp dexjava.jar HelloDex.java $ java -cp dexjava.jar;. HelloDex
If you use Apache Maven, then it is even easier. DEX is in the maven central repository, adding the dependency to the correct DEX version into your "pom.xml" file should be enough:
<dependency> <groupId>com.sparsity</groupId> <artifactId>dexjava</artifactId> <version>4.6.0</version> </dependency>