Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个项目,需要使用来自 charts4j 的图表。我试图编译这个源代码,但它得到了这个错误..
“javax.imageio.IIOException:无法从 URL 获取输入流!”
这个错误在这里:
JLabel label = new JLabel(new ImageIcon(ImageIO.read(new URL(urlString))));
不知道为什么会出错。。
我无法理解这是怎么发生的。在我的页面上显示源代码是这样开始的——是的,那是 html 的开始,我在 Chrome 和 Safari 中仔细检查了它......
</div> </div> </div> <!DOCTYPE html> <html> <head> <