GWT Compilation - gwt

I am facing problem while GWT compilation. I am using ANT build file in which i run 'build' target. when execution comes to 'gwtc' target the compilation sometimes stop or somtime it compiles successfully. Can anyone please tell me what i am doing wrong ?
I am using GWT2.0

HELLO zeeshan Brother
I got the answer!!!
1] Remove unused import from project
2] Don't Use server side object on client side
That's it
Your problem 100% Solve

I have used a GWT's app creator. Which solves problem. Thanks

Related

Using an ANTLR Lexer For Syntax Coloring: Module excluded from the target platform error

I'm new to Netbeans Platform Development and following this tutorial.
When I try to build the project I get this error:
Module org.netbeans.modules.editor.util excluded from the target platform
There are apparently no errors in the app.
I'm using
NB 8.0
JDK jdk1.7.0_45
OS Win 8.1
What might be going wrong?
UPDATE:
Somehow the module was excluded via the disabled.modules in the platform.properties properties file.
When i comment it out (or remove it), it runs but gives this warning
Regards,
I nailed part of the problem. The error occurred because of unresolved dependencies.
I went through the tut again on a Linux Mint with NB7.4.
Now I get no errors but facing yet another problem. Now as I open a file, it opens the file but the Cookie Editor disappears.
I'm expecting someone will help on the second Issue.
Moderators: I'm not sure how will you guys respond to this but I've no clue how to go about my half solved problem.

Weka class cannot be initialized: InvocationTargetException

This is my first time using weka, I am sorry if my question seems naive. But I was really stuck by this problem.
I am using weka in my own java project in eclipse. I have successfully import weka.jar with attached wekasource.jar. But when I ran the program, all the weka class always failed to be initialized(attribute, Fastvector etc.). All the exceptions are the same:
InvocationTargetException
I check the error stack where showed: java.lang.NoClassDefFoundError: weka/core/attribute
Additional Info: I tried to create a new project in eclipse ,and use weka, it works. But it still can not work in my own existing project.
Does anyone have some ideas how should I solve this problem?
It seems I have solved this weird problem. The solution is simple:
right click on the project, in the java build path, check weka.jar in order and export tab.
Hope it can help the later people who face the similar problem

PyDev: not seeing module within project

PyDev 2.5 and Django 1.4
I'm very new to this, and am probably making some stupid mistake, but I've looked around and can't figure out what I'm doing wrong...
After creating a new app within my project and then adding it to INSTALLED_APPS in the project settings file, I attempt to run the server (RunAs --> PyDev: Django) and get:
Error: No module named < appname >
Originally I thought this was being caused by the error reported here (error creating settings.py): http://sourceforge.net/tracker/?func=detail&aid=3512322&group_id=85796&atid=577329
But updating to the nightly build solved that. (Note: The project's Django module settings field remains blank initially, but it seems to find it when I type it in manually).
Yet it still can't find the app/module. Maybe I am just missing something obvious here, but I'm really not seeing it.
Please let me know if you need more information.
Thanks,
Ryan
This is probably an issue in the way you're writing your code and the PYTHONPATH that's configured...
For a better answer, please give more details on those (a screenshot from the pydev package explorer with your project structure and the INSTALLED_APPS setting should suffice).

Ant MailLogger problem

I'm trying to establish MailLogger as the principle logger for my ant build. When I launch the ant build, I add the parameters -DMailLogger.properties.file=mail.properties -logger org.apache.tools.ant.listener.MailLogger. When the build finishes, it first tells me it couldn't send the e-mail and then it spits out the call stack:
BUILD SUCCESSFUL
Total time: 1 second
MailLogger failed to send e-mail!
java.lang.NullPointerException
at org.apache.tools.ant.taskdefs.email.MimeMailer.send(MimeMailer.java:206)
at org.apache.tools.ant.listener.MailLogger.sendMimeMail(MailLogger.java:332)
at org.apache.tools.ant.listener.MailLogger.buildFinished(MailLogger.java:143)
at org.apache.tools.ant.Project.fireBuildFinished(Project.java:2037)
at org.apache.tools.ant.Main.runBuild(Main.java:778)
at org.apache.tools.ant.Main.startAnt(Main.java:217)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
If I attempt the same thing without MailLogger.user and MailLogger.password set in mail.properties, it informs me that I wasn't authenticated (and correctly so).
I've included ant-javamail.jar which contains MimeMailer.class and as far as I can tell it's in the classpath along with all the other jars for ant. Perhaps I'm doing something wrong, but NullPointerException is certainly not helping me understand what it is.
I'm using Ant version 1.7.1. Any help would be greatly appreciated! I'm tearing my hair out!
It's an Ant bug - 44999. Looks like it's fixed in Ant 1.8.

Project build issue

I am getting this error while building my project:
_OBJC_CLASS_$_ in .o symbol not found
What could be the potential reason for this.
Clean all targets (cmd-k) and then build again and see if that message goes away.
I got it. This was happening because I was using a external library which I was not including while compiling the code though was referring it in the code.