Free Java Class Libraries, Source Code, Applets, Beans and Frameworks
Free Java source code to start you off
Free Java Source Code, Class Libraries, Applets, Beans and Frameworks
This page lists free Java class libraries, free Java source code, free Java applets and the like, to make your programming task easier (simply reuse code that have already been tested to do a commonly done task). Other Java pages on this site that you may be interested in include:
- Free Java resources and tools: Java disassemblers, decompilers, Java Virtual Machines (JVM), Java debuggers, etc
- Free Java Compilers, Assemblers and Java Development Kits
- Free Java IDEs and Editors
- Free Programming Editors and IDEs
Looking for a Java book? One frequently recommended book on Java is Java in a Nutshell. I use the first edition of this book myself to learn Java and have found it most usable. The later editions include support for later versions of Java, as well as extended the explanations to make it easier for non-C programmers to understand the book (the first two editions targeted C programmers).
Due to the large size of the later versions of the language, the Java Foundation Classes (which you will need if you are writing Java applets) are covered separately in the companion book, Java Foundation Classes in a Nutshell. If you learn best through studying examples, the author also has a book Java Examples in a Nutshell (a tutorial companion to Java in a Nutshell). You'll probably get your program up fastest if you model it on an existing working example.
Related Pages
- The Beginner's A-Z Guide to Starting/Creating Your Own Website
- Free AJAX Libraries, Source Code, Frameworks, Tools and Resources
- Free ODBC Drivers, SQL Servers and Tools, Database Libraries and Source Code
- Free Sockets, Winsock, TCP/IP, Internet Libraries and Source Code
- How to Register Your Own Domain Name - get one for your software
- How to Make Money From Your Website - monetize your site
- Budget Web Hosting
Disclaimer
The information provided on this page comes without any warranty whatsoever. Use it at your own risk. Just because a program, book, document or service is listed here or has a good review does not mean that I endorse or approve of the program or of any of its contents. All the other standard disclaimers also apply.
Free Java Libraries and Source Code
- Spring Framework

This open source framework is a "layered Java/J2EE application platform" that includes a number of modules. It includes lightweight containers, a common abstraction layer for transaction management, a JDBC abstraction layer, integration with Toplink, Hibernate, JDO and iBATIS SQL Maps, AOP functionality, an MVC web application framework, support classes for writing unit tests / integration tests, etc. It may be used in any J2EE server as well as in non-managed environments. Spring is licensed under the Apache License.
- OpenMap - Open Systems Mapping Technology
OpenMap is an open source JavaBeans toolkit that allows you to "build applications and applets that access data from legacy databases and applications" (quoted from their website). Note that you should read their licence agreement before you blindly use the package, since it is not one of the standard open source licences. (At the time I looked at it, I got the impression that if you make a derivative work from their toolkit, you are also giving them the permission to make a derivative work from your program. But it's best you read the licence agreement yourself.)
- Sun's JavaMail API
Sun's JavaMail API provides you a set of abstract classes that helps you to build mail and messenging applications. This reference implementation is royalty free (but only provided in binary form). You need the JavaBeans Activation Framework to use this (see elsewhere on this page).
- Sun's JavaBeans Activation Framework (JAF)
The JavaBeans Activation Framework, or JAF, to quote verbatim from their website, allow you to use standard services "to determine the type of an arbitrary piece of data, encapsulate access to it, discover the operations available on it, and to instantiate the appropriate bean to perform said operation(s)". This reference implementation is royalty free, and provided only in binary form.
- Java SNMP Package
The Java SNMP Package implements the SNMP protocol with support for the SNMP client and agent operations in SNMP versions 1 and 2 (except the security model of version 2).
- GNU Getopt (Java port)
As is obvious from the name, this is a Java port of the GNU getopt() command line parser.
- QFLib
This Java library is compatible with JDK 1.1 to 1.4 (inclusive). The library supports the following: a logging system, GUI stuff, "especially a JTable extension that supports sorting and filtering with only a few lines of code", and a collection of miscellaneous utilities (command line parser, thread pool, etc).
- ObjectDB for Java/JDO Free Database Edition
ObjectDB for Java/JDO is an Object Database Management System (ODBMS) written in Java. It is JDO compliant (Java Data Objects), allows your application to query the database using JDO Query (JDOQL), allows you to have up to 5,000 Java objects per database, uses a single file database, etc. The free edition may only be used for personal, non-commercial purposes.
- Cyrus SASL
To quote, "the Cyrus SASL library is a generic library for SASL authentication, as used in SMTP and IMAP protocols. It's used for authentication by the Cyrus IMAP server as well as the Sendmail 8.10 release." It also includes a Java SASL library. Note that the link above is to an FTP directory. Look for a file like "cyrus-sasl-1.5.20.tar.gz" (the numbers may change when newer versions are released).
- GNU Classpath
This is a free replacement for Sun's proprietary class libraries. It is still currently under development. The intention is for the released version to be fully compatibile with Java 1.1 and mostly compatible with 1.2.
- Biss AWT
According to its web site, this Java framework provides approximately 150 classes for building graphical applications. Unlike java.awt which uses the native operative system's look and feel, this one has its own appearance. Source code is provided. It has support for pop-up menus, notebooks, hierachial lists, etc, without the need for a JDK 1.1 native library. It is licensed under the GNU LGPL.
Related Pages
- Tips on Choosing a Good Domain Name - get one for your software
- How to Choose a Good Web Host
- Free Compiler Construction Tools
- Free Version Control Software
- Free File and Folder Comparison (Diff/Merge) Tools
- How to Design and Publish Your Website with Nvu (Tutorial)
- How to Create a Website with Dreamweaver CS3 (Tutorial)
- Which Web Host Do You Recommend? (FAQ)
Can't Find What You're Looking For?
Newest Pages
- Free Programmer's Fonts
- The Decline and Fall of Internet Explorer 6: Implications for Webmasters
- How to Point a Domain Name to Your Website (Or What to Do After Buying Your Domain Name)
- Should You Choose a Linux or a Windows Web Hosting Package? Is There Such a Thing as a Mac Web Host?
- Free Font Manager Software
- What Does It Mean to Park a Domain Name? Domain Name Parking Explained
- Free Text User Interface Programming Libraries and Source Code
- How to Redesign a New Website without Affecting the Old Site Until the New One is Completely Finished (Using Dreamweaver)
- How to Change the Disk Signature of a Drive Without Losing Existing Data or Reformatting
- Is There a WYSIWYG Editor for PHP? Should I Use PHP or HTML for My Website?
- How to Add a CAPTCHA Test to Your Feedback Form Script: Reducing Spam in Your Contact Form
Popular Pages
- How to Create/Start Your Own Website: The Beginner's A-Z Guide
- How to Register Your Own Domain Name - how to get your own domain name
- How to Create a Website with Dreamweaver CS4 (Dreamweaver Tutorial)
- How to Create a Bootable Windows XP Setup CD/DVD on a Preinstalled Windows System
- Free Partitioning Software - Copy, Create, Move, Resize, Convert, Undelete Partitions
- Free Data Recovery, File and Partition Recovery, Undelete and Unformat Software
- How to Create an Emergency Windows Rescue CD
- Free DVD Authoring and Creation Software
- Free CD and DVD Burners and Copying Software
- Free Hard Disk Backup and Restore, Hard Disk Image and Cloning Utilities
How to Link to This Page
It will appear on your page as:
Free Java Source Code, Class Libraries, Applets, Beans and Frameworks
