Entry
Java: Stand alone: Create: How to create a stand alone program?
Sep 26th, 2003 17:35
Knud van Eeden,
----------------------------------------------------------------------
--- Knud van Eeden --- 07 September 2003 - 04:18 am ------------------
Java: Stand alone: Create: How to create a stand alone program?
Steps: Overview:
1. Type the program in your favorite text editor
2. Your program should contain the main method
class <your filename> {
public static void main( String args[] ) {
// your statements
}
}
3. Save this file with extension .java
e.g.
<your filename>.java
4. Compile with
javac.exe <your filename>.java
5. If compiled successfully this will create
(in the same directory) a file:
<your filename>.class
6. Run with
java.exe <your filename>
---
Internet: see also:
Java: Stand alone: Create: Simple: How to create a stand alone program
that displays 'Hello World'?
http://www.faqts.com/knowledge_base/view.phtml/aid/24178/fid/165
Java: Stand alone: Run: How to possibly run a stand alone Java program?
http://www.faqts.com/knowledge_base/view.phtml/aid/24174/fid/165
----------------------------------------------------------------------