Basic HTML version of Foils prepared July 6 99

Foil 11 Java Applications

From Use of Java Language in Computational Science DoD Modernization Users Group Conference Monterey -- June 7 99. by Nancy McCracken, Geoffrey C. Fox


All Java programs are written into a file with a ".java" extension.
Applications are .java files with a main method which is excuted first.
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



© 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 Tue Jul 6 1999