No need to do anything. Main method is fine. If you want cluster execution,
make sure you use the `ExecutionEnvironment.getEnvironment()`
Am 18.03.2014 10:02 schrieb "twalthr" <notifications@github.com>:

> In
> stratosphere-examples/stratosphere-java-examples/src/main/java/eu/stratosphere/example/java/relational/TPCHQuery10.java:
>
> > + * GROUP BY
> > + *        c_custkey,
> > + *        c_name,
> > + *        c_acctbal,
> > + *        n_name,
> > + *        c_address
> > + *
> > + */
> > +public class TPCHQuery10 {
> > +
> > +	public static void main(String[] args) throws Exception {
> > +		
> > +		String customerPath = (args.length > 0 ? args[0] : TPCHQuery10.class.getResource("/Testdata/customer.tbl").toString());
> > +		String ordersPath =  (args.length > 1 ? args[1] : TPCHQuery10.class.getResource("/Testdata/orders.tbl").toString());
> > +		String lineitemPath =  (args.length > 2 ? args[2] : TPCHQuery10.class.getResource("/Testdata/lineitem.tbl").toString());
> > +		String nationPath =  (args.length > 3 ? args[3] : TPCHQuery10.class.getResource("/Testdata/nation.tbl").toString());		
>
> How can I make a new Java API program ready for distributed execution?
> Currently, the entire code is within the main() method. With the record API
> I had a getPlan() method and returned the plan. How to do that with new API?
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/stratosphere/stratosphere/pull/552/files#r10694697>
> .
>