Using J/Link On A Remote Computer

Junzo SATO, Chikara MIYAJI

Copyright © 2001, Junzo SATO, Chikara MIYAJI. All rights reserved.

Jun 5th 2001

By defalut, J/Link library is installed on a local computer with Mathematica. It is also possible to use J/Link on a remote computer. This means that the user can load Java objects inside the remote computer. The way to install remote J/Link is shown in this document.

Requirement

A local computer in which Mathematica and J/Link are installed is the one that opens this document. A remote computer should only have J/Link library and Java environment. It is not required for a remote computer to have Mathematica itself.

J/Link on remote Mac OS 9

[1]
Load local J/Link package.

[Graphics:Images/UsingRemoteJLink_gr_1.gif]

[2]
Create a mathlink

[Graphics:Images/UsingRemoteJLink_gr_2.gif][Graphics:Images/UsingRemoteJLink_gr_3.gif]

[3]
Start file sharing and program linking on the local (this) computer so that a remote computer can use MathKernel on the local machine.

[4]
On a remote Macintosh, double click the application "JLink" which is located in the folder JLink. It shows a dialog to choose a program to link. Select MathKernel in this dialog.

[5]
Install remote Java using a mathlink.

[Graphics:Images/UsingRemoteJLink_gr_4.gif][Graphics:Images/UsingRemoteJLink_gr_5.gif]

[6]
Now we can open a frame on the remote computer.

[Graphics:Images/UsingRemoteJLink_gr_6.gif][Graphics:Images/UsingRemoteJLink_gr_7.gif][Graphics:Images/UsingRemoteJLink_gr_8.gif]

[7]
Unloading staff.

[Graphics:Images/UsingRemoteJLink_gr_9.gif][Graphics:Images/UsingRemoteJLink_gr_10.gif][Graphics:Images/UsingRemoteJLink_gr_11.gif][Graphics:Images/UsingRemoteJLink_gr_12.gif][Graphics:Images/UsingRemoteJLink_gr_13.gif]

J/Link on remote Windows

[1]
Load local J/Link package.

[Graphics:Images/UsingRemoteJLink_gr_14.gif]

[2]
In command prompt of remote Windows, enter the following command:

java com.wolfram.jlink.Install -linkname 1234 -linkmode listen -linkprotocol tcp

[3]
Connect mathlink to the remote J/Link.

[Graphics:Images/UsingRemoteJLink_gr_15.gif][Graphics:Images/UsingRemoteJLink_gr_16.gif]

[4]
Install remote Java using a mathlink.

[Graphics:Images/UsingRemoteJLink_gr_17.gif][Graphics:Images/UsingRemoteJLink_gr_18.gif]

[5]
Now we can open a frame on the remote computer.

[Graphics:Images/UsingRemoteJLink_gr_19.gif][Graphics:Images/UsingRemoteJLink_gr_20.gif][Graphics:Images/UsingRemoteJLink_gr_21.gif][Graphics:Images/UsingRemoteJLink_gr_22.gif]

[6]
Unloading staff.

[Graphics:Images/UsingRemoteJLink_gr_23.gif][Graphics:Images/UsingRemoteJLink_gr_24.gif][Graphics:Images/UsingRemoteJLink_gr_25.gif][Graphics:Images/UsingRemoteJLink_gr_26.gif][Graphics:Images/UsingRemoteJLink_gr_27.gif]


Converted by Mathematica      June 5, 2001