OnJava8-Examples/README.md

20 lines
1.1 KiB
Markdown
Raw Normal View History

2015-04-20 15:44:35 -07:00
# Thinking in Java 4e (Refreshed) Code Examples
for Java 8
2015-04-20 16:09:20 -07:00
### *Initial draft; not working yet*
2015-04-20 15:56:08 -07:00
## Get the Examples ##
[Click here](https://github.com/BruceEckel/TIJ4-Refreshed-Examples/archive/master.zip) to download the zip file. Unzip the file into a directory of your choice.
## Build the Examples ##
2015-04-23 15:43:15 -07:00
1. Install the latest version of Java 8 (JDK8). (Use the 32-bit version on Windows because of some library issues).
2015-04-20 15:56:08 -07:00
2015-04-20 16:12:35 -07:00
1. Install Apache Ant. Follow the instructions [here](https://ant.apache.org/manual/install.html#getting).
2015-04-20 15:56:08 -07:00
2015-04-21 08:57:51 -07:00
1. Add the path to the directory where you unpacked the examples to your CLASSPATH.
2015-04-23 15:43:15 -07:00
1. Start a command prompt in the directory where you installed the examples. If your installation is successful, you should be able to type **ant build** and build everything. **ant run** will build AND run the examples. You will initially get some error messages instructing you to install specified packages, but eventually you should get through the whole build process successfully.
Report bugs in the examples or in the book [here](https://github.com/BruceEckel/TIJ4-Refreshed-Examples/issues).