-
Copy the code from down below and put it in a file called
compile-all
. -
Make sure you have it in the right place:
COMP16121/
├── compile-all
├── ex1
├── ex2
├── ex3
├── ex4
├── ex5
├── ex6
├── ex7
├── ex8
├── ex8o
└── ex9
- Make sure it has the right permissions:
chmod a+x compile-all
- Run the script, sit back and enjoy all your
.java
files compiling:
./compile-all