I followed the tips of Andrej, iant e nickves (thank you guys) and i've tryed to install GDAL with ecw support.
if check the list of the driver with the command:
$ gdalinfo --formats | sort
i can't find the ECW driver, but now, if i use the gdalinfo.sh command in the gdal192\javainfo folder i don't see the error anymore and i receive the following answer:
# sh gdalinfo.sh /root/Downloads/3741011.ecw
Driver: ECW/ERDAS Compressed Wavelets (SDK 3.x)
Files: /root/Downloads/3741011.ecw
Size is 12194, 9992
Coordinate System is `'
Origin = (290747.225122,4641666.725122)
Pixel Size = (0.15,-0.15)
Corner Coordinates:
Upper Left (290747.225122,4641666.725122)
Lower Left (290747.225122,4640167.925122)
Upper Right (292576.32512199995,4641666.725122)
Lower Right (292576.32512199995,4640167.925122)
Center (291661.77512199996,4640917.325122)
Band 1 Block=12194x1 Type=Byte, ColorInterp=Red
Overviews: 6097x4996, 3048x2498, 1524x1249, 762x624, 381x312, 190x156
Band 2 Block=12194x1 Type=Byte, ColorInterp=Green
Overviews: 6097x4996, 3048x2498, 1524x1249, 762x624, 381x312, 190x156
Band 3 Block=12194x1 Type=Byte, ColorInterp=Blue
Overviews: 6097x4996, 3048x2498, 1524x1249, 762x624, 381x312, 190x156
that seems ok.
now, when i try with geoserver it still crashes.
Maybe i have to point the LD_LIBRARY_PATH variable path to some other folder?
Thank you for your help.
--> UPDATE: restarted tomcat and everything is working fine! Thank you all
Best Answer
Finally I managed to run ecw plugin inside geoserver version 2.7.2
Downloaded libecw source from http://meuk.technokrat.nl/libecwj2-3.3-2006-09-06.zip
Applied this patch https://github.com/makinacorpus/libecw/blob/master/Source/C/NCSUtil/NCSPrefsXML.cpp.rej
Ran ./configure, make and sudo make install commands to build.
Override generated libs over image-io-ext libs. Make sure the path to the newly compiled .so's are in the LD_LIBRARY_PATH environment variable before the existing ones (present in geoserver gdal documentation).
The other steps told in geoserver gdal documentation (cant post more than 2 links) are valid.