import CN1 demos in Eclipse Neon

22 views
Skip to first unread message

wulfm...@googlemail.com

unread,
Sep 15, 2016, 10:34:56 AM9/15/16
to CodenameOne Discussions
IDE: Eclipse Neon
OS: Win 10 64 Bit
Simulator: -
Device: iPhone

Hello,

can you guys please share a way to import CN1 demos in Eclipse Neon and get them run as iOS Debug built?

Thanks in advance

Shai Almog

unread,
Sep 16, 2016, 1:32:26 AM9/16/16
to CodenameOne Discussions, wulfm...@googlemail.com
Hi,
the best way isn't to import.
Just use File -> New Project -> Codename One/Demos

If you want a demo that isn't there you need to create a new project with the same package name and copy the sources and codenameone_settings.properties on top of the Eclipse vrsion.

wulfm...@googlemail.com

unread,
Sep 16, 2016, 4:06:45 AM9/16/16
to CodenameOne Discussions, wulfm...@googlemail.com
Hi Shai,

many thanks for the quick reply. Also the hint you wrote me was working nearly correct. I have imported as writeh below and have creted ma iOS certificate sucessfully. When I send the soutce to the Build Server errors come up:

/var/folders/p_/xlvwhg4101z8r81_nl13cds80000gn/T/build9002745174842163014xxx/classes /var/folders/p_/xlvwhg4101z8r81_nl13cds80000gn/T/build9002745174842163014xxx/stub/CameraDemoStub.java /var/folders/p_/xlvwhg4101z8r81_nl13cds80000gn/T/build9002745174842163014xxx/stub/CameraDemoStub.java:14: error: cannot find symbol
    private CameraDemo i;
            ^
  symbol:   class CameraDemo
  location: class CameraDemoStub
/var/folders/p_/xlvwhg4101z8r81_nl13cds80000gn/T/build9002745174842163014xxx/stub/CameraDemoStub.java:23: error: cannot find symbol
            i = new CameraDemo();
                    ^
  symbol:   class CameraDemo
  location: class CameraDemoStub
Note: /var/folders/p_/xlvwhg4101z8r81_nl13cds80000gn/T/build9002745174842163014xxx/stub/CameraDemoStub.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
2 errors

Especialy the: "-Xlint:deprecation for details message" makes me wonder. I surch at the moment in Compiler settings to fix ths. I have read that this has to do with ma java versions..

many thanks,
wulfman

Shai Almog

unread,
Sep 17, 2016, 1:47:47 AM9/17/16
to CodenameOne Discussions, wulfm...@googlemail.com
Hi,
you refactored the main class to a different package. If you do that you need to change it in many places especially in the codenameone_settings.properties which is why we don't recommend it.
Reply all
Reply to author
Forward
0 new messages