Java is a programming language. The Java EE Platform provides a runtime environment (also known as JRE or Java Runtime Environment) as well as a development kit (also known as JDK or Java Development Kit) for building applications in Java. There are a few variants of the platform:
For example, you can create a simple Java program MyInteropSample.java using a text editor that prints out the simple message, "This is a simple Java application," as follows: public class MyInteropSample { // define your variables here… public static void main(String args[]) { // you can insert your processing logic here… System.out.println ("Java EE .NET Interoperability Sample"); ... } } This simple Java application has a structure public class <program name> { ...} followed by the variables and processing logic or methods used in the program. The main() method defines the processing logic when the program starts. In this example, the main() method prints out a text message. For more information on getting started with Java, please refer to http://java.sun.com/docs/books/tutorial/index.html. The rest of this book assumes prior knowledge of Java. To compile the Java program, use the command javac as follows: %javac MyInteropSample.java To run the Java application, use the command java as follows: %java MyInteropSample |