Contents | (Visit Preferences to set your user name.) | Related To How To Compile A Java Program | RecentChanges | Preferences | Index | Login | Logout
Search For Books About:
Search The Net:
How To Compile A Java Program
Subjects > ... > Java Programming
Some basics:
- Java platform components: Java application programming interfaces (APIs) and the Java1 virtual machine (JVM).
- Java programs are run (or interpreted) by another program called the Java VM.
Steps:
- First need to install the Java platform on your computer system.
- After installing, be sure that the path to the JavaC?Create is part of your path, for example:
C:\Program Files\Java\jdk1.5.0_11\bin
Sample Java program, save as ExampleProgram?Create.Java:
//A Very Simple Example
class ExampleProgram {
public static void main(String[] args){
System.out.println("I'm a Simple Program");
}
}
The Java compiler converts this program into a bytecode that the Java VM on any machine can understand:
The Java compiler is invoked at the command line on Unix and DOS shell operating systems as follows:
javac ExampleProgram?Create.java
Running the program:
java ExampleProgram?Create
Search for books about:
Search The Net:
Bobsgear - Get A Free
Enterrpise Wiki Space!
Review: The Bobsgear Project was
started to develop a variety of Confluence
plugins. This installation of
the Confluence Enterprise wiki includes flexible
attachments, many Confluence plugins, personal blogs,
interesting articles, and more. Bobsgear already has spaces related to
politics, art and
photography wiki,
technical issues wiki,
ediscovery wiki, health,
Christian theology and Sabbath
School wiki, the
bible, book reviews,
and quotations. Bobsgear
allows free signup, and invites anyone to create a
free hosted Confluence wiki space.
NEW
USERS CLICK HERE! for a quick introduction to
Wiki.
Interested in Garnet's Annual 2006 Bootable Disaster Recovery Disk Tips?