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

How to understand 2 main() functions after using uftrace to profile the C++ program? -

c# - Update a combobox from a presenter (MVP) -

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