I have created an abstract class in wich I want to use StringTokenizer. However when I want to compile it it says that the class StringTokenizer can't be found. The whole abstract class can be found at: http://www.hio.ft.hanze.nl/dori/Strings/Cipher.htm Offcourse when I put it in an Applet I don't name it public class.
I used borland j builder and I used the same import command and I had no problems bro. Is this a program that you cut and pasted from another? I have seen some compilers have problems with that. You may want to just open up a new package and start a new class with the same import command and see if it recognizes the StringTokenizer command. Peace out Steve
It compiles fine for me as well. What are you using to compile it? If you're using a third party compiler (like jikes), you'll need to include in your CLASSPATH the rt.jar file located in the [JDK_HOME]\jre\lib folder. [ March 24, 2003: Message edited by: Dirk Schreckmann ]