Java Error when call function fom .net assembly in c#
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I developed several algorithms in matlab and i want to use this on a web page that i developed. so i compiled the algorithms using .net assembly from the matlab compiler. I added the assembly in visual studio project and when i use some of the algorithms the mrc start running and then it pop up an warning saying :
unable to load java runtime environment.
after pressed ok another warning: Disabling Java Support. at last i received this error: mkl.dll the specified module could not be found
I searched over the internet and i cant find a solution for this.
i read somewhere that i need an Environment variable from jdk path, but i have done this and still no sucess.
I appreciate if someone can help me.
0 commentaires
Réponse acceptée
Friedrich
le 18 Juil 2013
Modifié(e) : Friedrich
le 18 Juil 2013
Hi,
are you using R2013a? If so, the second error regarding the mkl.dll could be this:
The first parts sounds like an out of memory error or something. Loading the JVM means allocating at least 192mb of memory (or the value you set in your MATLAB preferenceses, default would be 192mb). I doubt that you need JAVA four your MATLAB program. If so, you can disable it right away from your .NET application:
[assembly: NOJVM(true)
3 commentaires
Friedrich
le 22 Juil 2013
The easiest would be moving to 64bit in order to resolve any memory issue you are facing. It could also more a memory fragmentation problem. Maybe try creating an instance of your MATLAB class right at the beginning (basically first line of your code) where the memory fragmentation should be smaller.
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Java Package Integration dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!