I successfully compiled the Geometry Package. and when i typed out the code as shown in the book, my IDE flags errors in importing the Geometry package.
The screenshot of my IDE, the error, and the Geometry package files is shown:
I'm not sure what went wrong. Please help. Thanks
I tried the method of creating a Geometry.jar from the Geometry package and Copy-Paste Geometry.jar into my jdk1.7.0 hierachy (guide on page 198) and the resulting TryPackage.java file is able to compile and run properly. I guess this is one way to get things done.
However, the IDE still flags the same 'Package Geometry does not exist' error. I'm interested to solve this.