How can I import a project into Eclipse?

Hi,

I have a source code from a watch face I made in a previous Windows installation (Win10/ Eclipse Mars) and I try to import it in a new desktop (Win10/ Eclipse Oxygen). Although the import process works without any issues, the project is not recognised as GIQ one, the IQ little icon is missing from the top right corner.

Is there something that I can do to convert it to GIQ project?
  • have you tried just switching your view?

    window -> perspective -> open perspective -> other -> connect iq
  • Yes, I have switched perspective back and forth, deleting and re-importing the project, but it still does not appear to be a valid CIQ project.
  • Former Member
    Former Member
    Not wishing to be another "me too!" contributor, but I am also having this same issue. I had an old project which has been left untouched for sometime. Trying to import it into the current version of Eclipse and the latest SDK gives me the same problem, so I'll be interested to know if anyone comes up with a solution.
  • is your source publicly available, then we can have a look what's wrong?
    (you can also pm me in case you want to retain semi-privacy :))
  • Former Member
    Former Member
    I solved it in the end. Turns out that .project file from the old project was quite different to the .project file from a newly created project. To fix my issue, I created a brand new CIQ project, then copied the .project file from that over the top of the .project file from my old project. I then edited the .project file to make sure the name was correct, and re-imported it into Eclipse. After doing that, the project showed up as a CIQ project and worked without issue. I'm doing this on OSX High Sierra using Eclipse Oxygen.2 and SDK 2.4.2. On OSX, be reminded that the .project file is hidden by default in Finder, so I used Terminal to do the file copies and edits (with nano). Note also that to get the development environment working at all in the first place, I had to ensure that all the paths to Eclipse, the SDK and to my workspaces folder had no spaces in them. Before figuring that out, the SDK manager failed to install SDK's and the simulator failed to connect. I'm now back to a fully working setup once more.
  • Good point. Best approach I use regulary: No spaces, No long names, No Cyrillic characters in names - all came from DOS-school. I guess .project was created with <CR><LF> line separators, it differs from the current one. You can publish files that cause fail / successful import, not sources. Collective mind will try to find differences and compare what we have.
  • is your source publicly available, then we can have a look what's wrong?
    (you can also pm me in case you want to retain semi-privacy :))


    Thank you for that. I was about to pm you when I saw MaxromUK's comment and I thought I'd give it a try. This trick seems to do the job.