Mathematica Technical FAQs Services & Resources / Mathematica
-----
 /
J/Link
*Mathematica
*Network Mathematica
*webMathematica
*gridMathematica
*Personal Grid Edition
*Wolfram Workbench
*Wolfram Education Group
*Application Packages
*Mathematica for Students
*Mathematica CalcCenter
*Publicon
*A New Kind of Science Explorer
*Mathematical Explorer
*Mathematica Teacher's Edition
*Calculus WIZ
*Mathematica Player
*Ask about this page
*Print this page
*Email this page
*Give us feedback
*
Sign up for our newsletter:

How do I address problems with J/Link and InstallJava when I start Mathematica 6?

If errors about J/Link and InstallJava appear when you launch Mathematica, we need gather some diagnostic information in order to help you. Here are instructions to follow which will help you gather the information we need.

1.

Launch a standalone Mathematica kernel.

 

In Windows click Start > All Programs > Wolfram Mathematica > Mathematica 6 Kernel.

 

In Mac OS X right-click (or CTRL-[click]) the Mathematica 6.0 application (Mathematica.app) and select Show Package Contents. In the resulting folder, open the Contents/MacOS and double-click the MathKernel icon.

 

In Linux/Unix launch a terminal window and enter the path to the kernel. Typically, this is /usr/local/Wolfram/Mathematica/6.0/Executables/MathKernel. Or you can change directories to the /usr/.../Executables/ directory and start the kernel by executing ./MathKernel.

2.

In this kernel interface, enter the following (the In[x] prompts will appear automatically):

 

In[1]:= <<JLink`

 

In[2]:= InstallJava[]

 

What is the result from In[2]? It should be a LinkObject. Do these commands produce any error messages? If the output isn't a LinkObject, stop there and send us the output, including all messages.

3.

If it is a LinkObject, continue with the following:

 

In[3]:= JavaNew["java.lang.Object"]

 

This should return a JavaObject. If it does, that proves that J/Link is functioning correctly.

4.

The next thing to try is this:

 

In[4]:= <<PacletManager`

 

In[5]:= PacletManager`Package`startPacletManager[]

 

The last line should return nothing.

Please send the inputs and outputs of this session to Wolfram Technical Support.

Download this FAQ as a Mathematica 6.0 Notebook






 © 2008 Wolfram Research, Inc.  Terms of Use  Privacy Policy | [ja] [kr]