...
>> causes. I wish Sun could figure out some way to break it down into
>> subexceptions.
>
>But a rather obvious starting point in this case is to include the
>driver file which contains the classes that the OP is actually trying to
>load dynamically!

Signature
Andrew Thompson
http://www.physci.org/
>Added to that, it is a hint to the OP that most compile/run-time
>errors can be explored/investigated at the mindpord site. So
>the *next* time the OP sees a NoClassdefFoundError, or an
>AccessControlException, or an.. (etc) they know a good
>place to start, in investigating it.
As Andrew usually puts it "this is not a help desk".
In my view you generally should NOT hand the solution on a plate. You
should give general information useful to solve that class of
problems. In the process of applying those hints, the questioner
becomes a better programmer.
There is a matter of balance. If you give too general a hint, the
student becomes discouraged and gets the idea he/she is hopeless. If
you give too specific a hint, they don't learn anything. Just right,
and the student gets a great rush of accomplishment, (which reinforces
learning), and learns the most about that class of problem.
If the questioner is an accomplished Java programmer, simply handing
over the answer is appropriate. They have probably already tried the
usual mechanisms and for some reason went off on some wrong tangent in
understanding.
The other way I look at this is, the questioner is NOT the primary
intended audience. It is all the other students. The other students
are not interested in the minutiae of the problem. They want to learn
something they can apply to THEIR problems. So you should try to give
advice that is generally applicable.
What I am often doing when I come in late to the conversation is
pointing out the student could have handled this on his own simply by
looking up a few keywords in the Java glossary. Then there is no
delay waiting for an answer that may never come, or may come with a
large dose of invective.

Signature
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com
Andrew Thompson - 02 Dec 2007 14:03 GMT
>>Added to that, it is a hint to the OP that most compile/run-time
>>errors can be explored/investigated at the mindpord site. So
>>the *next* time the OP sees a NoClassdefFoundError, or an
>>AccessControlException, or an.. (etc) they know a good
>>place to start, in investigating it.
...
>There is a matter of balance. ...
Thank you for that quote. It is ..nice to hear you express
something that sounds surprising* (to me).
* Your goodwill and good intention is not a question (worthy
of the slightest thought).

Signature
Andrew Thompson
http://www.physci.org/
Andrew Thompson - 02 Dec 2007 14:36 GMT
...
>The other way I look at this is, the questioner is NOT the primary
>intended audience. It is all the other students. The other students
>are not interested in the minutiae of the problem. They want to learn
>something they can apply to THEIR problems. So you should try to give
>advice that is generally applicable.
F'cken Yay. (sorry - did not mean to interrupt this sound
exposition, but I was ..'possessed by a great spirit' (shrugs
vaguely - that'll do)).
>What I am often doing when I come in late to the conversation is
>pointing out the student could have handled this on his own simply by
>looking up a few keywords in the Java glossary. Then there is no
>delay waiting for an answer that may never come, or may come with a
>large dose of invective.
Well stated.

Signature
Andrew Thompson
http://www.physci.org/
Andrew Thompson - 02 Dec 2007 14:56 GMT
>...
>What I am often doing when I come in late to the conversation is
[quoted text clipped - 4 lines]
>
>Well stated.
In fact, to take that (a little) further, my 'homepage' at
the moment is a simple page on my local file-system
that has 'handy links' as well as a 'search form' pointed
at Google, that can specify
- search string
- file type, &
- domain search
For the file type and domain search, I have drop down lists.
The domain search includes 8 Java related domains - *one
of those 8* is mindprod. The mindprod site rates highly in
my 'search for knowledge' in relation to the Java programming
language.

Signature
Andrew Thompson
http://www.physci.org/
Andrew Thompson - 02 Dec 2007 15:04 GMT
...
>..'search form' pointed at Google,
Speaking of which. Drop this in some HTML. Very
handy (if I say so myself).
<form method='get' action='http://www.google.com/search'>
Text:
<input type='text' size='20' name='as_q'>
Filetype:
<select name='as_filetype' size='1'>
<option value='' selected>All
<option value='java'>Java
<option value='jnlp'>JNLP
<option value='hs'>HelpSet
<option value='au'>Sound - AU
<option value='wav'>Sound - Wav
<option value='aiff'>Sound - AIFF
<option value='jpg'>Image - JPEG
<option value='gif'>Image - GIF
<option value='png'>Image - PNG
</select>
Site:
<select name='as_sitesearch' size='1'>
<option value='' selected>All
<option value='java.sun.com'>Sun
<option value='forum.java.sun.com'>Sun - Forums
<option value='bugs.sun.com'>Sun - Bug DB
<option value='ant.apache'>Apache - Ant
<option value='mindprod.com'>Mindprod
<option value='physci.org'>PhySci
<option value='java.net'>Java.net
<option value='dev.java.net'>Java.net - Dev
</select>
<input type='submit'>
</form>
HTH

Signature
Andrew Thompson
http://www.physci.org/