Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #21239

Re: NoClassDefFoundError

X-Received by 10.66.86.130 with SMTP id p2mr8109448paz.22.1357713431921; Tue, 08 Jan 2013 22:37:11 -0800 (PST)
Received by 10.50.191.131 with SMTP id gy3mr158914igc.1.1357713431693; Tue, 08 Jan 2013 22:37:11 -0800 (PST)
Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!nntp.club.cc.cmu.edu!newsfeed.news.ucla.edu!usenet.stanford.edu!ld4no5447344pbb.0!news-out.google.com!6ni95569pbd.1!nntp.google.com!f6no7890634pbd.1!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
Newsgroups comp.lang.java.programmer
Date Tue, 8 Jan 2013 22:37:11 -0800 (PST)
In-Reply-To <kcj1q6$fkd$1@speranza.aioe.org>
Complaints-To groups-abuse@google.com
Injection-Info glegroupsg2000goo.googlegroups.com; posting-host=173.164.137.214; posting-account=CP-lKQoAAAAGtB5diOuGlDQk0jIwmH0T
NNTP-Posting-Host 173.164.137.214
References <kbth46$g3$1@speranza.aioe.org> <50e24bb4$0$283$14726298@news.sunsite.dk> <kcd41t$bcr$1@speranza.aioe.org> <50ea1641$0$288$14726298@news.sunsite.dk> <kcj1q6$fkd$1@speranza.aioe.org>
User-Agent G2/1.0
MIME-Version 1.0
Message-ID <3b967282-1f26-4e52-b8fc-12064dac8802@googlegroups.com> (permalink)
Subject Re: NoClassDefFoundError
From Lew <lewbloch@gmail.com>
Injection-Date Wed, 09 Jan 2013 06:37:11 +0000
Content-Type text/plain; charset=ISO-8859-1
Xref csiph.com comp.lang.java.programmer:21239

Show key headers only | View raw


emf wrote:
> I really can't see why packages are preferable, but the jar option is OK.

The two are independent of each other.

Packages are a way to organize classes. Don't use the default (unnamed) package.

Why is explained in the Java tutorial.

"To make types easier to find and use, to avoid naming conflicts, and to 
control access".

You really should never use the default package.

JARs are a way to distribute applications. Different thing. JARs contain 
packages.

Learn to do it right. If you were to have done the research into your own 
question, that would have made it a useful question. Instead, you used the 
question, or rather the fact that you were ignorant of the answer, as a 
reason not to do the right thing.

This is not the way to become a good programmer. Instead, when you encounter 
a question, seek to answer it.

Then instead of "I don't see why" and perennial lack of skill in Java or 
whatever, you'll have, "I got this!"

-- 
Lew

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

NoClassDefFoundError emf <emfril@gmail.com> - 2012-12-31 21:24 -0500
  Re: NoClassDefFoundError Arne Vajhøj <arne@vajhoej.dk> - 2012-12-31 21:36 -0500
    Re: NoClassDefFoundError Lew <lewbloch@gmail.com> - 2013-01-01 00:25 -0800
      Re: NoClassDefFoundError lipska the kat <lipskathekat@yahoo.co.uk> - 2013-01-01 08:56 +0000
        Re: NoClassDefFoundError Lew <lewbloch@gmail.com> - 2013-01-01 01:12 -0800
          Re: NoClassDefFoundError lipska the kat <lipskathekat@yahoo.co.uk> - 2013-01-01 09:35 +0000
            Re: NoClassDefFoundError Magnus Warker <magnux@mailinator.com> - 2013-01-02 01:32 +0100
          Re: NoClassDefFoundError Roedy Green <see_website@mindprod.com.invalid> - 2013-01-02 09:49 -0800
            Re: NoClassDefFoundError Arne Vajhøj <arne@vajhoej.dk> - 2013-01-02 19:37 -0500
    Re: NoClassDefFoundError emf <emfril@gmail.com> - 2013-01-06 19:19 -0500
      Re: NoClassDefFoundError Arne Vajhøj <arne@vajhoej.dk> - 2013-01-06 19:26 -0500
        Re: NoClassDefFoundError emf <emfril@gmail.com> - 2013-01-09 01:18 -0500
          Re: NoClassDefFoundError Lew <lewbloch@gmail.com> - 2013-01-08 22:37 -0800
          Re: NoClassDefFoundError Arne Vajhøj <arne@vajhoej.dk> - 2013-01-09 21:36 -0500
            Re: NoClassDefFoundError Lew <lewbloch@gmail.com> - 2013-01-09 18:43 -0800
      Re: NoClassDefFoundError Lew <lewbloch@gmail.com> - 2013-01-06 17:29 -0800
  Re: NoClassDefFoundError Lew <lewbloch@gmail.com> - 2013-01-01 01:26 -0800
    Re: NoClassDefFoundError lipska the kat <lipskathekat@yahoo.co.uk> - 2013-01-01 09:38 +0000
  Re: NoClassDefFoundError Roedy Green <see_website@mindprod.com.invalid> - 2013-01-01 12:25 -0800

csiph-web