Mathematica Stack Exchange is a question and answer site for users of Mathematica. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to write a java program that uses mathematica code for processing and graphs while using java for the front end. From what I've been able to glean from the j/link tutorials on the wolfram site I will need to import com.wolfram.jlink in my java program like so:

import com.wolfram.jlink.*;

I can't seem to get it to work. When I try to compile my compiler says that the com.wolfram package does not exist. I'm guessing that I need to download and install the com.wolfram package somewhere but I don't know where to acquire it and google has been less than helpful.

In case it's helpful I'm running JRE 1.6 on a machine running windows 7.

share|improve this question

migrated from Jun 29 '12 at 3:18

This question came from our site for professional and enthusiast programmers.

Can we assume you have Mathematica installed? I ask this because you refer to online documentation, whereas, with MMA installed, you'd probably use internal documentation. – Sjoerd C. de Vries Jun 29 '12 at 6:38
up vote 2 down vote accepted

Make sure that the jars are on your classpath.

share|improve this answer
Thank you for the help. I was able to solve the problem by including the JLink.jar file in my project. – shortgosoe Jul 2 '12 at 20:48

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.