From: Ranu Kundu on 9 Mar 2010 02:25 Hi, I am tring to develop an interface in JAVA which will call matlab functions.I have followed http://www.cs.virginia.edu/~whitehouse/matlab/JavaMatlab.html.But after running the code it is giving the following error: Exception in thread "Thread-0" java.lang.NoClassDefFoundError: com/mathworks/util/FactoryUtilSupplier at MatlabControl.<init>(MatlabControl.java:69) at MatlabControl.<init>(MatlabControl.java:63) at MatlabControl.<init>(MatlabControl.java:59) at testmat$1Call.run(testmat.java:23) Caused by: java.lang.ClassNotFoundException: com.mathworks.util.FactoryUtilSupplier at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:248) Can you please help me out.It is really urgent.
From: Yair Altman on 9 Mar 2010 05:10 "Ranu Kundu" <anu.kundu(a)gmail.com> wrote in message <hn4t4g$nkg$1(a)fred.mathworks.com>... > Hi, > I am trying to develop an interface in JAVA which will call matlab functions. I have followed http://www.cs.virginia.edu/~whitehouse/matlab/JavaMatlab.html. But after running the code it is giving the following error: > Exception in thread "Thread-0" java.lang.NoClassDefFoundError: com/mathworks/util/FactoryUtilSupplier > at MatlabControl.<init>(MatlabControl.java:69) > at MatlabControl.<init>(MatlabControl.java:63) > at MatlabControl.<init>(MatlabControl.java:59) > at testmat$1Call.run(testmat.java:23) > Caused by: java.lang.ClassNotFoundException: com.mathworks.util.FactoryUtilSupplier > at java.net.URLClassLoader$1.run(URLClassLoader.java:202) > at java.security.AccessController.doPrivileged(Native Method) > at java.net.URLClassLoader.findClass(URLClassLoader.java:190) > at java.lang.ClassLoader.loadClass(ClassLoader.java:307) > at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) > at java.lang.ClassLoader.loadClass(ClassLoader.java:248) Try to include the relevant Matlab JAR file. In this case, %matlabroot%/java/jar/util.jar Yair Altman http://UndocumentedMatlab.com
From: Ranu Kundu on 9 Mar 2010 07:03 yeah,i have tried to include util.jar,but still not working.Do i need to make any change in classpath environment variable? "Ranu Kundu" <anu.kundu(a)gmail.com> wrote in message <hn4t4g$nkg$1(a)fred.mathworks.com>... > Hi, > I am tring to develop an interface in JAVA which will call matlab functions.I have followed http://www.cs.virginia.edu/~whitehouse/matlab/JavaMatlab.html.But after running the code it is giving the following error: > Exception in thread "Thread-0" java.lang.NoClassDefFoundError: com/mathworks/util/FactoryUtilSupplier > at MatlabControl.<init>(MatlabControl.java:69) > at MatlabControl.<init>(MatlabControl.java:63) > at MatlabControl.<init>(MatlabControl.java:59) > at testmat$1Call.run(testmat.java:23) > Caused by: java.lang.ClassNotFoundException: com.mathworks.util.FactoryUtilSupplier > at java.net.URLClassLoader$1.run(URLClassLoader.java:202) > at java.security.AccessController.doPrivileged(Native Method) > at java.net.URLClassLoader.findClass(URLClassLoader.java:190) > at java.lang.ClassLoader.loadClass(ClassLoader.java:307) > at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) > at java.lang.ClassLoader.loadClass(ClassLoader.java:248) > > > Can you please help me out.It is really urgent.
|
Pages: 1 Prev: tricontour for filled contours Next: impyramid image format |