Hi there, Why do I get this exception ? Code and error message is appended below.
1. Exception message ===================== javac RhymingWords.java RhymingWords.java:28: cannot resolve symbol symbol : class ReverseThread location: class RhymingWords new ReverseThread(out, in).start(); ^ RhymingWords.java:41: cannot resolve symbol symbol : class SortThread location: class RhymingWords new SortThread(out, in).start(); ^ 2 errors
The compiler couldn't find the ReverseThread.java and SortThread.java in the current directory. You need these two files in order to compile successfully.
You need not the java files inside of the same directory. You need the CLASS files in the same directory. OR, you can have all of the source (.java) files in the same directory, and then compile like this:
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad: