You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have been struggling with this for days now.
I successfully upgraded to Java 10 using GMapsFX 2.12.0.
When I upgrade to Java 11, the application immediately exits.
I have debugged this in NetBeans with my application, and found that a ClassNotFoundException is being thrown by the class loader, because the com.sun.webkit.MainThread class cannot be found.
I have tested the upgrade with the Directions example application, and the same thing happens with Java 11.
This combination works: Java 10, GMapsFX 2.12.0, OpenJFX 12.0.1.
This combination does NOT work: Java 11, GMapsFX 2.12.0, OpenJFX 12.0.1.
I even upgraded a copy of GMapsFX to Java 11, and built Java 11 binaries, but that didn't work either.
I am at a loss.
Has anybody solved this problem by project dependencies?
Is there a known workaround/configuration to get GMapsFX to work with Java 11?
Is this a known problem that is planned to be fixed in the next release of GMapsFX?
Thanks in advance for any help that anybody can provide.
The text was updated successfully, but these errors were encountered:
I spent some time and discovered the exact line that is causing this ClassNotFoundException.
This can be reproduced using the OpenJFX WebView, and loading an HTML file that uses Google Maps.
I realize that GMapsFX does this differently, through executing Javascript through the code, but that is doing effectively the same thing that is shown in the code snippet below.
In html Javascript, create a new google.maps.Map object.
This ClassNotFoundException occurs with Java 11 and OpenJFX 12.0.1.
function initMap() {
var center = {lat: 39.7392, lng: -104.9903};
// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
// creating the Map is what is causing the ClassNotFoundException, for com.sun.webkit.MainThread!!!
// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
map = new google.maps.Map(document.getElementById('map-canvas'), {
zoom: 4,
center: center
});
I have been struggling with this for days now.
I successfully upgraded to Java 10 using GMapsFX 2.12.0.
When I upgrade to Java 11, the application immediately exits.
I have debugged this in NetBeans with my application, and found that a ClassNotFoundException is being thrown by the class loader, because the com.sun.webkit.MainThread class cannot be found.
I have tested the upgrade with the Directions example application, and the same thing happens with Java 11.
This combination works: Java 10, GMapsFX 2.12.0, OpenJFX 12.0.1.
This combination does NOT work: Java 11, GMapsFX 2.12.0, OpenJFX 12.0.1.
I even upgraded a copy of GMapsFX to Java 11, and built Java 11 binaries, but that didn't work either.
I am at a loss.
Has anybody solved this problem by project dependencies?
Is there a known workaround/configuration to get GMapsFX to work with Java 11?
Is this a known problem that is planned to be fixed in the next release of GMapsFX?
Thanks in advance for any help that anybody can provide.
The text was updated successfully, but these errors were encountered: