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
Iptv
musicking
Updated:
Yesterday at 9:52 AM
Ad icon
ZTE MF283U 4G Unlocked Router (Used)
ayanthamaxi
Updated:
Jul 19, 2026
ලංකාවේ හොඳම උපකාරක පන්ති සහ ගුරුවරුන් එකම තැනකින් - TopTuition.lk
dulithapathum
Updated:
Jul 18, 2026
Colombo
RidhMathraa ’26 🎶✨
Tmadhusanka
Updated:
Jul 15, 2026
Ad icon
Colombo
PXN V10 Pro Direct Drive Racing Wheel (Under Warranty)
Abdur Rahman
Updated:
Jul 15, 2026
Electronics
Vehicles
Property
Search
Reply to thread
Forums
General
ElaKiri Help
ජාවා Help!
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="Sonique" data-source="post: 12269831" data-attributes="member: 55225"><p>මචන්ලා මම එච්චර ජවා කෝඩින්ග්ස් දන්නෙ නෑ. <img src="/styles/default/xenforo/smilies/default/happy.gif" class="smilie" loading="lazy" alt=":)" title="Happy :)" data-shortname=":)" /> මට කියල දෙන්න පුලුවන්ද සරලව ජවා සිම්පල් කෝඩ් එකක් executable jar ෆයිල් එකක් කරන හැටි. <img src="/styles/default/xenforo/smilies/default/nerd.gif" class="smilie" loading="lazy" alt=":nerd:" title="Nerd :nerd:" data-shortname=":nerd:" /></p><p></p><p> මම යූස් කරන්නෙ Helios Eclipse. Netbeans දැම්මම ඇඩෙන්න වගෙ ආව ඒක දැකල <img src="/styles/default/xenforo/smilies/default/sad.gif" class="smilie" loading="lazy" alt=":(" title="Sad :(" data-shortname=":(" />. මට ෆෝන් එකට පොඩි app එකක් හදාගන්න ආසයි. පොඩි අවුලකට තියෙන්නෙ මම ගහපු code එක Eclipse එක ඇතුලෙදි වැඩ. Eclipse වලින් jar ෆයිල් එකක් විදිහට save කලාම ඩබල් කිලික් කරාට වැඩ කරන්නෙ නෑ. ෆෝන් එකේදි ඉන්ස්ටෝල් වෙන්න ඇවිත් මගදි file is corrupted කියනව. මැෂින් එකෙදි ඩබල් ක්ලික් කලාම Failed to load main-Class manifest attribute from ______ (location) කියල එනව. වැඩේ අමාරුද බන් මෙච්චර. ඊයෙ රෑම try කලා නිදාගත්තෙත් නෑ. වැඩේ හරි ගියේම නෑ. කෝඩින්ග්ස් දන්න පොරක් මෙන්න මේ කොඩින්ග් එක ෆොන් එකට හරියන jar file එකක් කරන හැටි කියල දෙන්නකෝ. <img src="/styles/default/xenforo/smilies/default/D.gif" class="smilie" loading="lazy" alt=":D" title="Big grin :D" data-shortname=":D" /></p><p></p><p>[CODE]import java.util.Scanner;</p><p>import javax.swing.JOptionPane;</p><p></p><p></p><p>public class testing_jar {</p><p></p><p> /**</p><p> * @param args</p><p> */</p><p> public static void main(String[] args) </p><p> { </p><p> //Using Scanner</p><p> Scanner scan = new Scanner (System.in);</p><p> System.out.println("Enter Your Name : ");</p><p> String name = scan.nextLine();</p><p> System.out.println("Your Name is : " + name);</p><p> </p><p> </p><p> //Using JOptionPane</p><p> int age = Integer.parseInt(JOptionPane.showInputDialog("Enter your Age : "));</p><p> System.out.println("Your Age is : " + age);</p><p></p><p> }</p><p></p><p>}</p><p>[/CODE]</p></blockquote><p></p>
[QUOTE="Sonique, post: 12269831, member: 55225"] මචන්ලා මම එච්චර ජවා කෝඩින්ග්ස් දන්නෙ නෑ. :) මට කියල දෙන්න පුලුවන්ද සරලව ජවා සිම්පල් කෝඩ් එකක් executable jar ෆයිල් එකක් කරන හැටි. :nerd: මම යූස් කරන්නෙ Helios Eclipse. Netbeans දැම්මම ඇඩෙන්න වගෙ ආව ඒක දැකල :(. මට ෆෝන් එකට පොඩි app එකක් හදාගන්න ආසයි. පොඩි අවුලකට තියෙන්නෙ මම ගහපු code එක Eclipse එක ඇතුලෙදි වැඩ. Eclipse වලින් jar ෆයිල් එකක් විදිහට save කලාම ඩබල් කිලික් කරාට වැඩ කරන්නෙ නෑ. ෆෝන් එකේදි ඉන්ස්ටෝල් වෙන්න ඇවිත් මගදි file is corrupted කියනව. මැෂින් එකෙදි ඩබල් ක්ලික් කලාම Failed to load main-Class manifest attribute from ______ (location) කියල එනව. වැඩේ අමාරුද බන් මෙච්චර. ඊයෙ රෑම try කලා නිදාගත්තෙත් නෑ. වැඩේ හරි ගියේම නෑ. කෝඩින්ග්ස් දන්න පොරක් මෙන්න මේ කොඩින්ග් එක ෆොන් එකට හරියන jar file එකක් කරන හැටි කියල දෙන්නකෝ. :D [CODE]import java.util.Scanner; import javax.swing.JOptionPane; public class testing_jar { /** * @param args */ public static void main(String[] args) { //Using Scanner Scanner scan = new Scanner (System.in); System.out.println("Enter Your Name : "); String name = scan.nextLine(); System.out.println("Your Name is : " + name); //Using JOptionPane int age = Integer.parseInt(JOptionPane.showInputDialog("Enter your Age : ")); System.out.println("Your Age is : " + age); } } [/CODE] [/QUOTE]
Insert quotes…
Verification
Haya warak paha keeyada? (haya wadi kireema paha)
Post reply
Top
Bottom