Java Tutorial – Page 1

J ava Tutorial ( Originally written in 2000 – at http://www.geocities.com/james_smith73 )
Introduction to Java from the Scatch

This is a part of new coming series of Technical Articles about Java and Other Less heard Open source Technologies like PHP, MySQL and Linux etc. Even though the Target audiences are Programmers we would like to encourage Non Technical friends too to gain interest towards programming, and be in a situation where they can write a small jsp or Swing Applications to maintain their house hold expenses database or to keep track of their Audio and Video CD’s data in their home, Since we all know Mathematics programming is not a difficult thing to understand or implement.

I would not try to go into History of Java as I am not a story teller, to put it short Java is a programming Language most popular in countries like USA, India and Japan where as its nearest rival ASP is losing ground in terms of popularity and Microsoft polices, one language which took advantage of fight for popularity between Sun Micro System and Microsoft was PHP written by 3 guys Zeev Suraski, Andrew Gutman, Rosmos Leadorf which is highly rated in countries like UK and Canada, PHP ‘s growth statistics can be seen here http://www.php.net/usage.php and Java’s Official site is at http://java.sun.com/

If we need to Master Java Technologies and appreciate its beauty then its always a good point to “start from scratch” .Our First Article is about Introduction to Java from a programmer’s perspective to Run Java you require Java 2 SDK [Software Development Kit] which is available in my shared folder msrao/sharedfolder/j2sdk-1_3_1_09-windows-i586.exe or u can download from this location http://java.sun.com/webapps/download/DisplayLinks Java Emerged as one the Best programming languages on the web , i am not a professional Book writer not i call myself an author , there may be many spelling and grammer mistakes i am not going to check them either, my aim is to write some notes , which new programmer like to refer , how far i succeed depends upon ur mails and response to me , i consider myself a PHP programmer rather than a JAVA programmer , but i do have some sufficient knowledge about this ever growing internet Langauge , i will be using jdk1.3 as i feel this is the current and stable version , however if u already have jdk1.2.1 and above it will be sufficinet too.

Chapter 1 : Article 1 : Installing JDK 1.3.1
01. Make Directory C:\Softwares in your WINDOWS98 or WINDOWS2000 System
02. Open your DOS prompt type in C:\>java
03. If u do not have previous version of java installed u will get a message saying ‘java’ is not recognised command…. .
04. Make directory C:\>md jdk1.3.1
05. If you have already downloaded j2sdk-1_3_1_09-windows-i586.exe ,
double click on it , Installer Unpacks
06. Accept licence by ‘YES’ button ,
for destination Folder Browse to our C:\jdk1.3.1
07. Click Next and Next again , Finally Click on Finish Button
Chapter 1 : Article 2 : Configuring on Windows 98 Operating System
01. EDIT C:\Autoexec.bat to make it look something like this 

SET JAVA_HOME=d:\jdk1.3.1
SET PATH=c:\windows;c:\windows\command;d:\jdk1.3.1\bin;c:\

02. Save and Exit
03. Restart your computer (for changes to take immediate effect)

Windows NT, Windows 2000 and Windows XP Users
01. Right Click on My Computer, Select Properties Menu Item
02. Click Advanced Tab , Select System Variables Button
03. You see New System variable
04. Click New Button , in the variable name box type in JAVA_HOME in the Variable value type in C:\jdk1.3.1
05. Now Higlight PATH Variable , at the end add this ;C:\jdk1.3.1\bin
Click OK and OK again
06. Restart your computer (for changes to take immediate effect)
After Re-Starting your system
01. In DOS prompt type in
D:\>SET you must see
JAVA_HOME=d:\jdk1.3.1
PATH={somelist};d:\jdk1.3.1\bin

02. Type in
D:\>javac you must see
Usage: javac < options > < sourcefile > 

03. If u do see it things have gone right till now ,
if u dont see it check out official java website

NEXT >>

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s