我正在使用 WebEngine(WebView) 在资源中加载 html 文件
URL mapURL = getClass().getResource("/com/yoouppos/resources/aaaaa.html");
webEngine.load(mapURL.toExternalForm());
并且 aaaaa.html 包含图片标签
<html>
<head>
</head>
<body>
<div id='googleMap'>
<center><img id="pic" src="file:///D:/Dropbox/VietOCR/fax-orders/old_3.jpg" width="auto" height="100%"/></center>
</div>
</body>
</html>
当我通过 NetBean 运行项目时,将显示图像。但是当我通过 NetBean 进行“清除和构建”时,之后我在 dist 文件夹中运行 jar 文件,然后图像不显示。
我想显示图像存储在本地的 html 中。