Tuesday, September 1, 2009

Getting started with java

Hi friends...
Here i tried to write whatever i came across in java if u guys wanna start learning java and J2EE then this might help u little bit. I'll try to add more in coming days. so here i go.....


1) Java
a) Software Required:     
“jdk-6-windows-i586.exe”
In the path “http://java.sun.com/javase/downloads/index.jsp”
b) Steps for Installing Java Tool:
·         Run the “jdk-6-windows-i586.exe”, it steps through to complete the installation.
c) Setting up environment variables:
Path:  For example If the “jdk” is installed in “C” drive then the path will be
C:\Program Files\Java\jdk1.6.0\bin”
Java_Home:

 
  
  
 
         Classpath: While setting the classpath we need to mention the paths of both “bin” and “lib” folders locations separated by semicolon (“;”).

  
  
  
 



2) Development Environment:
a) Software Required:
·         Eclipse 3.5
b) Steps for installing Eclipse:
·         Copy the file “eclipse-jee-galileo-win32.zip” into one of the directory of your hard drive.
·         Extract the copied file
·         Run the file “eclipse.exe

NOTE: Eclipse 3.5 is 162MB software.
c) Getting started with Eclipse:
For Example:
·         How to create a new java project in eclipse?
 
 
 How to create a "Package" ?
 
  
Steps to create new Class..
  
  
Executing java application: 



No comments:

Post a Comment