Problem with creating a raster dataset  (ArcObject Java SDK)

Discussion created by kgobakis on Apr 29, 2011
Latest reply on Jun 17, 2011 by sceptre
I am a new developer and i start by running some examples from the ArcObject Java SDK.
I try to run the How to create a raster dataset example using the Eclispe as IDE and i have the flowing error

AutomationException: 0x80041017 - Failed to create raster dataset in '"esriDataSourcesRaster.RasterWorkspace"'
at com.esri.arcgis.interop.NativeObjRef.nativeVtblInvokeNative(Native Method)
at com.esri.arcgis.interop.NativeObjRef.a(Unknown Source)
at com.esri.arcgis.interop.NativeObjRef.a(Unknown Source)
at com.esri.arcgis.interop.Dispatch.vtblInvoke(Unknown Source)
at com.esri.arcgis.geodatabase.IRasterWorkspace2Proxy.createRasterDataset(Unknown Source)
at arcgissamples.raster.BuildPyramids.createRasterDataset(
at arcgissamples.raster.BuildPyramids.main(
at arcgissamples.loadsample.Main.main(

I have search the net but i cannot find any answer.