Jürgen Zornig
Jürgen Zornig

Reputation: 1244

eclipse setup problems

I used Netbeans to develop Java Web applications and servlets, also some C++ programs, until now. Due to the fact, that I began to use playframework 2.1 a lot and it only supports IntelliJ or Eclipse (and also because of some other limitations in Netbeans), I decided to dig deeper into Eclipse (Indigo) now.

I created a new play project, eclipsified it and imported it in eclipse.

Iworked sometimes with eclipse, I also know some basic things about it (in fact that it is very modular over its different views and editors). The bare edition of eclipse indigo installed over Mint/Ubuntu software management is missing some features so I wanted to install them. A good IDE in my opinion should have at least the following features:

Because eclipse was missing Git on my machine I decided to install eGit through eclipse help menu. I also did the "install updates" in the help menu. After restart, eclipse doesn't recognize anything anymore. There is no git, it doesn't syntax highlight java nor xml. Files only open in the simple text editor. Files with .html extension always open in Browser. Config files open in external text editors.

There are no menu items for refactoring, building, testing or anything like that. It seems that my naive approach of simple try and error does not work with eclipse, its making it even worse. Can somebody tell me how to adopt eclipse the proper way to my needs described above?

P.S. I think I will uninstall Eclipse and install it directly from the website, but which edition should I choose? I prefer to start with a sleek IDE an install plugins when I need them, so I dont't want to have the complete Java EE Edition.

Upvotes: 2

Views: 98

Answers (1)

mliebelt
mliebelt

Reputation: 15525

I don't know play, so the following should be taken with a grain of salt.

  • Take as starting distro (from Eclipse Dowloads) with the Java Distro (see the video on using play, there it is Java SDK Eclipse).
  • If you are not sure about the Eclipse 4 stream, take the last from Eclipse 3: Indigo. Egit should be included there.
  • Install the Eclipse in a local directory, where you will use it for all workspaces. Don't trust Ubuntu to understand what the prerequisits and the organization of Eclipse should be (I will give examples):
    • One directory for the Eclipse installations: /usr/local/eclipse/ecl732 (for current Indigo)
    • One directory for all workspaces: /home/user1/ecl-ws and inside that the real workspace: /home/user1/ecl-ws/ecl732-proj1.
    • Define batch files to start Eclipse inside /home/user1/ecl-ws. Name it like the workspaces they use: ecl732-proj1.bash.
    • Define inside the batch file the startup parameters: taken JKD (parameter -vm), workspace (parameter -data), add additional parameters if necessary.

With that setup, you control every aspect, and are sure what is installed where. To give more advice, you should include more information on the steps you have done.

Upvotes: 1

Related Questions