0
How can i create .class file by opens the command promts ?
please say me the command prompt code
3 Respostas
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
0
should I download the compiler?
0
Yes. Download from Java.com