May 2001
Intermediate to advanced
1088 pages
30h 13m
English
| 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. |
| Q1: | Why won't any of the Echo service examples compile? |
| You probably don't have Wlib in your classpath. |
Read now
Unlock full access