Re: Java from Matlab Two weeks with out a solution
- From: "Robert Aungst" <raungst@xxxxxxxxxx>
- Date: Tue, 28 Feb 2006 12:59:00 -0500
I'm not sure if this will help or not, since I'm used to adding jar
files to the path, but have you tried using the full path for
javaaddpath?
For instance,
javaaddpath('C:\mdct\java\scen1\Prueba.Class');
Cheers,
Robert
Jose Alejandro Ospina wrote:
.
I compile using javac of jdk 1.5.1
"
package scen1;
public class Prueba{
int a;
public void Prueba(){
a = 1;
}
}
"
in C:\mdct\java\scen1\
and it creates Prueba.Class file.
In Matlab I place the workspace in the folder c:\mdct and call:
"javaaddpath java"
then I call:
"x = javaObject('scen1.Prueba')"
and it shows:
"??? Error using ==> javaObject
No class scen1.Prueba can be located on Java class path."
However I can use, with out any problem, classes from the Java
built-in libraries like Java.lang.* or Java.RMI.*
Also I can use classes I downloaded from Internet that are supposed
to be in "scen1" package using the same preocedure.
So, my conclusion is that I can't open Classes that I compiled in
my
pc... how can this be possibble, what I'm missing?
Please, it's been a very dissapointment weeks.
Thanks
- References:
- Java from Matlab Two weeks with out a solution
- From: Jose Alejandro Ospina
- Java from Matlab Two weeks with out a solution
- Prev by Date: Re: I can't start MATLAB 7.0(R14)
- Next by Date: I have a simple subroutine in fortran and i want to call it from matlab. Why do i get "1 unresolved external" when i compile?
- Previous by thread: Java from Matlab Two weeks with out a solution
- Next by thread: Re: Java from Matlab Two weeks with out a solution
- Index(es):
Relevant Pages
|