From: briand on
Hello,

I'm having a problem linking eclipse and the project I packaged with builder JA. My simple test is to instantiate

MWArray test = new MWArray();

this is in (Flux_prop.java:1173)

Eclipse says :

Exception in thread "AWT-EventQueue-0" java.lang.UnsatisfiedLinkError: no nativemcl76 in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1812)
at java.lang.Runtime.loadLibrary0(Runtime.java:823)
at java.lang.System.loadLibrary(System.java:1045)
at com.mathworks.toolbox.javabuilder.MWMCR.<clinit>(MWMCR.java:25)
at com.mathworks.toolbox.javabuilder.MWUtil.GetUnknownClassID(MWUtil.java:1566)
at com.mathworks.toolbox.javabuilder.MWClassID.<clinit>(MWClassID.java:26)
at com.mathworks.toolbox.javabuilder.MWArray.<init>(MWArray.java:33)
at Flux_prop$4.run(Flux_prop.java:1173)

I loaded the referenced library javabuilder.jar...

I use jre 1.6, OSX leopard, last version of eclipse...

Any ideas?

Cheers

Dominique
From: briand on
Thoose commands :

System.out.println("java.library.path = " +
System.getProperty("java.library.path"));
System.out.println("java.ext.dirs = " +
System.getProperty("java.ext.dirs"));
System.out.println("java.class.path = " +
System.getProperty("java.class.path"));

gave me :


java.library.path = .:/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java

java.ext.dirs = /Library/Java/Extensions:/System/Library/Java/Extensions:/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/lib/ext

java.class.path = /Users/dominiquebriand/Documents/workspace/propa/bin:/Users/dominiquebriand/Downloads/jcommon-1.0.16/jcommon-1.0.16.jar:/Users/dominiquebriand/Downloads/jfreechart-1.0.13/jfreechart-1.0.13-demo.jar:/Applications/matlab/mcr/v76/toolbox/javabuilder/jar/javabuilder.jar:/Users/dominiquebriand/Desktop/Brasiilia_IRD/Java-DeuxStationsSSM/propa/distrib/propa.jar



"briand " <dominiquebriand(a)gmail.com> wrote in message <hdri52$ecs$1(a)fred.mathworks.com>...
> Hello,
>
> I'm having a problem linking eclipse and the project I packaged with builder JA. My simple test is to instantiate
>
> MWArray test = new MWArray();
>
> this is in (Flux_prop.java:1173)
>
> Eclipse says :
>
> Exception in thread "AWT-EventQueue-0" java.lang.UnsatisfiedLinkError: no nativemcl76 in java.library.path
> at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1812)
> at java.lang.Runtime.loadLibrary0(Runtime.java:823)
> at java.lang.System.loadLibrary(System.java:1045)
> at com.mathworks.toolbox.javabuilder.MWMCR.<clinit>(MWMCR.java:25)
> at com.mathworks.toolbox.javabuilder.MWUtil.GetUnknownClassID(MWUtil.java:1566)
> at com.mathworks.toolbox.javabuilder.MWClassID.<clinit>(MWClassID.java:26)
> at com.mathworks.toolbox.javabuilder.MWArray.<init>(MWArray.java:33)
> at Flux_prop$4.run(Flux_prop.java:1173)
>
> I loaded the referenced library javabuilder.jar...
>
> I use jre 1.6, OSX leopard, last version of eclipse...
>
> Any ideas?
>
> Cheers
>
> Dominique
From: briand on
maybe a system path that I forgot?

"briand " <dominiquebriand(a)gmail.com> wrote in message <hdri52$ecs$1(a)fred.mathworks.com>...
> Hello,
>
> I'm having a problem linking eclipse and the project I packaged with builder JA. My simple test is to instantiate
>
> MWArray test = new MWArray();
>
> this is in (Flux_prop.java:1173)
>
> Eclipse says :
>
> Exception in thread "AWT-EventQueue-0" java.lang.UnsatisfiedLinkError: no nativemcl76 in java.library.path
> at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1812)
> at java.lang.Runtime.loadLibrary0(Runtime.java:823)
> at java.lang.System.loadLibrary(System.java:1045)
> at com.mathworks.toolbox.javabuilder.MWMCR.<clinit>(MWMCR.java:25)
> at com.mathworks.toolbox.javabuilder.MWUtil.GetUnknownClassID(MWUtil.java:1566)
> at com.mathworks.toolbox.javabuilder.MWClassID.<clinit>(MWClassID.java:26)
> at com.mathworks.toolbox.javabuilder.MWArray.<init>(MWArray.java:33)
> at Flux_prop$4.run(Flux_prop.java:1173)
>
> I loaded the referenced library javabuilder.jar...
>
> I use jre 1.6, OSX leopard, last version of eclipse...
>
> Any ideas?
>
> Cheers
>
> Dominique