intellij idea - JavaFX with IntellJ: how to access a media file after export -


after building artifact, jar file locates here highlighted:

enter image description here

in source code:

media media = new media(new file(                     "res/alarm.wav").touri().tostring()); 

but when execute jar file, media file (alarm.wav) becomes unavailable.

how javafx application access media?


Comments

Popular posts from this blog

javascript - Confirm a form & display message if form is valid with JQuery -

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

ionic framework - Meteor - Error: Failed to execute 'insertBefore' on 'Node' -