ATM Example
- Package revisit
- Three ways to compile and run the Atm application
- using the default class path environment i.e JDK classes directory and the current directory "."
cd [Atm working directory]\custom
javac *.java
or cd [Atm working directory]
javac account\*.java
javac custom\*.java
javac Atm.java
java Atm
- using the command line switch -classpath
cd [any directory]
javac -classpath .;c:\[Atm working directory]\ Atm.java
java -classpath .;c:\[Atm working directory]\ Atm
- Using the environment variable: set CLASSPATH=.;C:\[Atm working directory]\
javac Atm.java
java Atm