Re: Java from Matlab Two weeks with out a solution



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
.



Relevant Pages

  • Java from Matlab Two weeks with out a solution
    ... I compile using javac of jdk 1.5.1 ... No class scen1.Prueba can be located on Java class path." ...
    (comp.soft-sys.matlab)
  • Re: simple compilaton question
    ... > before I try to compile Main? ... "javac *.java" in each of my java source file directories the first ... with gcj. ... slow to ask for help on mailing lists. ...
    (comp.lang.java.programmer)
  • Re: Java server wont run after reboot
    ... Working with classpaths in Java isn't too hard, ... package definitions in your source code. ... Execute from that directory, no classpath definition needed. ... Assuming that you compile your code in the same directory and deposit the ...
    (RedHat)
  • Re: Java programmer lured back by .Net (Questions)
    ... I have finally decided to put all my business logic in C++ and compile that to native code. ... Security is the only reason why I could see that being a problem but I'm sure there is a way around it. ... Of course it learned a lot from Java, and improved upon many things which Java is slowly catching up on. ... I would like to be able to place my executable on my remote server and then "load" the executables on demand from accross the internet - so that there are no executables on the local machine for prying eyes to reverse engineer. ...
    (microsoft.public.dotnet.distributed_apps)
  • Re: Standard Database Interface?
    ... Windows binary and examples athttp://aspn.activestate.com/ASPN/Cookbook/Tcl?kwd=TclBlend. ... use native tcl and binary packages. ... and Java i.e Tcl/TK 8.4.13 and Java 1.4.2.12. ... patient enough to show me a step by step method on how to compile ...
    (comp.lang.tcl)