Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2004
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2004

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

Search the Archive

Java programming and JLink

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

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
installed.

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    |...it 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 indiana.edu|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