我复活了一个CN1项目(已经发布),并试图让它在Netbeans 11 (运行在OpenJdK 11上)下的模拟器中运行。然而,这个项目一直在崩溃。
我更新了CN1 Google Maps扩展,刷新了库,但问题仍然存在。
因此,我创建了一个新的CN1项目(使用Java8项目UNticked作为基本框架,因为它是Java11项目)以查看它是否崩溃。实际上它显示的是"Hi“形式。但随后我像以前一样添加了一个MapContainer:
public void start() {
if(current != null){
current.show();
return;
}
MapContainer map = new MapContainer("myJAvascriptKey");
Form hi = new Form("Hi World");
hi.setLayout(new BorderLayout());
hi.add(BorderLayout.CENTER,map);
hi.show();
}
模拟器一直在崩溃:
Retina Scale: 1.0 Rendering frame took too long 163 milliseconds [JS Console] Here I am !!! Rendering frame took too long 207 milliseconds # # A fatal error has been detected by the Java Runtime Environment: # # SIGSEGV (0xb) at pc=0x00007f66f5c69762, pid=13967, tid=14053 # # JRE version: OpenJDK Runtime Environment (11.0.4+11) (build 11.0.4+11-post-Debian-1bpo91) # Java VM: OpenJDK 64-Bit Server VM (11.0.4+11-post-Debian-1bpo91, mixed mode, sharing, tiered, compressed oops, g1 gc, linux-amd64) # Problematic frame: # V [libjvm.so+0x89a762]
Google Map扩展版本是42。我应该怎么做才能让一切都像以前一样工作?
感谢您的任何帮助,
发布于 2019-10-02 21:58:29
将项目上的JDK更改为JDK8。现在JavaFX中有一个bug,当在JDK11上运行时,会导致web视图崩溃。
https://stackoverflow.com/questions/58207613
复制