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

android - ConstraintLayout: Realign baseline constraint in case if dependent view visibility was set to GONE -

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

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -