Not able to create thumbnails on linux environment in java application -
i not able create thumbnails on linux environment in java application. libraries using packages
import java.awt.graphics2d; import java.awt.image; import java.awt.mediatracker; import java.awt.panel; import java.awt.renderinghints; import java.awt.image.bufferedimage; import java.io.bytearrayoutputstream; import java.io.ioexception; import com.sun.image.codec.jpeg.jpegcodec; import com.sun.image.codec.jpeg.jpegencodeparam; import com.sun.image.codec.jpeg.jpegimageencoder;
to craete thumbnail
graphics2d class craete thumbnails.
this working in windows environment , 1 of our linux machine also, not working in other linux machine whihch has no graphics crad in it.
please advice , help.
thanks in advance
try add following system property on command line launches program:
-djava.awt.headless=true
Comments
Post a Comment