0

How can i create .class file by opens the command promts ?

please say me the command prompt code

8th Mar 2017, 12:19 PM
sandip
3 ответов
0
You can create a class file by using the javac Complier. First, you write the .java file. That file is source code. When you run the javac Complier, javac translates the source code into bytecode. The bytecode is contained in the .class file, which you can't read with a text editor like Notepad. To run the javac Complier, you type "javac", then the name of your .java file. In this example, the source code file is Program.java This is what you do in the command prompt. C:/>javac Program.java C:/> This Command writes a .class file, which you run with the Java JVM
8th Mar 2017, 1:26 PM
Heng
0
should I download the compiler?
8th Mar 2017, 1:29 PM
sandip
0
Yes. Download from Java.com
6th Aug 2017, 10:27 PM
Heng