Friday, 18 November 2011

What is Spring?

Spring is great framework for development of Enterprise grade applications. Spring is a light-weight framework for the development of enterprise-ready applications. Spring can be used to configure declarative transaction management, remote access to your logic using RMI or web services, mailing facilities and various options in persisting your data to a database. Spring framework can be used in modular fashion, it allows to use in parts and leave the other components which is not required by the application.

Feature Of Spring

Architecture Of Spring 

The Complete Spring Tutorial

In this tutorial I will show you how you can integrate struts, spring and hibernate in your web application.
Spring framework is developed to simplify the developed of enterprise applications in Java technologies. It is an open source framework begin developed by Spring source company. Spring framework is also available for .NET framework (Spring .NET).
The Spring is light weight, non-invasive IoC Container and AOP framework. It provides support for JPA, Hibernate, Web services, Schedulers, Ajax, Struts, JSF and many other frameworks. The Spring MVC components can be used to developed MVC based web applications. Spring framework provides many features that makes the development of enterprise application easy work.
In this Spring tutorial series we will learn Spring framework with the help of many example codes.

quick learn java programming

Have you ever wanted to master a programming language? Well, you have chosen a language which is considered by most to be the future of programming. This tutorial will give you the basics that will enable you to build powerful programs and applets.

Java is a high-level programming language, or a 3rd generation language. It operates like this: you type in the source code, then a program called a "compiler" transforms it into Java bytecode. Bytecode makes Java architecture neutral, since the computer that runs your program needs an interpreter or a bytecode compiler.
________________________________________
Now to the pre-requisite. "Aller Anfang ist schwer!"

Java Developement Kit (JDK) 20+MB - this includes all of the standard objects and classes to make and run your programs. If you like running programs, download this! This file can be downloaded from the Sun Java Page (http://java.sun.com).

Now to programming, in only four hours to go!

HOUR:1
HOUR:2
HOUR:3
HOUR:4

Java Hello World Program

Our first application will be extremely simple - the obligatory "Hello World". The following is the Hello World Application as written in Java. Type it into a text file or copy it out of your web browser, and save it as a file named HelloWorld.java. This program demonstrates the text output function of the Java programming language by displaying the message "Hello world!". Java compilers expect the filename to match the class name.

View SorceCode

Downloading and Installing Java


Downloading and Installing Java On Windows:

Prevent Errors like --> 'javac' is not recognized as an internal or external command

1. Go to http://java.sun.com and download the latest Version of Jave SDK or any Jace SDK as per your requirement and install on your system.

2. Accept all of the defaults and suggestions, but make sure that the location where Java will be installed is at the top level of your C: drive. Click on "Finish." You should have a directory (folder) named C:\j2sdk1.5.0_04, with subfolders C:\j2sdk1.5.0_04\bin and C:\j2sdk1.5.0_04\lib

4. Modify your system variable called "PATH" (so that programs can find where Java is located).
To do this for Windows 2000 or XP, either right-click on the My Computer icon or select "System" on the control panel. When the window titled "System Properties"appears, choose the tab at the top named "Advanced." Then, click on "Environment Variables." In the bottom window that shows system variables, select "Path" and then click on "Edit..." Add C:\j2sdk1.5.0_04\bin as the first item in the list. Note that all items are separated by a semicolon, with no spaces around the semicolon. You should end up with a path variable that looks something like
C:\j2sdk1.5.0_04\bin;C:\WINNT\system32;C:\WINNT;C:\WINNT\system32\Wbem

For Windows 98 or ME, open the file AUTOEXEC.BAT in Notepad. You should find a line in this file that begins
SET PATH=...
Modify this line to add C:\j2sdk1.5.0_04\bin; immediately after the equals sign.

5. Modify or create a system variable called "CLASSPATH," as follows. In the lower "System Variables" pane choose "New..." and type in Variable Name "CLASSPATH" and value (note that it begins with dot semicolon)
.;C:\j2sdk1.5.0_04\lib

6. To test Java to see if everything is installed properly, open a command window (a DOS window) and type the command "javac" The result should be information about the Usage of javac and its options. If you get a result that "'javac' is not recognized as an internal or external command, operable program or batch file" then there is a problem and Java will not work correctly.

Thursday, 17 November 2011

What Can Java Technology Do?

The general-purpose, high-level Java programming language is a powerful software platform. Every full implementation of the Java platform gives you the following features:
•    Development Tools: The development tools provide everything you'll need for compiling, running, monitoring, debugging, and documenting your applications. As a new developer, the main tools you'll be using are the javaccompiler, the java launcher, and the javadoc documentation tool



more

The Java Programming Language

The Java programming language is a high-level language that can be characterized by all of the following buzzwords:
•    Simple
•    Object oriented
•    Distributed
•    Multithreaded
•    Dynamic    •    Architecture neutral
•    Portable
•    High performance
•    Robust
•    Secure
Each of the preceding buzzwords is explained in The Java Language Environment , a white paper written by James Gosling and Henry McGilton.
In the Java programming language, all source code is first written in plain text files ending with the .java extension. Those source files are then compiled into .class files by the javac compiler. A .class file does not contain code that is native to your processor; it instead contains bytecodes — the machine language of the Java Virtual Machine1 (Java VM). The java launcher tool then runs your application with an instance of the Java Virtual Machine.

more 

Share

Twitter Delicious Facebook Digg Stumbleupon Favorites More