From: Justin R. <jus...@gm...> - 2011-03-02 18:21:07
|
Hey guys. I am attempting to get myself set up with a rails development environment with Eclipse. I'm not a java programmer, but I'm interested in having a the environment set up so I can experiment and learn a bit about both Java and rails (I'm a software developer already and the java language looks quite natural to me, I just don't know the libraries, etc). I believe I'm on the cusp of having this all going, thanks to a helpful overview courtesy of Phil Davies. I've come across a snag at what is surely the final step in the process and I'm going to give a very detailed account here of what I did to get to this point and hopefully some of you kind folks can spot what I've missed or done incorrectly. I know this isn't an eclipse support ML, but hopefully this is topical enough to be acceptable here (as I've heard other people mention a desire to try the same thing). Here's what I did and I've linked to screenshots along the way so you can see exactly what I saw. Operating System: Ubuntu 10.10 64-bit % java -version OpenJDK Runtime Environment (IcedTea6 1.9.7) (6b20-1.9.7-0ubuntu1) OpenJDK 64-Bit Server VM (build 19.0-b09, mixed mode) (Note that rails has run without issue for me using these versions for some time, so I am quite sure that the issue here is just an eclipse setup issue) 1. Installed Eclipse via apt-get. 2. Installed subversive and the ALL available connectors just to make sure I had it all licked: http://gotsignal.org/images/eclipse/1.png 3. File->New->Other->SVN->Project from SVN http://gotsignal.org/images/eclipse/2.png 4. Specified project name 'rails' and using HEAD rev: http://gotsignal.org/images/eclipse/3.png 5. Checked out source (no problems) http://gotsignal.org/images/eclipse/4.png (verification: http://gotsignal.org/images/eclipse/5.png ) 6. Set up run configuration (this is where I fall off the rails....as it were): Disregard the odd visual artifact, it's from the screenshot app. I chose the project name I specified when I created the project: 'rails' and the correct main class: http://gotsignal.org/images/eclipse/6.png 7. Attempt to run results in error: unable to find project http://gotsignal.org/images/eclipse/8.png I go back into the run configuration screen and, next to the project name field, I clicked on the Browse button and get this: http://gotsignal.org/images/eclipse/7.png (no projects listed, as though eclipse doesn't see the project I created) Phil suggested it could be a casing issue, so I tried using run configuration with project name "Rails" and got the same error. http://gotsignal.org/images/eclipse/10.png Just to confirm, I right clicked on the project in the package explorer and selected properties and you can see the window here: http://gotsignal.org/images/eclipse/9.png The window title suggests that the project is in fact called 'rails'. The only thing I can venture is that, for some reason, Eclipse isn't recognizing this "Project from SVN" as being a project at all. Any ideas, folks? If any more info is needed, just shoot and I'll provide all I can. Thanks in advance. Justin |