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
Ad icon
🎮 INDIAN PSN GIFT CARDS AVAILABLE NOW! 🎮
madukaperera
Updated:
Today at 12:57 PM
🚀 Google AI PRO – 18 Months | Rs. 850 Only
lkkolla
Updated:
Yesterday at 4:56 PM
🔒 NordVPN Premium – 3 Months
hrdilshan
Updated:
Thursday at 8:29 PM
🚀 Microsoft Office 365 Pro Plus – Lifetime Access! 🚀
hrdilshan
Updated:
Thursday at 8:28 PM
Linkedin Premium Business / Careere /Sales Navigator - 1/2/3/6/9/12 Months - Reddem Link
hrdilshan
Updated:
Thursday at 8:27 PM
Electronics
Vehicles
Property
Search
Reply to thread
Forums
General
Education
Java කඩේ
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="KPZ" data-source="post: 11198607" data-attributes="member: 351617"><p><strong>Setting Path</strong></p><p></p><p><span style="font-size: 15px"><span style="color: Blue">Java Install කරගත්තට පස්සේ command prompt එකේ java කියල type කරල බලන්න. </span></span></p><p><span style="font-size: 15px"><span style="color: Blue"></span></span></p><p><span style="font-size: 15px"><span style="color: Blue">එතකොට මෙහෙම list එකක් එනවනම් Java Install වෙලා තියෙනවා.</span></span></p><p><span style="font-size: 15px"><span style="color: Blue"><img src="http://i1097.photobucket.com/albums/g356/enetkevin/Elakri%20Java/Javatest.jpg" alt="" class="fr-fic fr-dii fr-draggable " style="" /></span></span></p><p><span style="font-size: 15px"><span style="color: Blue"></span></span></p><p><span style="font-size: 15px"><span style="color: Blue">ඊට පස්සේ javac කියල type කරන්න.</span></span></p><p><span style="font-size: 15px"><span style="color: Blue">එතකොට මේ විදිහට message එකක් එයි.</span></span></p><p><span style="font-size: 15px"><span style="color: Blue"><img src="http://i1097.photobucket.com/albums/g356/enetkevin/Elakri%20Java/Javactest.jpg" alt="" class="fr-fic fr-dii fr-draggable " style="" /></span></span></p><p><span style="font-size: 15px"><span style="color: Blue"></span></span></p><p><span style="font-size: 15px"><span style="color: Blue">ඒ කියන්නේ අපේ machine එකට Java compiler (javac) ඉන්න තැන හොයාගන්න බැහැලු.<img src="/styles/default/xenforo/smilies/default/sorry.gif" class="smilie" loading="lazy" alt=":sorry:" title="Sorry :sorry:" data-shortname=":sorry:" /></span></span></p><p><span style="font-size: 15px"><span style="color: Blue">ඉතින් අපි javac ඉන්න තැන machine එකට කියන්න ඕනි.</span></span></p><p><span style="font-size: 15px"><span style="color: Blue"></span></span></p><p><span style="font-size: 15px"><span style="color: Blue">ඒක කරන හැටි බලමු දැන්.</span></span></p><p><span style="font-size: 15px"><span style="color: Blue"></span></span></p><p><span style="font-size: 15px"></span></p><p><span style="font-size: 15px"><strong>Setting Path on Windows</strong></span></p><p></p><p><span style="font-size: 12px"><strong>For Windows XP:</strong></span></p><ol> <li data-xf-list-type="ol"><span style="font-size: 12px"><span style="color: SeaGreen">Start -> Control Panel -> System -> Advanced</span></span></li> <li data-xf-list-type="ol"><span style="font-size: 12px"><span style="color: SeaGreen">Click on Environment Variables, under System Variables, find <strong>PATH</strong>, and click on it.</span></span></li> <li data-xf-list-type="ol"><span style="font-size: 12px"><span style="color: SeaGreen">In the Edit windows, modify <strong>PATH</strong> by adding the location of the class to the value for <strong>PATH</strong>. If you do not have the item <strong>PATH</strong>, you may select to add a new variable and add <strong>PATH</strong> as the name and the location of the class as the value.</span></span></li> <li data-xf-list-type="ol"><span style="font-size: 12px"><span style="color: SeaGreen">Close the window.</span></span></li> <li data-xf-list-type="ol"><span style="font-size: 12px"><span style="color: SeaGreen">Reopen Command prompt window, and run your java code.</span></span></li> </ol><p></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px"><strong>For Windows Vista:</strong></span></p><ol> <li data-xf-list-type="ol"><span style="font-size: 12px"><span style="color: SeaGreen">Right click “My Computer” icon</span></span></li> <li data-xf-list-type="ol"><span style="font-size: 12px"><span style="color: SeaGreen">Choose “Properties” from context menu</span></span></li> <li data-xf-list-type="ol"><span style="font-size: 12px"><span style="color: SeaGreen">Click “Advanced” tab (“Advanced system settings” link in Vista)</span></span></li> <li data-xf-list-type="ol"><span style="font-size: 12px"><span style="color: SeaGreen">In the Edit windows, modify <strong>PATH</strong> by adding the location of the class to the value for <strong>PATH</strong>. If you do not have the item <strong>PATH</strong>, you may select to add a new variable and add <strong>PATH</strong> as the name and the location of the class as the value.</span></span></li> <li data-xf-list-type="ol"><span style="font-size: 12px"><span style="color: SeaGreen">Reopen Command prompt window, and run your java code.</span></span></li> </ol><p></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px"><strong>For Windows 7:</strong></span></p><p><span style="font-size: 12px"></span></p><ol> <li data-xf-list-type="ol"><span style="font-size: 12px"><span style="color: SeaGreen">Right click “My Computer” icon</span></span></li> <li data-xf-list-type="ol"><span style="font-size: 12px"><span style="color: SeaGreen">Choose “Properties” from context menu<br /> <img src="http://i1097.photobucket.com/albums/g356/enetkevin/Elakri%20Java/pathset1.jpg" alt="" class="fr-fic fr-dii fr-draggable " style="" /><br /> </span></span></li> <li data-xf-list-type="ol"><span style="font-size: 12px"><span style="color: SeaGreen">Click on “Change settings”<br /> <img src="http://i1097.photobucket.com/albums/g356/enetkevin/Elakri%20Java/pathset2.jpg" alt="" class="fr-fic fr-dii fr-draggable " style="" /><br /> </span></span></li> <li data-xf-list-type="ol"><span style="font-size: 12px"><span style="color: SeaGreen">Click on “Advanced” tab.</span></span></li> <li data-xf-list-type="ol"><span style="font-size: 12px"><span style="color: SeaGreen">Then Click on “ Environment Variables”.<br /> <img src="http://i1097.photobucket.com/albums/g356/enetkevin/Elakri%20Java/pathset3.jpg" alt="" class="fr-fic fr-dii fr-draggable " style="" /><br /> </span></span></li> <li data-xf-list-type="ol"><span style="font-size: 12px"><span style="color: SeaGreen">Choose <strong>path</strong> from System variables and Edit.<br /> <img src="http://i1097.photobucket.com/albums/g356/enetkevin/Elakri%20Java/pathset4.jpg" alt="" class="fr-fic fr-dii fr-draggable " style="" /><br /> </span></span></li> <li data-xf-list-type="ol"><span style="font-size: 12px"><span style="color: SeaGreen">Add this -> <strong>;C:\Program Files\Java\jdk1.7.0_01\bin</strong> to the end of the Variable value text field.<br /> <img src="http://i1097.photobucket.com/albums/g356/enetkevin/Elakri%20Java/pathset5.jpg" alt="" class="fr-fic fr-dii fr-draggable " style="" /><br /> </span></span></li> <li data-xf-list-type="ol"><span style="font-size: 12px"><span style="color: SeaGreen">Then press <strong>OK</strong> to all opened windows.</span></span></li> </ol> <ol> <li data-xf-list-type="ol"><span style="font-size: 12px"></span></li> </ol><p></p><p><u><span style="font-size: 15px">Setting Path on Solaris and Linux</span></u></p><p></p><p><span style="font-size: 12px">To find out if the java executable is in your <strong>PATH</strong>, execute:</span></p><p><span style="font-size: 12px"><strong>% java -version</strong></span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px">This will print the version of the java executable, if it can find it. If you get error java: Command not found. Then path is not properly set.</span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px">To find out which java executable the first one found in your PATH, execute:</span></p><p><span style="font-size: 12px"><strong>% which java</strong></span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px">Below are the steps to set the <strong>PATH</strong> permanently,</span></p><p><span style="font-size: 12px">Note: We are here giving instructions for two most popular Shells on Linux and Solaris.</span></p><p><span style="font-size: 12px"></span></p><p><span style="font-size: 12px"><strong>For bash Shell: </strong></span></p><ol> <li data-xf-list-type="ol"><span style="font-size: 12px">Edit the startup file (~/ .bashrc)</span></li> <li data-xf-list-type="ol"><span style="font-size: 12px">Modify <strong>PATH</strong> variable:- <strong>PATH=/usr/local/jdk1.6.0/bin</strong></span></li> <li data-xf-list-type="ol"><span style="font-size: 12px">export <strong>PATH</strong></span></li> <li data-xf-list-type="ol"><span style="font-size: 12px">Save and close the file</span></li> <li data-xf-list-type="ol"><span style="font-size: 12px">Open new Terminal window</span></li> <li data-xf-list-type="ol"><span style="font-size: 12px">Verify the <strong>PATH</strong> is set properly -> <strong>% java -version</strong></span></li> </ol><p></p><p><span style="font-size: 12px"><strong>For C Shell (csh):</strong></span></p><ol> <li data-xf-list-type="ol"><span style="font-size: 12px">Edit startup file (~/ .cshrc)</span></li> <li data-xf-list-type="ol"><span style="font-size: 12px">Set Path -> <strong>set path=(/usr/local/jdk1.6.0/bin)</strong></span></li> <li data-xf-list-type="ol"><span style="font-size: 12px">Save and Close the file</span></li> <li data-xf-list-type="ol"><span style="font-size: 12px">Open new Terminal window</span></li> <li data-xf-list-type="ol"><span style="font-size: 12px">Verify the <strong>PATH</strong> is set properly -> <strong>% java -version</strong></span></li> </ol><p></p><p><span style="font-size: 15px"></span></p><p><span style="font-size: 15px"><span style="color: Blue">ඊට පස්සේ Command prompt එකේ javac කියල type කලාම මේ විදිහට list එක පෙන්නයි.</span></span></p><p><span style="font-size: 15px"><span style="color: Blue"></span></span></p><p><span style="font-size: 15px"><span style="color: Blue"><img src="http://i1097.photobucket.com/albums/g356/enetkevin/Elakri%20Java/Javactest2.jpg" alt="" class="fr-fic fr-dii fr-draggable " style="" /></span></span></p><p><span style="font-size: 15px"><span style="color: Blue"></span></span></p><p><span style="font-size: 15px"><span style="color: Blue">ඒ කියන්නේ අපේ machine එකට java compiler (javac) ඉන්න තැන හොයාගන්න පුළුවන් දැන්.</span></span></p><p><span style="font-size: 15px"><span style="color: Blue"></span></span></p><p><span style="font-size: 15px"><span style="color: Blue">මෙතනින් පස්සේ <span style="color: Green">coding</span> එක්කම කියල දෙන්නම්. </span><img src="/styles/default/xenforo/smilies/default/P.gif" class="smilie" loading="lazy" alt=":P" title=":P :P" data-shortname=":P" /><img src="/styles/default/xenforo/smilies/default/P.gif" class="smilie" loading="lazy" alt=":P" title=":P :P" data-shortname=":P" /><img src="/styles/default/xenforo/smilies/default/P.gif" class="smilie" loading="lazy" alt=":P" title=":P :P" data-shortname=":P" /></span></p></blockquote><p></p>
[QUOTE="KPZ, post: 11198607, member: 351617"] [b]Setting Path[/b] [SIZE="4"][COLOR="Blue"]Java Install කරගත්තට පස්සේ command prompt එකේ java කියල type කරල බලන්න. එතකොට මෙහෙම list එකක් එනවනම් Java Install වෙලා තියෙනවා. [IMG]http://i1097.photobucket.com/albums/g356/enetkevin/Elakri%20Java/Javatest.jpg[/IMG] ඊට පස්සේ javac කියල type කරන්න. එතකොට මේ විදිහට message එකක් එයි. [IMG]http://i1097.photobucket.com/albums/g356/enetkevin/Elakri%20Java/Javactest.jpg[/IMG] ඒ කියන්නේ අපේ machine එකට Java compiler (javac) ඉන්න තැන හොයාගන්න බැහැලු.:sorry: ඉතින් අපි javac ඉන්න තැන machine එකට කියන්න ඕනි. ඒක කරන හැටි බලමු දැන්. [/COLOR] [B]Setting Path on Windows[/B][/SIZE] [SIZE="3"][B]For Windows XP:[/B] [COLOR="SeaGreen"][LIST=1] [*]Start -> Control Panel -> System -> Advanced [*]Click on Environment Variables, under System Variables, find [B]PATH[/B], and click on it. [*]In the Edit windows, modify [B]PATH[/B] by adding the location of the class to the value for [B]PATH[/B]. If you do not have the item [B]PATH[/B], you may select to add a new variable and add [B]PATH[/B] as the name and the location of the class as the value. [*]Close the window. [*]Reopen Command prompt window, and run your java code. [/LIST][/COLOR] [B]For Windows Vista:[/B] [COLOR="SeaGreen"][LIST=1] [*]Right click “My Computer” icon [*]Choose “Properties” from context menu [*]Click “Advanced” tab (“Advanced system settings” link in Vista) [*]In the Edit windows, modify [B]PATH[/B] by adding the location of the class to the value for [B]PATH[/B]. If you do not have the item [B]PATH[/B], you may select to add a new variable and add [B]PATH[/B] as the name and the location of the class as the value. [*]Reopen Command prompt window, and run your java code. [/LIST] [/COLOR] [B]For Windows 7:[/B] [COLOR="SeaGreen"][LIST=1] [*]Right click “My Computer” icon [*]Choose “Properties” from context menu [IMG]http://i1097.photobucket.com/albums/g356/enetkevin/Elakri%20Java/pathset1.jpg[/IMG] [*]Click on “Change settings” [IMG]http://i1097.photobucket.com/albums/g356/enetkevin/Elakri%20Java/pathset2.jpg[/IMG] [*]Click on “Advanced” tab. [*]Then Click on “ Environment Variables”. [IMG]http://i1097.photobucket.com/albums/g356/enetkevin/Elakri%20Java/pathset3.jpg[/IMG] [*]Choose [B]path[/B] from System variables and Edit. [IMG]http://i1097.photobucket.com/albums/g356/enetkevin/Elakri%20Java/pathset4.jpg[/IMG] [*]Add this -> [B];C:\Program Files\Java\jdk1.7.0_01\bin[/B] to the end of the Variable value text field. [IMG]http://i1097.photobucket.com/albums/g356/enetkevin/Elakri%20Java/pathset5.jpg[/IMG] [*]Then press [B]OK[/B] to all opened windows.[/LIST][/COLOR][LIST=1] [/LIST][/SIZE] [U][SIZE="4"]Setting Path on Solaris and Linux[/SIZE][/U] [SIZE="3"]To find out if the java executable is in your [B]PATH[/B], execute: [B]% java -version[/B] This will print the version of the java executable, if it can find it. If you get error java: Command not found. Then path is not properly set. To find out which java executable the first one found in your PATH, execute: [B]% which java[/B] Below are the steps to set the [B]PATH[/B] permanently, Note: We are here giving instructions for two most popular Shells on Linux and Solaris. [B]For bash Shell: [/B] [LIST=1] [*]Edit the startup file (~/ .bashrc) [*]Modify [B]PATH[/B] variable:- [B]PATH=/usr/local/jdk1.6.0/bin[/B] [*]export [B]PATH[/B] [*]Save and close the file [*]Open new Terminal window [*]Verify the [B]PATH[/B] is set properly -> [B]% java -version[/B] [/LIST] [B]For C Shell (csh):[/B] [LIST=1] [*]Edit startup file (~/ .cshrc) [*]Set Path -> [B]set path=(/usr/local/jdk1.6.0/bin)[/B] [*]Save and Close the file [*]Open new Terminal window [*]Verify the [B]PATH[/B] is set properly -> [B]% java -version[/B] [/LIST][/SIZE] [SIZE="4"] [COLOR="Blue"]ඊට පස්සේ Command prompt එකේ javac කියල type කලාම මේ විදිහට list එක පෙන්නයි. [IMG]http://i1097.photobucket.com/albums/g356/enetkevin/Elakri%20Java/Javactest2.jpg[/IMG] ඒ කියන්නේ අපේ machine එකට java compiler (javac) ඉන්න තැන හොයාගන්න පුළුවන් දැන්. මෙතනින් පස්සේ [COLOR="Green"]coding[/COLOR] එක්කම කියල දෙන්නම්. [/COLOR]:P:P:P[/SIZE] [/QUOTE]
Insert quotes…
Verification
Hathara warak wissa keeyada? (Hathara wadi karanna 20)
Post reply
Top
Bottom