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


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

Re: NoClassDefFoundError

Newsgroups comp.lang.java.programmer
Date 2013-01-01 00:25 -0800
References <kbth46$g3$1@speranza.aioe.org> <50e24bb4$0$283$14726298@news.sunsite.dk>
Message-ID <4dccdbc3-8447-4fb2-8483-ebe11434ee69@googlegroups.com> (permalink)
Subject Re: NoClassDefFoundError
From Lew <lewbloch@gmail.com>

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