Posts

Writing your First Java Program in Eclipse

Launch Eclipse Launch Eclipse by running " eclipse.exe " from the Eclipse installed directory. Choose an appropriate directory for your  workspace , i.e., where you would like to save your files (e.g.,  d:\myproject\eclipse  for Windows). If the "Welcome" screen shows up, close it by clicking the "cross" button next to the "Welcome" title. Create a new Java Project Choose "File" menu ⇒ "New" ⇒ "Java project". The "New Java Project" dialog pops up. In "Project name", enter " FirstProject ". Check "Use default location". In "JRE", select "Use default JRE (currently 'JDK1.8.xx')". But make sure that your JDK is 1.5 and above. In "Project Layout", check "Use project folder as root for sources and class files" Push "Finish" button. Write a Hello-world Java Program In the "Package Explorer" (l...

Eclipse Installation

Image
Install JDK Download JDK Goto Java SE download site @  http://www.oracle.com/technetwork/java/javase/downloads/index.html . Under "Java Platform, Standard Edition" ⇒ "Java SE 8u{xx}", where {xx} is the latest update number ⇒ Click the "JDK Download" button. Look for the latest "Java SE Development Kit 8u{xx}" ⇒ Check "Accept License Agreement". Choose the JDK for your operating system, e.g., "Windows x64" (for 64-bit Windows OS) or "Windows x86" (for 32-bit Windows OS). You can check whether your Windows OS is 32-bit or 64-bit via "Control Panel" ⇒ (Optional) System and Security ⇒ System ⇒ Under "System Type". Install JDK and JRE Run the downloaded installer (e.g., " jdk-8u{xx}-windows-x64.exe "), which installs both the JDK and JRE.  By default, the JDK will be installed in directory " C:\Program Files\Java\jdk1.8.0_ xx ", where  xx  denotes the upgrade number; ...

Web Application Structure

Image