Matlab doesn't import my java classes

Hi,
i want to import some java classes. I set the dynamic path
javaclasspath({path_1, path_2})
where path_1 and path_2 are the paths of two .jar files C:\Jfunction\myfirst C:\Jfunction\mysecond
The second jar contains the following folders
fold > subfold > subfold2 > myclass.class
then
import fold.subfold.subfold2.*
but when i do
Obj=folder.subfolder.subfolder2.myclass ();
it says something like
"Undefined class folder.subfolder.subfolder2.myclass"
I know that some people who use this code haven't this problem and everything works properly.
What is the problem? Thanks!

回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeCall Java from MATLAB についてさらに検索

質問済み:

2013 年 5 月 8 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by