Mathematica 9 is now available
Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2006

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

Search the Archive

  • To: mathgroup at
  • Subject: [mg69584]
  • From: "Chris Chiasson" <chris at>
  • Date: Sat, 16 Sep 2006 03:50:24 -0400 (EDT)

Hi, I am trying to use the ant task that ships with Mathematica. When
I use the Java Runtime Environment that ships with Mathematica, the
build succeeds. However, this is not something I want to depend upon,
because my real build is meant to do other things in addition to
running Mathematica code:

C:\Documents and Settings\Chris\Desktop>"C:\Program Files\ant\apache-ant-1.6.5\b
Buildfile: build.xml

     [echo] 0
     [echo] 1
     [echo] 4
     [echo] 9
     [echo] 16
     [echo] 25
     [echo] 36
     [echo] 49
     [echo] 64
     [echo] 81

Total time: 1 second

When I use Sun's standard jre1.5.0_06 (aka Java 5), the build fails
with a lot of errors:

C:\Documents and Settings\Chris\Desktop>"C:\Program Files\ant\apache-ant-1.6.5\b
Unable to locate tools.jar. Expected to find it in C:\Program Files\Java\jre1.5.
Buildfile: build.xml

[mathematica] Fatal error: cannot find the required native library named JLinkNa

java.lang.UnsatisfiedLinkError: MLOpen

Total time: 1 second

The output doesn't show it, but a dialog box also pops up saying it
can't find jawt.dll.

Here is the source code for the build:

<?xml version="1.0" encoding="UTF-8"?>
<project name="Website Build" default="all">
	<property environment="env"/>
  <taskdef name="mathematica"
  	classpath="C:\Program Files\Wolfram
  <target name="all">
  	<mathematica exe="C:\Program Files\Wolfram

If you will, please tell me how I can use the MathematicaTask (look
for inside the Mathematica distribution) with a
standard Java Runtime Environment. (I recommend testing with the
version that doesn't work first. The version that does work appears to
be "sticky" (on Windows anyway) - and no, I don't know how to be more
definite than that.)


  • Prev by Date: Re: Known recursion link to Hermite polynomials not solved in Mathematica
  • Next by Date: Re:
  • Previous by thread: RE: question about plot
  • Next by thread: Re: