Originally posted by: wizzz
How do I copy the .class files to the class path?
I don't know how to do it... Could you give me an example?
Several ways to do this:
1) include the archive file (typically, something ending in .jar) in your class path. This can be specified either as an environment variable (in Windows, CLASSPATH) or as a command-line argument to the Java compiler/virtual machine.
2) copy the individual class files into the appropriate directory with your class files. Thus, if your library was in package com.foo and your code was in com.bar, you'd want to have a directory structure which had a com directory with subdirectories foo and bar (each one of which contained their respective class files).
3) assuming you're using a Java 1.2 or later environment, copy the archive file into the subdirectory jre/lib/ext in your Java SDK.