Re: compiling error
"Shash Chatterjee" <[email protected]>
| Newsgroups | gmane.comp.java.keel.user |
|---|---|
| Message-ID | <[email protected]> |
Stefan, > hi keel-users > > i've got a compiling error (below) - as soon as i try to integrate > the helloworld-application from the hands-on-tutorial. if i assemble- > deploy without it, everything runs fine... can anybody help me? > cd to keel-build, and do an "ant clean" first. if it fails delete keel-build/../*/build (i.e. everywhere there is a "build" dir). Then run "ant assemble-deploy" and see how far you get. Looks like the keel-core JAR is corrupted, according to the error message. > and another question: all my imports in eclipse can't be resolved as > long as i don't add the corresponding jars. but what librarys should > i add and from what directory? i can find the same jars in many directories...? > I am guessing that you have improted Keel as a single project, which won't work. I'd create a fresh workspace, say D:/myworkspace, then start Eclipse with eclipse -data D:\myworkspace, then naviagte each dir. under the main Keel tree as "Import from filesystem". Each of those directories already have provided .project/.classpath files. If you find you are having to alter classpaths (and add JARs) in Eclipse, that is a sign that something is wrong. > thanks and greetings > stefan > > ---------------------------- > > build: > [echo] Compiling keel-server ... > [javac] Compiling 75 source files to > D:\java\Keel\keel-server\build\classes > [javac] > D:\java\Keel\keel-server\src\java\org\keel\clients\AbstractClientCon > nector.java:20: cannot access org.keel.services.model.KeelRequest > [javac] bad class file: > D:\java\Keel\keel-core\build\lib\keel-core-2.0.jar(o > rg/keel/services/model/KeelRequest.class) > [javac] class file contains wrong class: > keel-core.src.java.org.keel.service > s.model.KeelRequest > [javac] Please remove or make sure it appears in the correct > subdirectory of > the classpath. > [javac] import org.keel.services.model.KeelRequest; > [javac] ^ > [javac] 1 error > > BUILD FAILED > file:D:/java/Keel/keel-build/build-common.xml:145: Compile failed; > see the compi ler error output for details. > > _______________________________________________ > User mailing list > [email protected] > http://lists.keelframework.org/listinfo.cgi/user-keelframework.org