So, I’m a student at University of Phoenix and my curriculum will eventually cover Java. Having only worked with C, C++, C#, and VB (6, .NET) I have never tried Java on any development level.
Ideally, I’d like to know Java for its portability, and then I could program for my BlackBerry ;)
I rummaged through the eBooks that I have access to as a UoP student and found one that is most decidedly the book I’ll be using in my future course, The Fundamentals of Java Introductory Course by Ken Lambert and Martin Osborne.
I crack open the freshly downloaded PDF, input my UoP credentials and start skimming through the book. I try the Hello World example, having installed the latest Java 2 SDK and assigning the proper PATH variables so that I have instant access to javac for compilation. Works flawlessly. I try the second example, which uses user input (insert OOooo’s and AAAhhhhh’s) to convert from Fahrenheit to Celsius and I start getting compilation errors. The code calls for the import of TerminalIO (which I assumed was a normal dependency in Java, like stdio in C++) and the compiler was failing to locate my TerminalIO.
I Google the issue and come up mostly empty handed, just now understanding that TerminalIO is some crazy specific package that most have no clue about. Thankfully persistence paid off, and I found it. THEN I didn’t know what to do with it. This was starting to become reminiscent of the trouble I remember Java causing me when I wasn’t really familiar with any language at all.
Since I’ve got a solution, here’s what you do if you’re in my shoes:
Download BreezySwing, TurtleGraphics, and TerminalIO from Lamborne
Lamborne, one of the writers for this book, makes lavish use of something he created himself to simplify the learning process. What he fails to do is give worthwhile information on how to get it. The book mentions that you can get these packages in APPENDIX H. A Random unreferenced when needed appendix. Mentions a link that otherwise is nowhere to be found. Wonderful.
This is the link to BreezySwing, also utilized in the book. On the downloads page you’ll find all of the custom packages referenced in the book. Download the zipped packages.
Copy the .jar files to your lib/ext directory
My computer has five of these directories. The one that worked for me was C:\j2sdk1.4.2_18\jre\lib\ext. search your C drive for ext folders. Copy all of the .jars you need into the ext folder, and you won’t need the other misc files from the downloads.
Try compilation again
Should work now if you’ve got the jars in the right location.