I want to use a function in javax.jnlp from within a Strategy module.
How can I reference the appropriate javax jar file from within the built-in Strategy compiler in the JForex platform, so I can compile my jfx object? In this case, I don't want any dependent jars; just a single textual .java source which implements IStrategy.
Normally I've been doing this through additional precompiled jars in Eclipse.
Here's what I'd like to do and the compiler needs to resolve the javax.jnlp.BasicService type, for example.
// Method to show a URL
private boolean showURL(URL url) {
try {
// Lookup the javax.jnlp.BasicService object
BasicService bs = (BasicService)ServiceManager.lookup("javax.jnlp.BasicService");
// Invoke the showDocument method
return bs.showDocument(url);
} catch(Exception ue) {
// Service is not supported
return false;
}
}
Thanks !
HyperScalper