Note: Remember that Java wants the name of the class to match the name of the file (this is especially important for public classes, like applets). Also remember that under unix, the case of file names is significant - this means the case of the class name and the case of the file name must match.
Once you have compiled your Java program, you can run it using the Java interpreter:
CLASSFILES=AClass.class BClass.class # ... JAVAFLAGS= JAVAC=javac all: $(CLASSFILES) .SUFFIXES: .java .class .java.class: ; $(JAVAC) $(JAVAFLAGS) $<
Title: | Thinking in Java |
Author: | Bruce Eckel |
Publisher: | Prentice Hall |
Pages: | 1098 |
ISBN: | 0-13-659723-8 |
Title: | Exploring Java, 2nd Edition |
Author: | Patrick Neimeyer & Joshua Peck |
Publisher: | O'Reilly & Associates |
Pages: | 594 |
ISBN: | 1-56592-271-9 |
Title: | JAVA IN A NUTSHELL: A Desktop Quick Reference, 2nd Edition |
Author: | David Flanagan |
Publisher: | O'Reilly & Associates |
ISBN: | 1-56592-262-X |
Suggested by: | Dean Barnes ( dbarnes@cs.mun.ca) |
Title: | Core Java, Volume 1 - Fundamentals |
Author: | Cay Horstmann, Garry Cornell |
Publisher: | Prentice Hall |
Pages: | 628 |
ISBN: | 0-13-766957-7 |
Title: | The Java Programming Language, 2nd Edition |
Author: | Ken Arnold, James Gosling |
Publisher: | Addison-Wesley |
ISBN: | 0-201-31006-6 |
This page is adapted from that for CS3710 (Winter 1999) created by Mike Rendell.