
Hey,
I'm desparately looking for a way to access resources that are in my jar file. More specificly, after declaring
@Library("myLibrary.jar")
I want to be able to use an audio file (e.g. audio.wav) that has been packed inside of myLibrary.jar.
I use Netbeans and within my development environment, I would use one of the following statements:
ClassLoader.getSystemResource("audio.wav");
this.getClass().getClassLoader().getResource("audio.wav");
this.getClass().getResource("/audio.wav");
of which all work fine. Within JForex however, ClassLoader only searches the current directory and the JForex/Strategies folder. It does not search the jar file loaded into the @Library annotation.
I hope it's somthing simple that I've missed but if the solution is complex, please dont hold back on detail. I am a little new to this jForex family but Java and I are well acquainted
Mr A. Anderson