Mathematica 9 is now available
Wolfram Mathematica Tutorial Collection
J/Link User Guide
Look Inside
J/Link User Guide
Pages: 479, b&w
ISBN: 978-1-57955-071-4
Year: 2008
PRINT VERSION:
$ 19.95
Buy Now
Description

J/Link integrates Mathematica and Java. J/Link lets you call Java from Mathematica in a completely transparent way, and it also lets you use and control the Mathematica kernel from a Java program. For Mathematica users, J/Link makes the whole universe of existing and future Java classes an automatic extension to the Mathematica environment. For Java programmers, J/Link turns Mathematica into a scripting shell that lets you experiment with, build, and test Java classes a line at a time. It also makes Java the ideal language for writing programs that use the computational services of Mathematica.

J/Link's most unique feature is that it lets you load arbitrary Java classes into Mathematica and then create Java objects, call methods, and access fields directly from the Mathematica language. Thus, you can use Mathematica to "script" the functionality of an arbitrary Java program--in effect, writing a Java program in Mathematica. Essentially anything you can do from Java you can now do from Mathematica, perhaps even more easily because you are working in a true interpreted environment.

Table of Contents

Introduction to J/Link | Calling Java from Mathematica | Writing Java Programs That Use Mathematica