Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!us.feeder.erje.net!goblin1!goblin.stu.neva.ru!feeder2.news.elisa.fi!feeder1.news.elisa.fi!uutiset.elisa.fi!7564ea0f!not-for-mail From: Jukka Lahtinen Newsgroups: comp.lang.java.programmer Subject: Re: error discription and solution Organization: N/A References: <7ad4a15c-7e35-4d08-a61f-4d673f5d4ef0@googlegroups.com> <081fg9thirl4u17mdbeq8q3oocgtbakr7t@4ax.com> X-no-archive: yes Content-Transfer-Encoding: 8bit Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:bUu0AWe+EZ5H40VoWUL+pmgHPfE= MIME-Version: 1.0 Content-Type: text/plain Lines: 18 Date: Wed, 26 Feb 2014 23:39:15 +0200 NNTP-Posting-Host: 91.155.88.191 X-Complaints-To: newsmaster@saunalahti.com X-Trace: uutiset.elisa.fi 1393450756 91.155.88.191 (Wed, 26 Feb 2014 23:39:16 EET) NNTP-Posting-Date: Wed, 26 Feb 2014 23:39:16 EET Xref: csiph.com comp.lang.java.programmer:27605 Roedy Green writes: > I would hope Oracle could find some way to subclass > NoClassDefFoundError the way IOException is, to give you a better hint > on just what you screwed up, or perhaps to include more hints in the > message. > Tracking down NoClassDefFoundError is one of the most onerous errors. I don't think it's so easy to subclass it. After all, when the compiler or jre doesn't find a class, it probably has no way to know WHERE the class really is (if anywhere) or WHY it isn't anywhere that it looks for classes. It only knows where it DIDN'T find the missing classes. Probably about the only thing it could do is tell all the places where it looked for, and didn't find, the missing class definition. -- Jukka Lahtinen