Highlights
All Snippets
Top 100 Snippets
Librarians
gbCodeLib

By Language
VB6
JavaScript
Perl
HTML
SQL
Java
DOS

GBIC >> Source Code >> Java >> Snippet

Compile source code into bytecode and run the results


//to compile the HelloWord.java source code file:

javac HelloWorld.java

//to run the resulting HelloWorld.class file - do not use the .class in the command line

java HelloWorld