Publishing Engine Programmer's Guide > The Arbortext Publishing Engine Sub-Process > Writing Arbortext PE Applications in Java > Sample Java Arbortext PE Application
  
Sample Java Arbortext PE Application
Basic sample applications are included in the PE_HOME\e3\samples subdirectory, one each for Java, JavaScript,VBScript, and ACL. These samples applications reside on the Arbortext PE server and are loaded into an Arbortext PE sub-process when it starts. The source code for the Java sample application is located in:
PE_HOME\e3\samples\java\com\arbortext\e3\testapp\E3AppTest.java
PE_HOME\e3\samples\java\com\arbortext\e3\testapp\E3Sample2.java
The E3AppTest sample is compiled internally when you test it from the Arbortext Publishing Engine index HTML page, so you don't need to compile it beforehand. The sample application reports information about the Arbortext Publishing Engine environment. Document manipulation, such as opening, closing, and changing content, is accomplished using the AOM DOM interfaces. For complete information about the Arbortext Publishing Engine Testing HTML page, see Monitoring and Reporting Using a Web Browser. For information on the AOM, refer to the Programmer's Reference.
For information on E3Sample2.java, see Sample Applications.