user2571094
user2571094

Reputation: 177

JxMap where default folder when browser.loadURL called?

I follow the tutorial from https://jxbrowser.support.teamdev.com/support/solutions/articles/9000012874-google-maps

i already create 2 file.

1.map.html

2.GoogleMapsSample.java

when i run the program i get an error "This webpage is not found". I think this is because the code

browser.loadURL("map.html");

When i change the "map.html" into "http://www.google.com" it's working.

so , my question is where i must put the map.html ?

i already try put in root project, same package it's not working.

I using netbean 8.1

thank you before.

Upvotes: 1

Views: 204

Answers (1)

SubOptimal
SubOptimal

Reputation: 22983

Following this post you might need to add the path to the file.

browser.loadURL("C:\\map.html");

If this is still not working.

Upvotes: 1

Related Questions