Configure your application's CLASSPATH as follows:
Add all of the JAR files in RouterRoot/lib and RouterRoot/lib/optional to your CLASSPATH. This step can be simplified if you use a
general-purpose build tool such as Apache
Maven or Apache Ant to build your
application.
Add the directory containing META-INF/spring/*.xml to your
CLASSPATH.
If you coded a main() method, as described in Defining a Spring Main Method, you can run your application using Sun's J2SE interpreter with the
following command:
java my.package.name.MainIf you are developing the application using a Java IDE (for example, Eclipse
or IntelliJ), you can typically run your application by selecting the
class and directing the IDE to run the class. Normally, an
IDE automatically chooses the static my.package.name.Mainmain() method as the entry point to run
the class.