Adding a class to JDK?

My teacher provided me with a class that allows me to get input from the user. In order to use this class we have to copy and paste it into every folder which this class needs to be used...having 20 different folders for 20 different projects makes this a pain in he butt since I have to keep copying that .class file every time I make a new folder.

Is there a more conventional way of doing this? iI hought maybe I could add it to the JDK and import it, but I have no idea how to do this. Whats the best thing to do?

Thanks in advance,

Marcelo

P.S. Feel free to e-mail me mat3v@virginia.edu

[622 byte] By [TNC2000MAT] at [2007-9-30 17:39:45]
# 1
You put it in one folder (like "utility" or "util").Then you add that directory to your class path.
jschell at 2007-7-6 14:08:27 > top of Java-index,Administration Tools,Sun Connection...
# 2
That is exactly what I'm trying to figure out. How to modify the class path so that I can import it. How do I go about that? I don't know anything about modifying class pahts etc so an in depth explanation would be appreciated.Thanks,Marcelo
TNC2000MAT at 2007-7-6 14:08:27 > top of Java-index,Administration Tools,Sun Connection...
# 3
try, if this worksjavac -classpath ".;c:\util\readclass.class" thisClass.javawhere readClass.class is the file you use for reading in all foldersthisClass.java is the class that is using the read class utility
AnjaliY at 2007-7-6 14:08:27 > top of Java-index,Administration Tools,Sun Connection...
# 4
> try, if this works> > javac -classpath ".;c:\util\readclass.class" thisClass.javaActually it would be....javac -classpath ".;c:\util\" thisClass.javaAnd to run it....java -classpath ".;c:\util\" thisClass
jschell at 2007-7-6 14:08:27 > top of Java-index,Administration Tools,Sun Connection...