HELP! * YELLOW=global GREY=local Global HTML version of Foils prepared 1 February 97

Foil 30 Applications
Applets and their use from HTML
Java Applications

From Jan 22 Delivered Lecture for Course CPS616 -- Java Lecture 1 -- Overview CPS616 spring 1997 -- Jan 22 1997. by Nancy McCracken * See also color IMAGE
Secs 154
All Java programs are written into a file with a ".java" extension.
Applications are .java files with a main class which is excuted first.
How to compile and run a Java application:
  • 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
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.


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 Feb 16 1997