MathGroup Archive 2004

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

Search the Archive

Java programming and JLink

  • To: mathgroup at
  • Subject: [mg45471] Java programming and JLink
  • From: Andrew Dabrowski <dabrowsa at>
  • Date: Fri, 9 Jan 2004 05:20:39 -0500 (EST)
  • Sender: owner-wri-mathgroup at

I love mathematica, but I'd sometimes like to be able to make programs
that will run on anyone's computer, whether or not they have mathematica

So i'm thinking about learning Java.

Now mathematica 5 comes with the wonderful JLink package, which makes
it easy to work with Java inside mathematica.  In some ways it's like
Jython, a cleaner language than Java within which you can create objects
to run on the Java VM.

But there seems to be one important functionality missing from JLink
(that is present in Jython): the ability to compile classes to .class
files that can be run on any Java VM.

Am I right that this functionality is missing from JLink?

Does anyone have a workaround to suggest?  I know that I can also work
directly with Java and still call the classes that I compile there from inside
mathematica, but in several respects it would be nice to be able to
compile classes from mathematica as well.

Actually, it has just occurred to me while typing this that JLink may
not even have the ability to define new Java classes.  If so, that's a
much more fundamental limitation.

Andrew Dabrowski    | is a ghost's right / his element is so fine / being
Bloomington IN USA  |sharpened by his death / to drink from the wine breath /
dabrowsa at|while our gross palates drink from the whole wine. -Yeats

  • Prev by Date: Re: Cell Format - Output Cell, Format Change After Evaluation
  • Next by Date: Re: Symbolic matrix algebra
  • Previous by thread: RE: Extracting elements of lists
  • Next by thread: Re: Java programming and JLink