当前位置: 代码迷 >> Java相关 >> 请高手指教:java.io.FileNotFoundException: .\icons\cmd_Parent.gif (系统 ...
  详细解决方案

请高手指教:java.io.FileNotFoundException: .\icons\cmd_Parent.gif (系统 ...

热度:1239   发布时间:2007-03-12 19:16:51.0
请高手指教:java.io.FileNotFoundException: .\icons\cmd_Parent.gif (系统找不
该程序在linux系统上可以运行,通过java web start部署后,在windows上运行时,出现下列错误,但是这些文件已经都打进包里了,不知为何找不到,请高手指教!
org.eclipse.swt.SWTException: i/o error (java.io.FileNotFoundException: .\icons\cmd_Parent.gif (系统找不到指定的路径。))
at org.eclipse.swt.SWT.error(SWT.java:3374)
at org.eclipse.swt.SWT.error(SWT.java:3297)
at org.eclipse.swt.graphics.ImageLoader.load(ImageLoader.java:156)
at org.eclipse.swt.graphics.ImageDataLoader.load(ImageDataLoader.java:26)
at org.eclipse.swt.graphics.ImageData.<init>(ImageData.java:374)
at org.eclipse.swt.graphics.Image.<init>(Image.java:708)
at h3c.neostor.mainFrame.createToolBar(mainFrame.java:290)
at h3c.neostor.mainFrame.createSShell(mainFrame.java:213)
at h3c.neostor.mainFrame.main(mainFrame.java:192)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.sun.javaws.Launcher.executeApplication(Unknown Source)
at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
at com.sun.javaws.Launcher.doLaunchApp(Unknown Source)
at com.sun.javaws.Launcher.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.io.FileNotFoundException: .\icons\cmd_Parent.gif (系统找不到指定的路径。)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(Unknown Source)
at java.io.FileInputStream.<init>(Unknown Source)
at org.eclipse.swt.internal.Compatibility.newFileInputStream(Compatibility.java:157)
at org.eclipse.swt.graphics.ImageLoader.load(ImageLoader.java:153)
... 15 more
搜索更多相关的解决方案: icons  Parent  cmd  java  gif  

----------------解决方案--------------------------------------------------------
这个要问千年了,SWT中,有图片打包的时候就会出现找不到图片的情况。我忘了怎么解决了
----------------解决方案--------------------------------------------------------
不好意思,SWT我还从来没有用过,建议不要用

一,它不跨平台
二,它不是标准的JDK里面的包
三,实现不太好
----------------解决方案--------------------------------------------------------
  相关解决方案