Comments (1)
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
});
from gmapsfx.
Related Issues (20)
- How to update marker in a thread
- How to suppress DirectionsService markers
- Polygons appearing "patchy" when added to map on Windows HOT 4
- ReferenceError: Can't find variable: LatLong<number> when I try to create new LatLong HOT 5
- Any way to use google.maps.geometry?
- White page after several restart of the application HOT 1
- Egsa87
- Unable to edit maven dependency
- Markers not appearing.
- GmapsFx loading with a warning and not giving directions HOT 17
- ERROR com.lynden.gmapsfx.GoogleMapView - Error: User data directory [null (C:\Users\Admin\AppData\Roaming\application.Main\webview)] is already in use
- 4K Monitor resolution with windows zoom makes polyline jump
- Add InfoWindow to current click position
- Map not rendering (ReferenceError: Can't find variable: loadMapLibrary) HOT 2
- Maven artifacts in 2020 HOT 2
- usage error HOT 1
- JAVADOC Site not available HOT 1
- Map (v11.0.6) freezes on Java/FX 17.0.2 shortly after beeing initialized HOT 6
- Webkit used in JavaFX 18.0.1 breaks the library HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gmapsfx.