How convert *.java-file to *.class file??
Printable View
How convert *.java-file to *.class file??
Using the command prompt, navigate to the folder in which your java files are located with the cd command:
atThePrompt>cd folder
Then use the compiler to compile the files with:
folder>javac *.java
The class files should appear in the same folder. To send them elswhere, say the classes folder, use the -d switch:
folder>javac -d classes *.java
hardwired,Thanks
and the run them simply: java filename.with_no_extension
This is first step to dig into Java. ;)
"Hello World!" for Microsoft Windows (The Java™ Tutorials > Getting Started > The "Hello World!" Application)