Thread Subject: Problems connecting Java and Matlab. Please!

Subject: Problems connecting Java and Matlab. Please!

From: Peter

Date: 2 Jun, 2006 19:33:42

Message: 1 of 2

Hi all,

I want to call a java class from a matlab function. I add the Java's
class path to the classpath and then, in the same path I have my
matlab funtion and .class generated. When I call the java function
from matlab, this message appears:
??? Error using ==> javaObject
No class test1 can be located on Java class path.

Now I am not sure if Matlab only supports GUI classes or not, I mean,
user's defined classes...

I am using Matlab 7.0 R14. Anybody can help me, please?

Subject: Problems connecting Java and Matlab. Please!

From: Perry

Date: 3 Jun, 2006 04:43:29

Message: 2 of 2

I'm no Java expert but had a few minor dealings with it and had
similar problems. Try importing the package with the 'import'
command.

Peter wrote:
>
>
> Hi all,
>
> I want to call a java class from a matlab function. I add the
> Java's
> class path to the classpath and then, in the same path I have my
> matlab funtion and .class generated. When I call the java function
> from matlab, this message appears:
> ??? Error using ==> javaObject
> No class test1 can be located on Java class path.
>
> Now I am not sure if Matlab only supports GUI classes or not, I
> mean,
> user's defined classes...
>
> I am using Matlab 7.0 R14. Anybody can help me, please?

Tags for this Thread

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

rssFeed for this Thread

Contact us at files@mathworks.com