The import com.esri cannot be resolved

3046
3
05-18-2011 06:17 PM
DulanjaliAdhikari
New Contributor
hi,

I am new to ArcGIS and I need to convert .dwg file into .shp so I thought to use arcgis. My working environment is eclipse(ganymede) so I have installed arcgis pluings for eclipse. But when I am going to code and Import the bellow,

import com.esri.arcgis.carto.TrackCancel.*;
import com.esri.arcgis.geoprocessing.GeoProcessor;
import com.esri.arcgis.geoprocessing.tools.conversiontools.FeatureClassToShapefile;

I got those cannot be resolved and I wonder why is that? :confused: anybody have clue?

thank you
0 Kudos
3 Replies
MartínMeliendrez
New Contributor
I am having the same problem. I asked the same thing a year ago, but nobody answered me... :mad:
0 Kudos
EricCoffman
New Contributor
Still no answer to this?
0 Kudos
MJChurchill
New Contributor III
Perhaps you've already had this question answered by now.
However, in case any one else is looking for an answer (as I was):

The problem may be that you need to add a reference to the ArcObjects library to the project.
In Eclipse, you can add the reference by right clicking on your project in the Package Explorer.
Scroll down to 'build path'
In the pop-up menu, select 'Add libraries'
In the Add Library dialog, select 'ArcObjects Library', then click 'Next', then 'Finish'.

This worked for me anyway.
I am using Eclipse:Kepler Service Release 1 with ArcGIS 10
0 Kudos