MathGroup Archive 2008

[Date Index] [Thread Index] [Author Index]

Search the Archive

FrontEnd and JLink

I want to create Mathematica graphical objects (notebook with cells,
palettes, plots, etc) from a Java Gui using JLink calls
Apparently, this is not possible until you don't use the
Mathematica.exe frontend
(no way to initialize a frontend from a java gui)

hereafter a Java example
Any helps ?


import com.wolfram.jlink.*;

class Exemple_FrontEnd {
   public static void main (String[] args){

try {
  KernelLink ml = MathLinkFactory.createKernelLink("-linkmode launch -
linkname \"MathKernel\"");
  ml.evaluateToInputForm("Needs[\"" + KernelLink.PACKAGE_CONTEXT +
  ml.evaluateToInputForm("ConnectToFrontEnd[]", 0);

} catch (MathLinkException e) {

  • Prev by Date: Re: Product command with matrices
  • Next by Date: Mathematica syntax
  • Previous by thread: Re: axis alignment of 3D plots with ListContourPlot3D
  • Next by thread: Re: FrontEnd and JLink