Posts

Showing posts with the label Hello world

Hello World Java

Image
First, let's see how to run a Java Program using a text editor like Notepad and command prompt and after that let's move on to the NetBeans I.D.E. Java is an Object Oriented, High-level programming language and a computing platform which was released by Sun Microsystems in 1995. An important feature of Java is, it is platform independence. (Platform Independence means once a program is compiled then it can be run on any platform such as Windows, Mac OS X and Linux. ) To run Java on your machine you have to install Java Development Kit  (JDK). You can download JDK and NetBeans  from this link . When you download JDK, you get the Java Runtime Environment(JRE) which consists of Java Virtual Machine (JVM), Java core classes and Java libraries. And we have to set the Java bin path to the path variable. 1st Step :     C Drive -> Program Files -> Java -> jdk -> bin-> copy the path . (when you click on the bar with the folder icon which contains...

Hello World Java - සිංහල

Image
මුලින්ම අපි notepad වගේ text editor එකක් සහ command prompt එක use කරලා අපේ පලවෙනි Java program එක run කරමු. පසුව NetBeans I.D.E. එක use කරන ආකාරය බලමු. Java ගැන පොඩ්ඩක් කතා කලොත් Java කියන්නේ Object Oriented, High-level programming language එකක්. Java ක්‍රියාත්මක කරන්න ඔබේ පරිගණකයේ Java Development Kit  (JDK) install කර තිබීම අත්‍යවශයි. JDK හා NetBeans   මේ ලින්ක් එකෙන් download කරගන්න පුළුවන්. JDK download කරගත් විට Virtual Machine (JVM), Java core core classes සහ Java libraries අන්තර්ගත වෙන Java Runtime Environment(JRE) එක ඔබට ලබාගැනීමට පුළුවනි. Java  ක්‍රියාත්මක කරන්න නම් Java bin path එක path-variable එකට set කරගන්න ඕනි. 1 පියවර :   C Drive -> Program Files -> Java -> jdk -> bin-> path එක copy කරගන්න . (folder icon එකක් එක්ක උඩින්ම මේ path එක තියෙන line එකේ click කලාම path එක copy කරගන්න පුළුවන්) 2  පියවර : Computer -> Properties -> Advanced system settings -> Environment variables... -> select 'path' variab...