Compile and run

To compile and run your Sparksee application you must take into account your development framework.

Java

In the Installation chapter we have seen how to download and unpack the java package to get the sparkseejava.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 sparkseejava.jar file to the classpath. So, you can compile and run the HelloSparksee application with these simple commands:

$ javac -cp sparkseejava.jar HelloSparksee.java
$ java -cp sparkseejava.jar;. HelloSparksee 

With Maven

If you use Apache Maven, then it is even easier. Sparksee is in the maven central repository, adding the dependency to the correct Sparksee version into your “pom.xml” file should be enough:

<dependency>
  <groupId>com.sparsity</groupId>
  <artifactId>sparkseejava</artifactId>
  <version>5.0.0</version>
</dependency> 

With Android

The procedure to use Sparkseejava in Android is the same for Eclipse and Android Studio, but We have separated some steps to better explain the procedure in each environment.

Using Eclipse

Android Studio

Back to Index