Sei sulla pagina 1di 3

Java tutorial for beginners | freejavaguide.

comJava tutorial for beginners Introduction Free Java Guide Programming Tutorials History of Java Free JAVA Tutorials SCJP Notes 1 SCJP Notes 2 SCJP Notes 3 SCJP Notes 4 SCJP Notes 5 SCJP Notes 6 SCJP Notes 7 SCJP Notes 8 Java Test JDBC Program Tutorial Java Swing Java Source Code Java Applet Java Servlet JavaServer Pages Criticism of Java SQL Tutorial PLSQL Tutorial PLSQL Examples HTML Tutorial What is XML? XML Tutorial Job Interview Questions Java Interview SQL Interview XML Interview

HTML Interview Partner websites Bird Watching Haryana Online Asia Newscast North India Online These tutorials will introduce you to Java programming Language. You'll compile and run your very own Java application, using Sun's JDK. It is extremely easy to learn java programming skills, and in these parts, you'll learn how to write, compile, and run Java applications. Before you can develop corejava applications, you'll need to download the Java Development Kit (JDK).

PART-1 Java Hello World Program Java Comments Java Data and Variables Java Command Line Arguments PART-2 Java Arithmetic Operators Java Assignment Operators Java Increment and Decrement Operators Java Relational Operators Java Boolean Operators Java Conditional Operators PART-3 Java If-else Statement Java Loops (while, do-while and for loops) Java Arithmetic expressions PART-4 Methods Arrays Classes and Objects Interfaces PART-5 Catching Exceptions File I/O and Streams How to make executable jar files in JDK? JAVA SOURCE CODE How to Install Java These instructions are to help you download and install Java on your personal computer. You must install Java before installing Eclipse, and you will need both. 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. Copyright 2006-2009 Free Java Guide & Tutorials. All Rights Reserved.

Potrebbero piacerti anche