1
votes

I have an eclipse codenameone project. I would like to execute this project on Eclipse using my own codenameone modified sources (codenameone sources project is in netbeans). How could I do that ?

enter image description here

As it is mentioned in this video, we should linked the project in the build path but it works only if we have a netbean project.

Better solution is to edit Codenameone source in Eclipse (but sources in github has structure of a Netbeans project).

Thanks!

1
Your question is not so clear. - Diamond

1 Answers

1
votes

Right now debugging with the Codename One sources is only supported on NetBeans because that is the platforms we use for our coding. It's harder to work with other IDE's and might not be worth your effort.

Someone posted a while back in the discussion forum about running this in Eclipse but I couldn't find the reference.

Generally if you want to build the native sources and debug from there just work based on the logic we have and adapt it to Eclipse (or any other IDE). Running a Codename One project has 2 major dependencies:

  • Codename One project - that's a regular Java project you can work with
  • JavaSEPort another regular project, this is the implementation of the Codename One code and includes the simulator.

Make sure to add the source trees of both these projects to the compile but not packaging phases and set the Simulator class as your main class.

If you are successful in doing this it would be really nice if you write about it for the developer guide wiki next to the NetBeans build and explain how this is done for future developers.