05-22-2009 09:49 AM
Hi,
I am developing for the BlackBerry with the JDE-Eclipse-Plugin-1.0.0.67 on an Eclipse-3.4.2 using the simulator 4.7.0.46.
Eclipse seems to not compile anymore. When I start the debugger the compiler runs but producese corrupt output i.e. When the simulator starts up the application under development does not apear in the download section.
I get the the following message in the comile log.
Warning!: No entry points found
Optimizing
Populating
Warning!: No definition found for exported static routine: .main(String[])
I tryed ..
...to close the project in eclipse.
..to delete the project and reimport it to eclipse.
When I run the debuger from the JDE everything runs fine.
Has anybody any idea to solve this problem?
Solved! Go to Solution.
05-22-2009 11:56 AM
I guess my first question is, does your main class have a public main() method defined? The compiler thinks "no".
05-22-2009 12:01 PM
Did you create the project as a BlackBerry project? Do you have a class that declare a method
Have you activated the project for BlackBerry? (Check by a right click on the project in Package Explorer and look for a check mark on the menu that pops up).public static void main(String[] args) {
}
05-22-2009 12:07 PM - edited 05-22-2009 12:07 PM
Every java application has to have an entry point.
Method that invoked when the application starts.
It is
public static void main(String[] args)
As you're a newbie check this link:
http://supportforums.blackberry.com/rim/board/mess
05-23-2009 12:26 PM
Thanks for your reply.
Yes I have a class with a static main method and I forgott to mention the project comiled before.
05-23-2009 12:30 PM
Is this class included into your project ?
Can you observe it as a part of your project in Eclipse ?
05-23-2009 12:31 PM
Ted_Hopp wrote:Did you create the project as a BlackBerry project? Do you have a class that declare a method
Have you activated the project for BlackBerry? (Check by a right click on the project in Package Explorer and look for a check mark on the menu that pops up).public static void main(String[] args) {
}
Yes I created the project as a BlackBerry project with the BlackBerry JDE then I imported it into Eclipse. Yes I have activated the project for BlackBerry. I forgott to mention that the project already compiled before.
05-23-2009 01:07 PM
tbilisoft wrote:Is this class included into your project ?
Yes.
Can you observe it as a part of your project in Eclipse ?
Yes.
05-23-2009 03:06 PM
Try to recreate project in Eclipse and add files again.
Seems that there is a bug inside of Eclipse.
05-25-2009 03:14 PM
I solved the problem. The reason was a misconfigured bin-path in the eclipse classpath. Eclipse generated the classfiles in an other location than the rapc compiler searched for them. Fixing the classpath did it. Now erverything works fine as it did before.
Thanks for helping me.