中国开发网: 论坛: 程序员情感CBD: 贴子 310575
aho
请懂java的帮忙看看
下面这段程序出这种问题,谁能告诉我咋回事? Exception in thread "main" java.lang.Error: Unresolved compilation problem:

public static void main(String args[]) throws IOException {
JpegImage frame = new JpegImage();
FileDialog f = new FileDialog(frame);
f.show();
File imageFile = new File(f.getDirectory()+ f.getFile());
// System.out.println(imageFile.getAbsolutePath());
image = ImageIO.read(imageFile);
System.out.println(image.getWidth() + ","+ image.getHeight());
// image = Toolkit.getDefaultToolkit().createImage(imageFile.getAbsolutePath());
JpegImage ji = new JpegImage(image);

for (int iChars = 0; iChars < 8; iChars++){
for(int j = 0; j < 8; j++){
System.out.print((char)(Y[iChars][j]));
}
}

for(int i = 0; i < BlockHeight[0]; i++){
for(int j = 0; j < BlockWidth[0]; j++){
YDCTBlock[i][j] = dct.forwardDCT((float[][])YBlock[i][j]);
}
}
YDCT = JpegInfo.unBlock(YDCTBlock);

for (int iChars = 0; iChars < 8; iChars++){
for(int j = 0; j < 8; j++){
System.out.print(YDCT[iChars][j]);
}
}
}
当工作和生活不如意的时候,你可以掏出小弟弟凝视他,静思他所蕴涵之精神——能长能短,能粗能细,能伸能曲,能软能硬……好好学学他,眼前的这些困难还算个鸟啊!!!

相关信息:


欢迎光临本社区,您还没有登录,不能发贴子。请在 这里登录