This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I'm following an example in my text book "Java Software Solutions" -page 289- and am getting an error: "cannot resolve symbol symbol: class Sorts import Sorts" when compiling. I've seached through the Sun documentation as best I could and did not find anything under a search for import Sorts. Is import Sorts; valid? Regards, Michael
Hi Michael, import Sorts; is only valid if you have a file called Sorts.class in the same directory as the example you are trying to compile. Regards, Manfred.
Joined: Oct 06, 2000
So my understanding is that the example in the book is using a class as defined by the Authors/3rd Party and is not part of the JDK, hence the compilers inability to find it. If that is the case I think I can find where their class is and install it. Thanks.
Originally posted by Manfred Leonhardt: Hi Michael, import Sorts; is only valid if you have a file called Sorts.class in the same directory as the example you are trying to compile. Regards, Manfred.
Which book are you using and where is the example?? Usually if another class is referred to in an example it one was was defined in a previous example in the same Chapter ... take a look if there is another example in the Chapter that uses a class called Sorts?
Pounding at a thick stone wall won't move it, sometimes, you need to step back to see the way around.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com