开发者

Adding several jar packages into DYNAMIC JAVA PATH

开发者 https://www.devze.com 2023-04-05 00:13 出处:网络
I have aquestion regarding adding several jar packages into Dynamic java path in Matlab. Having an instance of a java object (which is located in dynamic java path) I cannotadd another jar package co

I have a question regarding adding several jar packages into Dynamic java path in Matlab. Having an instance of a java object (which is located in dynamic java path) I cannot add another jar package correctly.

For instance: If I have

  DYNAMIC JAVA PATH
   ~/yamlmatlab/trunk/external/snakeyaml-1.9.jar

and one instance coming from the package

yaml = org.yaml.snakeyaml.Yaml()

I cannot add another package correctly

>>javaaddpath('myJarAchive.jar'] );

Warning: Objects of org/yaml/snakeyaml/Yaml class exist - not clearing java

In javaclasspath>doclear at 379

In javaclasspath>local_javapath at 197

In javaclasspath at 119

In javaaddpath at 69

In RcSession>RcSession.RcSession at 80

The objects from 'myJarAchi开发者_如何学编程ve.jar' cannot be instantiated then.. Has anybody seen how to overcome this problem?

Thank you,

Jiri


I never got the 'dynamic classpath' in MATLAB working as expected. Use the ClassPathHacker as shown for eclipselink in order to add your jars dynamically.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号