Setting a Project Classpath

You can set a classpath at the project level. When Stylus Studio compiles or runs Java code, it always checks the project for a locally defined classpath first. If a project classpath has not been defined, Stylus Studio uses the classpath defined Java Virtual Machine page of the Options. dialog box.

Specifying Multiple Classpaths

You use the Project Classpath dialog box to specify one or more classpaths for a project. If multiple classpaths have been defined, Stylus Studio searches them in the order in which they are listed in the Project Classpath dialog box. You can use the up and down arrows at the top of this dialog box to change the classpath order.

Figure 101. Use Arrow Buttons to Change the Order of Classpaths

How to Set a Project Classpath

To set a classpath for a project:
1. Open the Project Window if it is not already displayed.
2. Right-click the project node.

The project shortcut menu appears.

Alternative: Select Project > Set Classpath from the Stylus Studio menu.

3. Select Set Project Classpath.

The Project Classpath dialog box appears.

Figure 102. Project Classpath Dialog Box

4. Click the browse folders ( ) button.

A new entry field appears in the Locations list box. Two buttons appear to the right of the entry field.

5. To add a JAR file to the classpath, click the browse jar files button ( ).

Stylus Studio displays the Browse for Jar Files dialog box.

Figure 103. Browse for Jar Files Dialog Box

To add a folder to the classpath, click the browse folders button ( ).

Stylus Studio displays the Browse for Folder dialog box.

Figure 104. Browse for Folder Dialog Box

6. When you have located the JAR file or folder you want to add to the classpath, click OK.
7. Optionally, add other JAR files or folders to the classpath by repeating step 5 and step 6.

XML-DEV Discussion Forum

XML-DEV is a leading technical forum for XML discussion and a valuable free XML learning resource. Subscribe to the XML-DEV email discussion forum today to help further your XML education.

XML Differencing

Stylus Studio's integrated XML Differencing tool visually computes and analyzes any changes made to files or folders in a highly configurable, XML-aware fashion. Display text or tree views, with changes displayed in a merged view or side-by-side!

Web Service Testing Tools

The Stylus Studio Web Service Tester allows you to easily locate, build references to, and test Web services for XML applications based on WSDL, SOAP, and UDDI standard Web service technologies.

Automotive Companies That Use Stylus Studio

Top automotive companies get their wheels spinning with Stylus Studio 2006. Come see which companies put Stylus Studio in their drivers seat today!

Stylus Most Wanted

 
Free Stylus Studio XML Training:
W3C Member