aspose file tools*
The moose likes Beginning Java and the fly likes StringTokenizer Class not Found Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "StringTokenizer Class not Found" Watch "StringTokenizer Class not Found" New topic
Author

StringTokenizer Class not Found

Adam Polak
Greenhorn

Joined: Oct 28, 2002
Posts: 23
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.
Andee Weir
Greenhorn

Joined: Sep 13, 2002
Posts: 12
For what it's worth I took your code & put in Websphere studio - it had no problem compiling (except for your decrypt method not returning a String).
Andee
Gabriel White
Ranch Hand

Joined: Mar 02, 2003
Posts: 233
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
Dirk Schreckmann
Sheriff

Joined: Dec 10, 2001
Posts: 7023
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 ]

[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
Adam Polak
Greenhorn

Joined: Oct 28, 2002
Posts: 23
I found the problem on my own people but thanks anyway!
Dirk Schreckmann
Sheriff

Joined: Dec 10, 2001
Posts: 7023
So, what was the problem?
Adam Polak
Greenhorn

Joined: Oct 28, 2002
Posts: 23
Ehm...kinda feel like a dumb ass about it...There was a typo while importing Tokenizer :roll:
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: StringTokenizer Class not Found