From: Andrew Whelan on 3 Aug 2010 14:18 Hello, I admit to being new to Matlab but have been developing Java code for many years. I am calling a Java GUI class from a Matlab .m script. Consider the following snippet: {matlab code} javaaddpath(‘C:\MyAPI.jar’); frame=com.mypackage.MyGUIClass(); frame.setVisible(); {more matlab code} There is a schema file ("mySchema.xsd") located in MyAPI.jar. When running MyGUIClass outside of matlab I am able to access mySchema.xsd as a resource from the classpath as follows: InputStream input = ClassLoader.getSystemResourceAsStream("mySchema.xsd"); However when I add the JAR to matlab using javaaddpath in the above snippet MyGUIClass can't locate mySchema.xsd which is indeed in the JAR file (MyAPI.jar). Matlab is able to run MyGUIClass and supporting classes but MyGUIClass can't find the schema file. Any ideas? Does Matlab only see .class files in the JARs (that would be strange)? Any help or verification would be appreciated. Thanks -Andrew
|
Pages: 1 Prev: scale problem using quiver Next: DigitalGlobe 8-Band Research Challenge |