Sunday 29 November 2015

Steps - steps JAVA run in CMD

Steps - steps JAVA run in CMD
1. Before running java on the CMD that the first thing you should do is to install JDK
2. After you install JDK JDK address setting on the patch, follow the steps - these steps on the way of setting the address JDK patch
3. Click >> Computer >> proporties
4. Click the Advanced System Settings >>
5. Click >> Environment Variables
6. Locate and then click Edit Patch >> >> In awalii semicolon and then copy the address JDK from system C, step - a step to copy the address JDK you can follow on this beriku explanation:
7. How to copy JDK address in system C, click >> Local disck (C), then click >> Program Files
8. Then click >> Java
9. Click >> jdk
10. Click >> bin
11. Copy JDK then enter the address in Patch (Prior paste type a semicolon terlebi patch first)
12. Sign in CMD, now you can menjalangkan java on CMD, you first create java script in notepad make sure the class name match the name on the deposit at the end with a point java examples (nama_file.java) and run as shown below:
13. Here's an example of a simple Java program on a notepad:
public class try
{
public static void main (String [] args) {
System.out.print ("try");
}
}
14. Here's an example of how to run a Java program in CMD and explanation, press Windows + R, then enter the following command: D: (for incoming kepartisi where where you store your java file), dir (to display a list - a list of files to determine whether the file java you are already there), then javac nama_file.java (for konfile your java file), java filename (to run the program).


No comments:

Post a Comment