• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Fixing a borked Eclipse install

 
Ranch Hand
Posts: 574
VI Editor Chrome Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
tl;dr Basically, right now everything is an android project, even my Java stuff. I can't find a workspace view to choose between projects. File->Switch Workspace just gives "Other", choose that and it's pointing to my workspace. Open HelloWorld.java in the editor, try to build, get a menu with 2 identical lines dealing with "use Ant build". Choose one, says it can't find an ant something or other. Makes sense, I have no idea what ant is and never needed one before.

Could the problem be that I just copied my java workspace from the old lappy to the new one, with the new one having a different path (cygwin vs cygwin64)?

System is Windows 8.1, fully updated.

Details.

I recently got a new laptop. Installed Eclipse, was installing the Android plugins when Windows finished installing it's patches and wanted to restart. I clicked OK. Oops

Reinstalled the droid plugins, said they were already installed. Then why won't you use them?

Uninstalled the droid plugins, reinstalled. Still won't run.

Removed Eclipse and droid plugins,plus workspace/.metadata. Reinstalled, now it's worse than ever.

I'm a Java newbie, an Eclipse newbie, a long time hater of IDEs (long story), prefer cygwin command line. Javac and java from the command line work fine, but now I need a debugger (got a thread that won't start for some reason).

Wat do?

 
Bartender
Posts: 1682
7
Android Mac OS X IntelliJ IDE Spring Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Start over

Download the ADT bundle with the tools already installed. Unzip it and you are good to go.

More on that here:
http://developer.android.com/sdk/installing/bundle.html
http://developer.android.com/sdk/index.html
 
Jim Venolia
Ranch Hand
Posts: 574
VI Editor Chrome Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I did. Twice.

There is evidently some metadata stored somewhere I'm not aware of that is borking a fresh install, I'm wondering where that is.
 
Bill Gorder
Bartender
Posts: 1682
7
Android Mac OS X IntelliJ IDE Spring Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
deleting the directory that you unzipped the distribution to should be it... Except your workspace. When you started eclipse it asked you for a workspace go into that directory and delete the .settings, .metadata folders or alternatively just delete the whole directory.

Also in the root of your project directory will be a .project and .classpath file delete those as well.

Once you have deleted the workspace and install directory, start again. Unzip the distribution and start eclipse. It will ask you to choose a directory for you workspace do that (that directory should be empty). Copy your hello world android project into that folder (the .classpath and .project files should be gone). Once that is done go to file import -> android project and import your existing android project.

The only other thing that might bite you is Android requires java 1.6. You will need that JDK installed. If your primary jdk is 1.7 you may need to explicitly tell Eclipse where your java 1.6 jdk home directory is. The easiest way to do this is close eclipse and go to its install directory and open up eclipse.ini

add this right after the line that says 'openFile' add the following



Of course you need to change that to the right path.

If you still have more issues tell us specifically what you are seeing after this and also what OS you are running (mac, windows, linux etc)

Edit* I see you told us already so your path will be something like this, no quotes they must be on 2 lines. I cant remember if Windows is fine with the bin folder or if it requires the /javaw.exe at the end of that.

 
Jim Venolia
Ranch Hand
Posts: 574
VI Editor Chrome Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Got it. The answer was as simple as File->new->[Java|Android] Project for all the projects in my workspace.

I'd been assuming it would see all those subdirectories and show them as independent projects (which they are).
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic