Re: java.lang.NoClassDefFoundError: Application

From: Harald Niesche (haral..heco.de)
Date: Fri Jul 02 2004 - 06:41:51 EDT

  • Next message: Kaj Hejer: "Re: java.lang.NoClassDefFoundError: Application"

    Kaj Hejer wrote:

    > Thanks for answering!

    You're welcome!

    > At 12:07 +0200 02-07-04, Harald Niesche wrote:
    >> > Any ideas?
    >>
    >> Are the classes really there? Application.class should be inside
    >> build/YourApp.woa/Contents/Resources/Java
    >
    >
    >
    > When running eclipse 3.0M9 with WOLips 1.1.0.55 the .class files are built
    >
    > projectdir/output/classes
    >
    > (f.eks. projectdir/output/classes/Application.class)
    >
    > not in
    >
    > projectdir/YourApp.woa/Contents/Resources/Java
    >
    >
    > The same goes for 3.0 release with WOLips 1.1.0.62.
    >
    > Strange?

    No, that's perfectly normal. The JDT JavaBuilder creates the .class
    files in the output folder you set in the Java Buildpath Properties.

    It's the incremental builder's job to copy them over to the folder
    build/YourApp.woa/Contents/Resources/Java

    For this to work, the patterns in the files
    projectdir/ant/classes.include.patternset and
    projectdir/ant/classes.exclude.patternset must be correct -- and I'm
    unsure what the defaults are for those. Can you check these files? I
    have the following entries:

    projectdir/ant/classes.include.patternset:
    -----------------------8<--------------------
    *.class
    *.properties
    -----------------------8<--------------------

    projectdir/ant/classes.exclude.patternset:
    -----------------------8<--------------------
    build.properties
    -----------------------8<--------------------

    ... and it seems to work correctly.

    >
    > In my Console.log I get the following with eclipse 3.0 after cleaning
    > the project:

    That's just some debug output I left there for now. You can check if it
    mentions any .class files ... as well as other stuff you't like to have
    in the build output. If you see "//ignore: ..." lines for stuff you'd
    like included, you should try tweaking the patterns until they are
    included ...

    >
    > ===== Fri Jul 02 2004 ===== 12:17:29 Europe/Oslo =====
    > <incremental build>
    >
    > //ignore: P/nettlogg
    >
    > //ignore: L/nettlogg/wsresources.include.patternset
    >
    > //ignore: L/nettlogg/wsresources.exclude.patternset
    >
    > //ignore: L/nettlogg/uio.css
    >
    > //ignore: F/nettlogg/src
    >
    > //ignore: L/nettlogg/src/_Url.java
    >
    > ...
    >
    >
    > preparing with 601 project nodes took: 526 ms
    >
    > </full build>
    >
    > building structure took: 2493 ms
    >
    > copying classes took: 170 ms
    >
    > </incremental build>
    >
    >
    >
    > -kaj :)



    This archive was generated by hypermail 2.0.0 : Fri Jul 02 2004 - 06:40:43 EDT