Calling Mathematica from Java

 

ReferenceReference

KernelLink communicate with a Mathematica kernel

MathLink low-level methods for communicating with any MathLink program

MathLinkFactory create links

MathLinkException link errors

Monitoring Packet Flow

PacketListener, PacketArrivedEvent respond to arrival of MathLink packets

PacketPrinter print packet contents (useful for debugging)

Representing & Storing Expressions

Expr Java representation of Mathematica expressions

LoopbackLink temporary storage for expressions

User Interface Components

MathFrame, MathJFrame convenience classes for Mathematica-aware Java windows

MathCanvas, MathGraphicsJPanel display Mathematica graphics and typeset output

ConsoleWindow display Java console output

MathSessionPane fully functional user interface for Mathematica kernel sessions

InterruptDialog user interface for interrupting computations

BracketMatcher, SyntaxTokenizer utility classes for working with Mathematica input

Event Listeners

MathActionListener call a Mathematica function when an ActionEvent occurs in Java

MathWindowListener call a Mathematica function when a WindowEvent occurs in Java

MathAdjustmentListener ▪ MathComponentListener ▪ MathContainerListener ▪ MathFocusListener ▪ MathItemListener ▪ MathKeyListener ▪ MathMouseListener ▪ MathMouseMotionListener ▪ MathPropertyChangeListener ▪ MathTextListener ▪ MathVetoableChangeListener

LinkSnooper monitor the flow of packets between two MathLink programs

MathematicaTask Ant task for calling Mathematica

New to Mathematica? Find your learning path »
Have a question? Ask support »