0% found this document useful (0 votes)
21 views

Writing A Simple Program 2

Uploaded by

api-22794181
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
21 views

Writing A Simple Program 2

Uploaded by

api-22794181
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 9

Writing a Simple Program

1. Create a New Project 2. Create a New Class 3. Writing a Hello World Program 4. Explaining the Di erent Code

Create a New Project


!o" sho"ld create a new project e#er$ time $o" start something new.

% project contains iles needed to r"n the program


&ight clic' the le t side panel( clic' New, then select New Java Project

Create a New Project


Name the project HelloWorld and clic' )inish *ignore e#er$thing else+

Create a New Class


%ll ,a#a )iles are the same as Class iles so it is the main option $o" will "se Clic' the pl"s sign next to the older &ight clic' src( clic' New( and select Class

Create a New Class


Name the ile HelloWorld and clic' inish -he r"les or naming ja#a classes are that the$ sho"ld contain no spaces and alwa$s start with a capital letter

Writing a Hello World Program

Installing JRE
,a#a &"ntime En#ironment is needed .e ore $o" download Eclipse /o to this lin' http011 ja#a.com1en1download1man"al.jsp Download the lin' that corresponds to $o"r 2perating 3$stem1 4it

Installing JDK
,a#a &"ntime En#ironment also needed .e ore $o" download Eclipse

/o to this lin' http011 www.oracle.com1technetwor'1ja#a1ja#ase1download Download the lin' that corresponds to $o"r 2perating 3$stem1 4it

Installing Eclipse
Clic' this lin' http011www.eclipse.org1downloads1:os-$pe;win32 and download ,a#a <DE or ,a#a De#elopers =n>ip the ile once downloaded( clic' on Eclipse and extract all. 2nce extracted clic' .ac' into the eclipse and r"n. < wo"ld recommend setting "p a shortc"t or eclipse as $o" ma$ ha#e to r"n it each time $o" open it

You might also like