Basic HTML version of Foils prepared Sept 21 1998

Foil 11 Java Applications in a Nutshell

From Introduction to Java Tutorial Aimed at Scientific Users NAVO Tutorial -- Sept 23 1998. by Geoffrey C. Fox


1 All Java programs are written into a file with a ".java" extension.
2 Applications are .java files with a main method which is excuted first.
3 How to compile and run a Java application (via bytecodes):
  • Run the compiler on a .java file:
  • javac MyProgram.java
  • producing a file "MyProgram.class" of Java bytecodes
  • Run the interpreter on a .class file:
  • java MyProgram
  • which executes the bytecodes
4 The resources javac and java are part of JDK and are not in Netscape and so are not necessarily available on the same machine as your web server.

in Table To:


© Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Sun Apr 11 1999