Hi Sajith, actually, if you tell Eclipse to use the JDK and not the JRE, everything should work fine. If I'm not mistaken, the metadata generated by buildr eclipse is using eclipse-relative paths.
Manually adding tools.jar as suggested by Jeff should help nevertheless. HTH, Tammo On 13.03.2011 08:26, Jeff Yu wrote: > I remembered that I had to add the $jdk/tools.jar into Eclipse manually, but > I forgot if it is still the case. > > Regards > Jeff > > On Sun, Mar 13, 2011 at 4:20 PM, Sajith Kariyawasam <[email protected]>wrote: > >> Hi Jeff, >> >> Thanks for the reply. >> >> I have been using Sun JDK 1.6_19, but seemed my JRE path (/usr/bin/java) >> not properly set to it, instead it was set to that of Open JDK. I got that >> sorted out now. >> >> Previously i was able to get that solved by downloading the missing jar >> explicilty added to classpath references as shown in this link : ( >> http://osdir.com/ml/user.ode.apache.org/2010-12/msg00038.html ) >> >> But even after I set my /usr/bin/java to point to SUN JDK, still it seems I >> need to add that Jar fie explicitly in order to get the previously mentioned >> compile error sorted out. I suspect the reason for that is that, at the time >> of generating Eclipse artifacts, my java path was set to Open JDK , and I >> might need to regenerate artifacts. is that so? >> >> Another reason for some of the errors is that I have missed the M2_REPO >> classpath variable from Eclipse. >> >> Regards >> Sajith >> >> On Sun, Mar 13, 2011 at 9:58 AM, Jeff Yu <[email protected]> wrote: >> >>> You have to use the Sun's JDK for this. >>> >>> Regards >>> Jeff >>> >>> On Sun, Mar 13, 2011 at 3:24 PM, Sajith Kariyawasam <[email protected] >>>> wrote: >>> >>>> Hi all, >>>> >>>> I'm trying to build Apache ODE (Tag 1.3.5) from the source. >>>> >>>> I executed $ buildr package, as well as $ buildr eclipse, and generated >>>> eclipse project files too. >>>> >>>> But after I import all the modules to Eclipse, it gives me some >>> compilation >>>> errors, >>>> >>>> one main issue is that : "The import com.sun.mirror cannot be resolved" >>>> >>>> Does classes like *AnnotationProcessor*, >>>> *AnnotationProcessorEnvironment*comes with standard Java? if so why >>>> Eclipse doesn't detect those? >>>> >>>> Any idea on that? I'm using Eclipse Helios, with JDK 1.6.19 >>>> >>>> Thanks in advance >>>> Sajith >>>> >>> >>> >>> >>> -- >>> Cheers, >>> Jeff Yu >>> >>> ---------------- >>> blog: http://jeff.familyyu.net >>> >> >> > > -- Tammo van Lessen - http://www.taval.de
