它是什么,我该如何解决?
另外,我想在我的 Java 屏幕录像机中使用此代码,但我想在单击屏幕截图时提供图像矢量,而不是从文件夹中读取它。我也想要这方面的帮助。
对于 berry120:
In terms of the "access restriction" error, it seems to be a similar issue to this one - as in you may be trying to replace a Java library class with one from a jar file (in your case JMF.jar.)
Have a look at this question: Access restriction on class due to restriction on required library rt.jar? The second answer down (one with 250+ upvotes) is the one that may work in your case - remove and re-add the JRE system library.