MATLAB: How do i call java class from matlab

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;

Best Answer

Here's another example.
% Read in the test's XML file which has all the test parameters.
XMLFullFileName = 'D:/TestData/Test_1234.xml'
javaclasspath('C:/Program Files/MATLAB/Apache Commons/commons-configuration-1.6/commons-configuration-1.6.jar');
conf = org.apache.commons.configuration.XMLConfiguration(XMLFullFileName);
% Extract the string stored in the node "myVariable" from the XML file.
myVariable = conf.getString('TestInfoTopLevel.myVariable')