Robotics C++ Physics II AP Physics B Electronics Java Astronomy Other Courses Summer Session  

Packages

 

 

Introduction

A package is a collection of related classes and interfaces. Packages are a way of relating certain classes and interfaces so that they can be referred to and imported as a group. This grouping also eliminates potential class name conflicts. Since all classes in Java are grouped in packages, we cannot do much in Java without them.

Standard Java Packages

Java provides eight standard packages. In addition, this course addresses the newest one, javax.

java.lang

java.io

java.awt java.awt.image java.util java.net java.applet javax java.awt.peer

AP Packages

 

Listing

 

Installation

 

Create a directory on C drive named gpdraw

Place the gpdraw.jar file in it

 

Create a project

Select Project, Properties, Build Path, Libraries

Add External Jar

Search for the jar installed above and select it