I reinstall my Eclipse environment every year when the new version is released. The most recent release – Juno – however, does not work as expected.
Currently, when I try running demos from Oracle, for example, it asks me to select an Ant file to run before compiling. After creating a blank Ant file to bypass the requirement (which I thought was rather dumb, since I don’t think TDD is something that should be forced on people), it still refused to run, saying the “Selection could not be launched.”
I understand that Juno is an update from the 3.x track to the 4.x track, but this seems a little ridiculous to me. What can or should I do so I can get Eclipse back up and running again?
Just to clarify:
- All files in question are on my Eclipse workspace path
- I don’t do much in the way of Java development, though I know I’ll need to do so soon. Hence, my unfamiliarity with the most recent version of Eclipse.
- I would like to run my files & projects without Ant files. I know it has something to do with Run configs, but I don’t know how to change them.
Here’s what I did to run the demo from Eclipse Juno:
Unzipped it to my projects directory (not my workspace), so that you have:
PROJECTS_DIR/components-FrameDemoProject/src
PROJECTS_DIR/components-FrameDemoProject/nbproject
PROJECTS_DIR/components-FrameDemoProject/build.xml
From Eclipse, File > New > Java Project
Use default locationand navigate to<PROJECTS_DIR>/components-FrameDemoProjectFinishsrc/components/FrameDemo.javaFrameDemo.javaand selectRun As>Java ApplicationLet me know if any of these steps give you trouble.