JLink on virtual Linux server: Cannot createKernelLink
- To: mathgroup at smc.vnet.net
- Subject: [mg114561] JLink on virtual Linux server: Cannot createKernelLink
- From: Andrey <andrey.siver at gmail.com>
- Date: Tue, 7 Dec 2010 07:04:41 -0500 (EST)
Hello,
I met a problem with JLink. The following code from the example do not
open the link:
KernelLink ml = MathLinkFactory.createKernelLink("-linkmode launch -
linkname 'math -mathlink'");
The result: MathLinkException occurred: Connected MathLink program has
closed the link, but there might still be data underway.
This code works ok:
ml = MathLinkFactory.createKernelLink(argv);
but I cannot (via some reasons) pass the following command line data:
java -classpath .:../../JLink.jar SampleProgram -linkmode launch -
linkname 'math -mathlink'
Can anybody help or suggest something?
Regards,
-Andrey