How do i call java class from matlab
Mostrar comentarios más antiguos
Hi,
I have java class which is implement in Eclipse IDE , but i want to integrate class in matlab ?Below sample java code ?
if true
% code
import edu.lipreading.*;
public class Student{
public Static Void Main(String[] args){
System.out.println("Welcome to Student Class");
}
}
end
Now Below My Matlab I have tried like Undefined function or variable 'Student'. , but i cannot get result .
if true
% code
javaaddpath('D:\work\Student.jar','-end');
clear java;
import edu.lipreading.*;
o = Student;
javaMethod('main', o);
end
Note : I have tested my Java Version 1.6 jre file download and Environment Path System Variable Path Set Matlab_JAVA , C:/Prog/java/jre1.6/jre;
1 comentario
SAMEER ahamed
el 22 de Feb. de 2014
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Call Java from MATLAB en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!