Does java_import always execute before initialize in JRuby?
I need the following code to execute
def initialize vlc_path
@vlc_path = vlc_path || get_vlc_path
NativeLibrary.addSearchPath(RuntimeUtil.getLibVlcLibraryName,"/Applications/VLC .app/Contents/MacOS/lib")
end
before I can use:
java_import 'uk.co.caprica.vlcj.binding.LibVlc'
The java_import always executes first and fails. How to go about it?