我遇到了这组错误:
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.jogamp.common.os.NativeLibrary$3 (file:/C:/Users/Who/processing-3.5.3/processing-3.5.3/core/library/gluegen-rt.jar) to method java.lang.ClassLoader.findLibrary(java.lang.String)
WARNING: Please consider reporting this to the maintainers of com.jogamp.common.os.NativeLibrary$3
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
每当我尝试运行草图时。我正在 IntelliJ 中工作,应该导入所有必要的 jar 包。我在 main 中调用 PApplet.main()
方法,并在 settings() 中设置了大小。我尝试过使用多个版本的处理。代码编译。有什么想法吗?
最佳答案
这是 JOGL/JogAmp 库的一个问题(尽管是警告而不是错误),Processing 的 P2D
和 P3D
模式是在该库上构建的。
警告是由这个库抛出的——而不是处理。作为处理用户,您无能为力来修复它。
关于java - 处理 3 中的非法反射访问错误 (JDK11),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58927573/