Geeks With Blogs

News INETA Community Speakers Program
GeeksWithBlogs.net: WTFNext's hosting!

View Stacy Vicknair's profile on LinkedIn


WTF Next? Dev ramblings from a master of nothing.

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.

Go here:

http://faculty.cs.wwu.edu/martin/software%20packages/BreezySwing/Default.htm

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.

 

Posted on Thursday, October 16, 2008 2:55 PM Personal , Other | Back to top


Comments on this post: Fundamentals of Java: TerminalIO does not exist

# re: Fundamentals of Java: TerminalIO does not exist
Requesting Gravatar...
thanks mate.
Left by teegzjay on Jan 12, 2009 7:13 PM

# re: Fundamentals of Java: TerminalIO does not exist
Requesting Gravatar...
Just wanted to say thanks for figuring this out. I stupidly fought with the convert example for a couple hours, thinking it had something to do with an outdated JDK or Eclipse failing to find the package. Persistence paid off, too, as I found your solution! Thanks again.
Left by theplague42 on Aug 20, 2012 2:19 PM

Your comment:
 (will show your gravatar)


Copyright © Stacy Vicknair | Powered by: GeeksWithBlogs.net