This document is intended for a reasonably experienced Java programmer to start using eclipse effectively in a couple of hours. This is distilled information with the obious left unstated.

Works like a maximize and restore

2) eclipse: Eclipse FAQ


Description to be entered

When I double click on an item in a directory, eclipse opens the file using OS. How to tell it to lay off and use the default text editor

I can drag the file. but I would rather double click it

This document is an ongoing list of frequently attempted or needed eclipse taks. I will be updating this document as I find new ones.

@rem debug-tomcat.bat
set catalina_home=i:\tomcat_4.1.24
set java_home=i:\jdk142
set JPDA_TRANSPORT=dt_socket
set EXECUTABLE=%CATALINA_HOME%\bin\catalina.bat

call "%EXECUTABLE%" jpda run %1 %2 %3

The problem is the source path. Particularly under tomcat. Under tomcat you place the dependency jar files under the web-inf/lib directory. As far as eclipse is concerned these are not jar files.

Because they are not jar files you can not open them and put a break point. You can do this if you move the jar files a level up and define them as a dependency to the webapp. If you do that more than one webapp might use the same jar files and thereby breaking the static variables.

The work around I have used is to define a new java project that just holds these jar files as build dependencies of that project. This project is constructed just as a holder of the jar files. Don't forget to define the jar files as build dependencies. This allows them to be shown up as expandable jar files in the file viewer allowing you to open the source file and put a break point.

In the remote debug configuration allow this project as one of the source paths.