|
Home > Online Product Documentation > Table of Contents > Compiling Generated Java Code Compiling Generated Java Code
The deployer automatically puts the JAR files required to compile the generated Java code in the Stylus Studio project classpath. JAR files are in the
How to Compile and Run Java Code in Stylus StudioIn order to compile Java code, the JDK must be installed on your machine and configured in Stylus Studio. Click Tools > Options > Java Virtual Machine to configure the JDK.
To compile Java code in Stylus Studio:
1. Make sure the Java Editor is the active window.
2. Click the
Compile button (
Alternatives: Press Ctrl + F7, or select Java > Compile from the Stylus Studio menu. Stylus Studio compiles the Java code. Results are displayed in the Output window. Troubleshooting Compiling Inside Stylus StudioIf you have trouble compiling Java code in Stylus Studio
1. Remove the existing Stylus Studio project classpaths from the
Project Classpath dialog box (select
Project > Set Classpath from the menu).
2. Generate code again, which causes Stylus Studio to respecify the project classpaths.
Compiling Java Code Outside Stylus Studio
If you want to compile the Java code generated for your XML pipeline outside Stylus Studio, you will need to manually set your classpath to include the JAR files listed at the top of the generated
Running Java Code in Stylus StudioTo run Java code in Stylus Studio:
1. Make sure the Java Editor is the active window.
2. Click the
Run button (
Alternatives: Press Ctrl + F5, or select Java > Run from the Stylus Studio menu. If the code has not been compiled, Stylus Studio displays a prompt asking if you want to compile the code now. Otherwise, Stylus Studio runs the Java code. Results are displayed in the Output window. |
XML Well-Formedness Checker & XML Indenter
Tidy up your XML documents with powerful integrated XML editing utilities including a single-click XML formatter, pretty printer, XML indenter and XML well formedness checker.
XML Programming
Simplify XML Programming with Stylus Studio's XML Pipeline, a powerful tool for modeling, programming, debugging and deploying complete XML programs.
Java IDE
Edit, compile and debug and generate Java code with Stylus Studio's Java Integrated Development Environment (IDE). Supports popular Java XML processing components including Apache Xalan, Apache Axis, Apache Xerces, Saxon and more.
Sun Multi-Schema XML Validator (MSV)
Learn how to integrate the Multi Schema Validator (MSV) into Stylus Studio as one of the Custom Validation Engines. It will work for files with a DTD, a single XSD, or both a DTD and a single XSD.