Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Where can you find libraries?  RSS feed

 
Alec Articalla
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Let's try this again:
Where can you download libraries for a Java program, such as "KeyboardReader" and "TurtleGraphics"? They did not come with my program, and I would appreciate a link. Thanks
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24217
38
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Neither of these is the name of a class in the standard libraries. If you've got a program that requires them, then the first place to look would be wherever that program came from.
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to JavaRanch, Alec!
In your initial post, which Marilyn moved to the IDEs forum as you'd seemed interested in configuring JCreator, an IDE, to use some third party API (which is somtimes known as a library).
Note that I said "third party". If you peruse the documentation for the Java 2 Standard Edition API, you'll notice that it contains no classes which are named "KeyboardReader" or "TurtleGraphics". So, these must be some classes which a book or a tutorial you're following has mentioned. It's likely that the author(s) of the book or tutorial also authored these two (missing) classes. Hopefully, that same book or tutorial mentions a web site or came with a CD that contains the classes you seek. Otherwise, I'd suggest a google search for them, and perhaps browsing of publisher's web site. You should be aware that it's likely that more than one developer has created classes with these same names, and these classes will probably behave a bit differently.
Now, when you've located something, if it's source code, you'll need to save it in files with the appropriate names - likely "KeyboardReader.java" and "TurtleGraphics.java". Then you'll need to compile these source files into class files, which will create files with the ".class" extension. These class files then need to be "locatable" your CLASSPATH by the Java compiler. For help in doing that, take a look at the HowToSetTheClasspath document in our wiki.
[ December 04, 2003: Message edited by: Dirk Schreckmann ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!