your location in the java file should be: org/odata4j/tomcat/ExampleProducerFactory.java then you can do at the command line: javac org/odata4j/tomcat/ExampleProducerFactory.java which will create a compiled class file: org/odata4j/tomcat/ExampleProducerFactory.class put this in the WEB-INF/classes/org/odata4j/tomcat/ExampleProducerFactory.class
but even better, create a "Dynamic Web Project" in eclipse that takes care of everything for you (just use the defaults). the end result is a .war file that you can create using the menu option: file-> export
such a .war file can be deployed in any web container such as tomcat. find the autodeploy directory in your tomcat or use the tomcat management console to deploy it.
source share