Show TOC Start of Content Area

Procedure documentation Setting Classpath Variables  Locate the document in its SAP Library structure

Use

A classpath variable is a name-path pair.

The path of the classpath variable shows:

·        The current path to the directory from which several classpaths of the J2EE application start or

·        The directory which contains resources used, by the application.

The name of the classpath variable is used in the Project Options and Classpath Management windows for a fast reference to the classpath variable.

The classpath variables are useful for projects that you move from one location to another. In this case, you should only change the path of the classpath variable with the new location.

Procedure

...

       1.      Choose Project Options.The Project Optionswindow appears.

       2.      Choose the Classpath tab and choose Change.The Classpath Management window appears.

       3.      Choose Variables. The Classpath Variables window appears.

       4.      To add a new variable:

                                                  i.       Set the name and path for the variable in the Variable Name and Variable Pathfields. You can set arbitrary Variable Name. Select a Variable Path from the file system.

                                                ii.       Choose Add.

Caution

If you do not use the Addbutton, but directly click on the OK button, the classpath variable will not be set.

       5.      To remove a variable from the list, select it and click the Removebutton.

       6.      To close the Classpath Management window and confirm your changes, click the OK button.

Example

If you set var1 in Variable Name column and C:\develop in Variable Path column, the C:\develop\new project Java classpath folder will appear in the Classpath Management window as {var1}\new.

 

 

End of Content Area