background preloader

Mule ESB - Open Source ESB

Mule ESB - Open Source ESB

EJB JSE JEE XML Java Object to XML Apache Ant XStream Ant Tutorial: Hello World This document provides a step by step tutorial for starting java programming with Apache Ant. It does not contain deeper knowledge about Java or Ant. This tutorial has the goal to let you see, how to do the easiest steps in Ant. Content Preparing the project We want to separate the source from the generated files, so our java source files will be in src folder. We have to create only the src directory. md src The following simple Java class just prints a fixed message out to STDOUT, so just write this code into src\oata\HelloWorld.java. package oata; public class HelloWorld { public static void main(String[] args) { System.out.println("Hello World"); } } Now just try to compile and run that: md build\classes javac -sourcepath src -d build\classes src\oata\HelloWorld.java java -cp build\classes oata.HelloWorld which will result in Hello World Creating a jar-file is not very difficult. Note: Do not have blanks around the >-sign in the echo Main-Class instruction because it would falsify it! ...

XSLT SOAP

Related: