Friday, March 15, 2013

Behind the scene of First Program

| 5 comments
Running a java program give the output on console.but to analysis the detail of java program ,need to debug using Breakpoint,on which line we  have to pause the execution of running java program,just simply Toggle Breakpoint on that line .Right Click on corresponding line as show below

   Here Toggle Breakpoint on Main function and then click on debug  button as shown below
  
   Chosse yes for Debug perspective
               
Overview of Debug perspective .It Contain the debug Section where current thread on execution is shown
and variable section show the stack of current java program (local variable).Debug current Instruction pointer indicate that upto which line processing has been done and on which line it point has to be done

press f6 button to go on next line and it will show the output on console section .f6 is used to step over.

abstraction is naked in next post ,this post just give idea that how to run the debug perspective.

Tuesday, March 12, 2013

Setup System to run java programs

| 0 comments
To run a java program we first need a jdk install on our machine,So download Jdk and Eclipse Juno from  http://www.eclipse.org/downloads/packages/release/indigo/sr2



Chosse your downloading option according to operating system.If your operating system is 32-bit the choose operating system 32 Bit else choose operating system 64 Bit.After Download just Extract the eclipse-jee-indigo-SR2-winXX-XX_.XX.zip.No need of installation




Click on the eclipse.exe 
After that it required the workspace where all the project will be save .Give path to the WorkSpace

 Click on Java Project


Next->Give Project name

 Click Finish and make it default perspective

Right Click on src >new>class


Give Class Name ,Check the method Stub to public staic void main(String[] args) and Finish

Create the first basic Program  and click on arrowed button to run the program

Output display in Console.Now you successfully create your first program.In next post discussion on the what happen when we run the Program behind the scene.