Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Wiki Markup
If you are running Eclipse using JDK 1.5 then you will also need to ensure Eclipse knows where to find your JDK 1.4 install: "Windows - Preferences - Java - Installed JREs" add it and make sure it is checked as the default. *Although this says JREs make sure you add the JDK and not the JRE install\!*
[javac]\[ BUILD FAILED: file:<Project Dir>/build.xml:32: Unable to find a javac compiler;
If you have received the above error, you most likely have more than one JVM (e.g. a JRE and a JDK) installed. Eclipse uses the first Java VM it finds on your computer's PATH variable. In this case, it is most likely a JRE, not a JDK. Ant uses the same Java environment as Eclipse, no matter what you may specify in the compiler attribute. Because it is a JRE, you will not be able to compile.
\\
\\
To correct this, you must tell Eclipse to use the SDK. To do this, modify the shortcut you use to launch Eclipse and change the target to the following:
\\
\\
<ECLIPSE_DIR>\eclipse.exe \-vm <SDK_DIR>\bin\javaw.exe
\\
\\
Original source: [http://www.ryanlowe.ca/blog/archives/000386.php]

...

Tuning Eclipse

Tuning the JVM heap size can help improve WSAD/Eclipse's responsiveness. You can do that by using the -vmargs -Xms -Xmx settings in the command-line argument (or wsappdev.ini file).
Windows:
C:\java\eclipse_3_0_1\eclipse\eclipse.exe -vmargs -Xmx1024M -Xms1024M
For more on tuning Eclipse JVM heap size, you can refer to this IBM article . |: http://www-128.ibm.com/developerworks/websphere/library/techarticles/0204_searle/searle.htmlImage Added

...

Getting Rid of Annoying Tabs

Wiki Markup
You can set up your Eclipse so that identations are done in tabs rather than spaces.  See convert spaces to tabs.  In older versions of Eclipse, the button is "Show" rather than "Edit".  Here is a
sample screenshot [] Image Removed
 
If you want some scripts to help you check and clean up tabs in your files, go to
 sample screenshot&nbsp;\[\] !eclipse_spaces_for_tabs.png!
&nbsp;
If you want some scripts to help you check and clean up tabs in your files, go to [http://www.opensourcestrategies.com/ofbiz/downloads.php].  I'm told by the real  Unix gurus that "this takes one line in sed."  Yeah, I've heard that one before...