Posts

Showing posts with the label hello world program in java

GWT auto generated application with source

Image
While creating the GWT application GWT plugin will generate the "GWT Hello" auto generated source. That will gives you an idea about end-to-end GWT application. If you are new to GWT better first read about GWT and GWT plugin installation. In this page I am going to explain about the auto generated source with the source code. While creating the project you have to select the generate automatic application source in the options. After creating the project, project folder structure looks like below, In normal Java/JEE applications for UI we have used JSP's mostly. But, in GWT UI and Server source it should be in Java file only. The EntryPoint RootPanel loading will be happened by using an HTML/JSP file(Only one per module or project). The GWT plugin under the project package it auto generate 3 other directories which contains the Client, Server and Shared files. Client directory contains the EntryPoint class along with the Service and ServiceAsync files. S

Create, compile and run java sample program

When we are starting learning any of the new technology, we  usually  starts with a sample program called Hello world. In the current post I am going to explain how to create sample hello world program and execute it in java. As we are in initial stage of learning and practicing, initially will use notepad and command prompt to create program and execute and then will look how to use IDE(Eclipse). I am using notepad to write the program code and using command prompt to execute sample java program. My sample java program name as Hello.java.  Create Hello.java program: Open the Notepad  --->  File  --->  New  --->  write the below code, 1 2 3 4 5 6 7 8 9 public class Hello { public static void main ( String [] args ) { System . out . println ( "Hello! How are you?" ); } } Save the file with the name as Hello.java. So, program creations completed and then next process is to compile our Hello.java program through c