Eclipse (general)

  • install subclipse
    go to eclipse/help/SoftwareUpdates/Find and Install
    enter name: Subclipse and latest update site (e.g. http://subclipse.tigris.org/update_1.2.x)
    follow the instructions
    
  • study ant for generating jars and wars
  •  ant manual

Eclipse for PHP projects

  • install  PHPclipse or  http://www.eclipse.org/pdt
  • see  phpclipse user manual
  • problems with formatting: ""Format" did not complete normally. Please see the log for more information. Argument not valid", see  here:
    Confirming that this bug exists (Format sometimes causes an "Argument not valid" error, can still save the file, but have to close the open window) in PHPEclipse 1.1.9.CVS-20060424
    
    Also confirmed that disabling all folding was a successful workaround - error no longer happens.
    
    • to disable the folding go to Windows > Preferences > PHP > Folding tab and uncheck "Enable folding when opening a new editor"
    • one problem remains: on ever format request a new line is inserted between <?php> and /**
    • to avoid that you can select > PHP > Formatter > and check "Clear all blank lines"

Eclipse JEE

read this first.

Install  Eclipse IDE for Java EE Developers

  • set up  tomcat in eclipse following  the instruction
  • According to the instruction, go to the server-panel, R-Click and select new->server. Depending on the tomcat version, select the respective server type and create it. This will create a tmp0 folder in /workspace/.metadata/.plugins/org.eclipse.wst.server.core/
  • Eclipse incorrectly fails to copy the welcome pages when it sets up Tomcat, so if you want the friendlier welcome page, go to your-eclipse-workspace/.metadata and search for "ROOT". Copy all of the files from /opt/tomcat/webapps/ROOT into the ROOT folder inside your-eclipse-workspace/.metadata/.../ROOT.
  • You should now be able to start the tomcat server (in eclipse) and browse an example, e.g.,  this example project (note that you may not be able to browse the files, just type  http://localhost:8080/intro/Hello.html to see if it is working)
  • You should decide what works best for you: (a) handling tomcat via eclipse or (b) using eclipse for coding and deploying of wars and handling tomcat via command line and the tomcat manager

Create a JavaServlet? with Eclipse

Debugging

  • see also Firefox extensions: Web Development and Firebug

JOMDoc

Locutor