Troubleshooting

Loading Classes

Q1:Why do I get a ClassNotFoundException when I try to load a class?
The class probably isn't in your classpath or you didn't use the correct name. Remember that it's a classname and not a file, so the name should have periods and no slashes. It shouldn't end in .class either. Also, make sure you use the fully qualified classname including the package.
Q2:Why can't I instantiate a class with newInstance?
That usually happens when the default constructor is private or protected. The only thing you can do is use Reflection and try to find a public constructor.

Using Wlib

Q1:Why won't any of the Echo service examples compile?
You probably don't have Wlib in your classpath.

Get Special Edition Using Java™ 2 Enterprise Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.