I have created a java project which has some sound effects. Later when I exported it into jar file. Audio files were not exported, so no audio clips were played.
Can this issue be solved?
You have to create a fat .jar
archive with all of your resources. If you are using maven or gradle, there are plugins for this. If you don't you can also find plugins depending on your IDE.