LibraryLink ToToggle FramesPrintFeedback

Running a Standalone Application

You configure your application's environment by adding 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.

Assuming that you have coded a main() method, as described in Defining a Standalone Main Method, you can run your application using Sun's J2SE interpreter with the following command:

java org.apache.camel.example.jmstofile.CamelJmsToFileExample

If you are developing the application using a Java IDE (for example, Eclipse or IntelliJ), you can typically run your application by selecting the CamelJmsToFileExample class and directing the IDE to run the class. Normally, an IDE automatically chooses the static main() method as the entry point to run the class.