Search
Search titles only
By:
Search titles only
By:
Log in
Register
Search
Search titles only
By:
Search titles only
By:
Menu
Install the app
Install
Forums
New posts
All threads
Latest threads
New posts
Trending threads
Trending
Search forums
What's new
New posts
New ads
New profile posts
Latest activity
Free Ads
Latest reviews
Search ads
Members
Current visitors
New profile posts
Search profile posts
Contact us
Latest ads
🔒 NordVPN Premium – 3 Months
hrdilshan
Updated:
Yesterday at 8:29 PM
🚀 Microsoft Office 365 Pro Plus – Lifetime Access! 🚀
hrdilshan
Updated:
Yesterday at 8:28 PM
Linkedin Premium Business / Careere /Sales Navigator - 1/2/3/6/9/12 Months - Reddem Link
hrdilshan
Updated:
Yesterday at 8:27 PM
Colombo
YEYE 3 in 1 Instant Coffee Mix 50 Sachet
Romeshka
Updated:
Wednesday at 12:16 AM
Colombo
Red Hat Certified System Administrator (RHCSA) - RHEL 10
Sanjeewani95
Updated:
Jul 3, 2026
Electronics
Vehicles
Property
Search
Reply to thread
Forums
General
Education
JAVA LESSON+1.0.0.5
Get the App
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Message
<blockquote data-quote="ravicplk" data-source="post: 1954810" data-attributes="member: 54446"><p><strong>Hello there. Ravi here with the java lesson. I hope that u installed jdk properly and configured it correctly. So no more further talks, let’s move on to the today’s lesson.</strong></p><p><strong></strong></p><p><strong>So today we are going to write simple java application. (not simple it is the simplest) </strong></p><p><strong>Anyway first step…..open notepad and type the following things in that..(sooo u are copying neeee…ok ok..copy it properly)</strong></p><p><strong></strong></p><p></p><p><span style="font-size: 18px"><strong>/*This is a simple java program.</strong></span></p><p><span style="font-size: 18px"><strong> Save this file as hello.java</strong></span></p><p><span style="font-size: 18px"><strong>*/</strong></span></p><p><span style="font-size: 18px"><strong>class hello</strong></span></p><p><span style="font-size: 18px"><strong>{</strong></span></p><p><span style="font-size: 18px"><strong>public static void main(String args[])</strong></span></p><p><span style="font-size: 18px"><strong>{</strong></span></p><p><span style="font-size: 18px"><strong>System.out.println("Ayubowan Elakiri");</strong></span></p><p><span style="font-size: 18px"><strong>}</strong></span></p><p><span style="font-size: 18px"><strong>}</strong></span></p><p></p><p><strong>Ok. I hope that u have typed it correctly. Then u have to save this file as hello.java.</strong></p><p><strong>How to do it?? Go to File menu > save as> and then u will get a familiar dialogue box.</strong></p><p><strong>Heeeey can u see a place for name u r document. For the name u have to type hello.java.</strong></p><p><strong></strong></p><p><strong>Hmmmmmmmm…where should u save it..save it in C:\. Ok finished.</strong></p><p><strong></strong></p><p><strong>Now go to command prompt. (run>cmd) then u will see something like this</strong></p><p></p><p><img src="http://img186.imageshack.us/img186/2735/47037212mw1.jpg" alt="" class="fr-fic fr-dii fr-draggable " style="" /> </p><p></p><p>then u have to change the directory to where u saved u r hello.java file.</p><p>so we have to move to c:\ (if u are in c:\ no problem)</p><p>to move to c:\. Type cd\ and hit ENTER.</p><p></p><p><img src="http://img501.imageshack.us/img501/394/28579698tx1.jpg" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p></p><p><strong>ok nedaaaaaaaaaaaa!...now type</strong> <span style="font-size: 18px"><strong>javac hello.java</strong></span> <strong>and press ENTER.</strong> </p><p></p><p><img src="http://img100.imageshack.us/img100/1641/10si0.jpg" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p></p><p><strong>Then u will notice that something is going on..no worries after sometime u will see the dir move to c:\ again.</strong></p><p><strong></strong></p><p><strong>ok.now u have compiled u r java source file. now u are going to run u r first application..before that set the classpath( i will explain abt these things in future lessons)to c:\</strong></p><p><strong></strong></p><p><strong>in command prompt type</strong> <span style="font-size: 18px"><strong>set classpath=c:\</strong></span> <strong>and hit ENTER.</strong></p><p></p><p><img src="http://img182.imageshack.us/img182/9274/11nx9.jpg" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p></p><p>uuuuuuuhoooooooooooooooooooooooo......now we are going to run the application...heeee heeeeeeee...</p><p>ok..as u are back in c:\ in the command prompt. type <span style="font-size: 18px"><strong>java hello</strong></span></p><p><span style="font-size: 18px"><strong></strong></span></p><p><img src="http://img501.imageshack.us/img501/2840/12sq0.jpg" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p></p><p><span style="font-size: 18px">AND HIT ENTER</span></p><p></p><p>soooooooooooooooo what u got!!!!!!!!!!!!!!!!!!!!!!!</p><p>if u followed the steps correctly u will get following result.</p><p></p><p><img src="http://img100.imageshack.us/img100/5146/13xg1.jpg" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p></p><p><strong>so. how u feel after running u r first java program..<img src="/styles/default/xenforo/smilies/default/D.gif" class="smilie" loading="lazy" alt=":D" title="Big grin :D" data-shortname=":D" /> <img src="/styles/default/xenforo/smilies/default/D.gif" class="smilie" loading="lazy" alt=":D" title="Big grin :D" data-shortname=":D" /> <img src="/styles/default/xenforo/smilies/default/D.gif" class="smilie" loading="lazy" alt=":D" title="Big grin :D" data-shortname=":D" /> </strong></p><p><strong>he heeeee when i was doing my first java program i faced up to awful lot of problems...ketiyen kiwwoth JAVA epaaaaaaaaaaa unaaa...he heeee but nevertheless u learn by experience neeee....so if u face to any problems when doing this post u r problems here.....</strong></p><p><strong>bye and c yaaaaaaa..</strong></p><p><strong>ps-running the first program always gives u a great feeling.</strong></p></blockquote><p></p>
[QUOTE="ravicplk, post: 1954810, member: 54446"] [B]Hello there. Ravi here with the java lesson. I hope that u installed jdk properly and configured it correctly. So no more further talks, let’s move on to the today’s lesson. So today we are going to write simple java application. (not simple it is the simplest) Anyway first step…..open notepad and type the following things in that..(sooo u are copying neeee…ok ok..copy it properly) [/B] [SIZE="5"][B]/*This is a simple java program. Save this file as hello.java */ class hello { public static void main(String args[]) { System.out.println("Ayubowan Elakiri"); } }[/B][/SIZE] [B]Ok. I hope that u have typed it correctly. Then u have to save this file as hello.java. How to do it?? Go to File menu > save as> and then u will get a familiar dialogue box. Heeeey can u see a place for name u r document. For the name u have to type hello.java. Hmmmmmmmm…where should u save it..save it in C:\. Ok finished. Now go to command prompt. (run>cmd) then u will see something like this[/B] [IMG]http://img186.imageshack.us/img186/2735/47037212mw1.jpg[/IMG] then u have to change the directory to where u saved u r hello.java file. so we have to move to c:\ (if u are in c:\ no problem) to move to c:\. Type cd\ and hit ENTER. [IMG]http://img501.imageshack.us/img501/394/28579698tx1.jpg[/IMG] [B]ok nedaaaaaaaaaaaa!...now type[/B] [SIZE="5"][B]javac hello.java[/B][/SIZE] [B]and press ENTER.[/B] [IMG]http://img100.imageshack.us/img100/1641/10si0.jpg[/IMG] [B]Then u will notice that something is going on..no worries after sometime u will see the dir move to c:\ again. ok.now u have compiled u r java source file. now u are going to run u r first application..before that set the classpath( i will explain abt these things in future lessons)to c:\[/B] [B] in command prompt type[/B] [SIZE="5"][B]set classpath=c:\[/B][/SIZE] [B]and hit ENTER.[/B] [IMG]http://img182.imageshack.us/img182/9274/11nx9.jpg[/IMG] uuuuuuuhoooooooooooooooooooooooo......now we are going to run the application...heeee heeeeeeee... ok..as u are back in c:\ in the command prompt. type [SIZE="5"][B]java hello [/B][/SIZE] [IMG]http://img501.imageshack.us/img501/2840/12sq0.jpg[/IMG] [SIZE="5"]AND HIT ENTER[/SIZE] soooooooooooooooo what u got!!!!!!!!!!!!!!!!!!!!!!! if u followed the steps correctly u will get following result. [IMG]http://img100.imageshack.us/img100/5146/13xg1.jpg[/IMG] [B]so. how u feel after running u r first java program..:D :D :D he heeeee when i was doing my first java program i faced up to awful lot of problems...ketiyen kiwwoth JAVA epaaaaaaaaaaa unaaa...he heeee but nevertheless u learn by experience neeee....so if u face to any problems when doing this post u r problems here..... bye and c yaaaaaaa.. ps-running the first program always gives u a great feeling.[/B] [/QUOTE]
Insert quotes…
Verification
Dawasata paya keeyak thibeda?
Post reply
Top
Bottom