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


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

Re: NoClassDefFoundError

Newsgroups comp.lang.java.programmer
Date 2013-01-08 22:37 -0800
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>
Message-ID <3b967282-1f26-4e52-b8fc-12064dac8802@googlegroups.com> (permalink)
Subject Re: NoClassDefFoundError
From Lew <lewbloch@gmail.com>

Show all headers | 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