My Java Utilities

Files

For the CUI framework, you will need the following files:

Console.java

AppError.java

To add "commands as objects" to the CUI framework, also download:

Command.java

CommandConsole.java

My lexical analysis utilities are in:

Lex.java

I/O utilities for beginners are in:

IOUtils.java

My code profiler is in:

Profiler.java

For the SIM framework you will need the following files:

BinaryHeap.java

EmptyQueueException.java

Event.java

OverflowException.java

PriorityQueue.java

Simulator.java

The GUI framework consists of the following classes:

AppView.java

AppWindow.java

Controller.java

Model.java

Gateway.java

FrameworkUtils.java

FileSystemGateway.java

FileMenuController.java

HelpMenuController.java

AboutMenuController.java

MenuListenerAdapter.java

AppError.java

The Simple Server Framework (SSF) is contained in the following files:

SimpleClient.java

Server.java

RequestHandler.java

Correspondent.java

The Graph API

graphs

Some experimental utilities for thread synchronization and management are in:

Semaphore.java

Lock.java

ThreadManager.java

WorkerThread.java

Documentation

The Javadoc pages for jutil are in the docs subdirectory.

There's a brief tutorial on the CUI framework in cui.htm.

There's a brief tutorial on the SIM framework in simFrame.htm

There's a brief tutorial on the Simple Server framework in sockets.htm

Deployment

Create a directory called jutil.

Place all of the downloaded files into this directory.

Add the parent directory of jutil to your classpath environment variable.

Most of the .java files have corresponding .class files you can also download. Otherwise, change directories to the parent directory and compile everything:

javac jutil\*.java

Windows Example

Assume the full path of your jutil directory is:

c:\projects\jutil

Using the Start/Control Panel/System/Advanced/Environment Variables tool:

Edit the classpath variable by appending:

;c:\projects

The new classpath will take effect in all new DOS windows.

Alternatively, in each DOS window where you are using javac type:

set classpath=%classpath%;c:\projects