# Java API for Using an Embedded Spotfire Enterprise Runtime for R Engine

The class `com.tibco.terr.TerrJava` contains a set of static methods that a Java application can call to start an embedded TERR engine, send expressions to be evaluated, add hooks for text input and output, and interrupt a running computation.

You can find the class `com.tibco.terr.TerrJava` in TERR_HOME/library/terrJava/java/terrJava.jar. When you compile Java application code using these APIs, you must have the file terrJava.jar on the Java class path.

The reference for the static methods is in the javadoc documentation, available in the file TERR_HOME/library/terrJava/doc/javadoc/index.html.