Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I too had this problem ("Could not find artifact com.sun:tools:jar:1.4.2 at specified path C:\Program Files\Java\jre6/../lib/tools.jar"). Here are all the steps I did to have finally build my Greenhouse example from within Eclipse Indigo.</p> <ul> <li>Changed JAVA_HOME and PATH system variables and environmental variables to point to a current JDK installation.</li> <li>In my Windows 7 installation of Eclipse Indigo, under "Window" -> "Preferences" -> "Installed JREs" -> "Add..." -> JRE home: "C:\Program Files (x86)\Java\jdk1.6.0_29" (or whatever is currently available ... notice, it's a JDK, not a JRE).</li> <li>Still in the aforementioned "Edit JRE" dialog, selected "Add external JARs..." and selected "C:\Program Files (x86)\Java\jdk1.6.0_29\lib\tools.jar", so this JAR is also part of the "JRE system libraries".</li> <li>Back in the "Installed JREs" dialog, I removed all unnecessary JDK and JRE entries, keeping only the JDK1.6.0_29 I added in the steps before. Then check the checkbox of that entry.</li> <li>If not installed, installed the "SpringSource Tool Suite" (STS) into my existing Eclipse Indigo installation.</li> <li>in the STS "Dashboard", selected the "Extensions" tab, installed the "m2eclipse 1.0.100" extension.</li> <li>restarted my computer, restarted my Eclipse installation.</li> <li>if already imported, deleted the Greenhouse example.</li> <li>imported the Greenhouse example via File -> Import ... -> Maven -> Existing Maven Projects</li> </ul> <p>Now everything builds well, and the example executed on my Jetty server within Eclipse.</p> <p>Probably, some of the above steps are not necessary, but at least it worked for me</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload