![](https://img-blog.csdnimg.cn/img_convert/af992aed24bba95735e4b673bc4ef8fb.png)
(注意图片的相对路径)
首先创建一个文件夹images放置图片、音频、视频等;
然后将需要插入的图片、音频、视频等放入到images文件夹中
![](https://img-blog.csdnimg.cn/img_convert/d2c2747b0d0e4294855e1f8f66530d90.png)
在eclipse中右击images点击Refresh即可
如果还无法打开图片,出现一堆乱码,则需要添加打开方式
点击Window-Preferences
![](https://img-blog.csdnimg.cn/img_convert/01bbaad21d627d24b3ea1ca14bda9e1d.png)
![](https://img-blog.csdnimg.cn/img_convert/2fe9e9600e39de97d519d28e1fa834e1.png)
如添加图片打开方式(加入音频的打开方式即*.mp3 视频同理)
![](https://img-blog.csdnimg.cn/img_convert/b9537dd7b4a31b23577d5e9890300eae.png)
![](https://img-blog.csdnimg.cn/img_convert/e8863ed95df5cc9204746da29ab92cba.png)
之后加入PhotoViewer.FileAssoc.Tiff(default)
此时lantian.jpg默认打开方式就有了PhotoViewer.FileAssoc.Tiff(default)就可以正常查看图片,不会出现乱码了;
![](https://img-blog.csdnimg.cn/img_convert/cad4f5b2aee2f771f4ef46146575b55d.png)