From: Ibtesam Saleh on
hi all...

I have created 3 classes by using java programming language, now I want to call FROM Matlab the class that contains main method, i.e. call java from matlab..
I found that Matlab support java, but I don't know how to call the main method..
Please help me..
thanks in advance
ibtesam
From: ImageAnalyst on
I'm sure you can find the answer in here somewhere:
http://undocumentedmatlab.com/
or even on the Mathworks site:
http://blogs.mathworks.com/desktop/2009/07/06/calling-java-from-matlab/
From: Ibtesam Saleh on
thanks for your help...
I try this on command window:
javaaddpath C:\MATLAB7\work\java

%java folder contains all my .java and .class files
then I write this in command window:
javaclasspath
%this printed

STATIC JAVA PATH
.
C:\MATLAB7\java\patch
C:\MATLAB7\java\jar\util.jar
C:\MATLAB7\java\jar\widgets.jar
C:\MATLAB7\java\jar\beans.jar
.
.
.
.
DYNAMIC JAVA PATH

C:\MATLAB7\work\java

Please help me, how call the main method from Matlab...????
I read the help, the links posted by ImageAnalyst and another book "MATLAB Primer".
I also try to create .jar and .exe file for my java classes
BUT I have no idea... please please help me

ibtesam
From: Ibtesam Saleh on
please help me...
I created my java class, I have both (.class and .java) files, I don't know where to put my java files?? also I don't konw to create object in matlab from these classes?
really I confused, don't know how to complete my project

ibtesam
From: Steven Lord on

"Ibtesam Saleh" <bossy_4me(a)yahoo.com> wrote in message
news:hu8u46$vo$1(a)fred.mathworks.com...
> thanks for your help...
> I try this on command window:
> javaaddpath C:\MATLAB7\work\java

*snip*

> Please help me, how call the main method from Matlab...????
> I read the help, the links posted by ImageAnalyst and another book "MATLAB
> Primer".
> I also try to create .jar and .exe file for my java classes
> BUT I have no idea... please please help me

If you're using the latest version of MATLAB, read this section from the
External Interfaces documentation:

http://www.mathworks.com/access/helpdesk/help/techdoc/matlab_external/f44062.html

If you're using an older version, locate the External Interfaces portion of
the main MATLAB documentation in your installation and read the version of
that section in your installed documentation.

--
Steve Lord
slord(a)mathworks.com
comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ
To contact Technical Support use the Contact Us link on
http://www.mathworks.com