Writing text file in java http://wwwroboticsforall.blogspot.com/p/java-lessons-tutorial-helper.html
Tuesday, May 17, 2011
List of Tutorials
Saving values of object in the Hard Disk Drive (Serialization) http://wwwroboticsforall.blogspot.com/p/java-lessons-tutorial-helper.html
Writing text file in java http://wwwroboticsforall.blogspot.com/p/java-lessons-tutorial-helper.html
Writing text file in java http://wwwroboticsforall.blogspot.com/p/java-lessons-tutorial-helper.html
Sunday, May 8, 2011
Making a Simple Java File.
1 Open text editor like notepad and type..
* java is a case sensitive language. (type in notepad as shown as bellow(Capital Simple Letters))
Then save your java file in hard disk named myFristJava.java (Ex: c:\java\myFristJava.java)
2 Open Command Prompt in your computer by (start->run and typing cmd) or (start->all programs accessories->Command Prompt)
Type in cmd .....
path=c:\program files\jdk1.7\bin (this path must be the path of jdk installed on your computer. )
Now compiler is ready to compile your java file.
then type on cmd...
your java file's saved file path (Ex: cd java)for c:\java
javac myFristJava.java
This command line arg tells java compiler to compile the myFristJava.java file in c:\java folder.
java myFristJava
This line tells to jvm(Java Virtual Machine) to run your java program.
If correctly compiled and run, prints Hellow. My name is saman. in the command prompt.
* java is a case sensitive language. (type in notepad as shown as bellow(Capital Simple Letters))
Then save your java file in hard disk named myFristJava.java (Ex: c:\java\myFristJava.java)
2 Open Command Prompt in your computer by (start->run and typing cmd) or (start->all programs accessories->Command Prompt)
Type in cmd .....
path=c:\program files\jdk1.7\bin (this path must be the path of jdk installed on your computer. )
Now compiler is ready to compile your java file.
then type on cmd...
your java file's saved file path (Ex: cd java)for c:\java
javac myFristJava.java
This command line arg tells java compiler to compile the myFristJava.java file in c:\java folder.
java myFristJava
This line tells to jvm(Java Virtual Machine) to run your java program.
If correctly compiled and run, prints Hellow. My name is saman. in the command prompt.
Java Lessons.
Java is a high-level and powerful Computer programming language.
* Java is used by many websites, business softwares and other application softwares.
* Java is not a platform independent computer programming language.
Ex:- There is a java .class file compiled on windows operating system. that .class file run on all widows operating systems and also run on java supported any other operating systems like linux, ubuntu OSs.
* Java is used by many websites, business softwares and other application softwares.
* Java is not a platform independent computer programming language.
Ex:- There is a java .class file compiled on windows operating system. that .class file run on all widows operating systems and also run on java supported any other operating systems like linux, ubuntu OSs.
Subscribe to:
Posts (Atom)