Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Show SVG-Image in WebView

3bded9c1-5501-47da-937d-60de3f72a684Dec 2 2014 — edited Dec 3 2014

Hello everybody,

I would like to reopen the following discussion: Show SVG-Image in WebView (JavaFX 8)

In our IDE (Eclipse Luna) running with jdk1.8.0_25 we load a html page into the webengine. The html page contains <img> tags with '.png' and '.svg' as src. Everything looks fine.

But if we execute the programm with java -jar, the WebEngine doesn't display the svg-files. Instead it shows the 'File not find'-Icon. The .png files still work

The files are definitly included into the jar and will be displayed if we link to them via <a href="someSvg.svg"></a>

So actually we have no idea why it doesn't work.

Any ideas ?

Greatings

Julian

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 31 2014
Added on Dec 2 2014
1 comment
1,084 views