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


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

Re: NoClassDefFoundError

X-Received by 10.66.86.198 with SMTP id r6mr546053paz.36.1357028747854; Tue, 01 Jan 2013 00:25:47 -0800 (PST)
Received by 10.50.0.204 with SMTP id 12mr13740722igg.9.1357028747784; Tue, 01 Jan 2013 00:25:47 -0800 (PST)
Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!f6no3424496pbd.1!news-out.google.com!s9ni70930pbb.0!nntp.google.com!kr7no12125288pbb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
Newsgroups comp.lang.java.programmer
Date Tue, 1 Jan 2013 00:25:47 -0800 (PST)
In-Reply-To <50e24bb4$0$283$14726298@news.sunsite.dk>
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>
User-Agent G2/1.0
MIME-Version 1.0
Message-ID <4dccdbc3-8447-4fb2-8483-ebe11434ee69@googlegroups.com> (permalink)
Subject Re: NoClassDefFoundError
From Lew <lewbloch@gmail.com>
Injection-Date Tue, 01 Jan 2013 08:25:47 +0000
Content-Type text/plain; charset=ISO-8859-1
Content-Transfer-Encoding quoted-printable
Xref csiph.com comp.lang.java.programmer:20846

Show key headers only | View raw


Arne Vajhøj wrote:
> emf wrote:
>> After a long time, I tried to create an applet. In eclipse [sic] it runs
>> perfect as an applet, but in the webpage in the browser it gives a
>> NoClassDefFoundError.

Hmm. Could there be a dependent JAR missing in the browser context?

>> I even tried my very first program, HelloWorldApplet, but I got again

Example, please?
http://sscce.org/

>> the same problem.

Which would be ...?

Yes, yes, you said 'NoClassDefFoundError'. What was the *exact* message?

What is the code?

>> What kind of problem is this? 

http://docs.oracle.com/javase/7/docs/api/java/lang/NoClassDefFoundError.html

You did read this before, yes?

It explains exactly what kind of problem this is.

RTFM is sooo useful.

>> Is it a compilation issue?

Really? Come on.

>> Or is it an eclipse [sic] problem? 

Given that it doesn't happen in Eclipse, according to your report, I'd have to 
guess no.

>> At this stage I would be happy to have the HelloWorldApplet run: I feel if I this runs, my other program will run too.

"Feel"? Logic should rule.

> Impossible to say without more info.

Quite.

Although it's certainly possible to say this isn't a compilation error, 


        given that it happened at runtime


        and not during compilation.


> It could be that the class/jar file is not correctly placed
> or is not correctly served by the web server.

Or not referenced properly in the various tags and applet JAR.

How are you packaging the applet?

How are you specifying its classpath?

-- 
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