Wolfram Computation Meets Knowledge

How do I debug issues with J/Link and InstallJava?

Many common errors in Mathematica arise from issues with the installation of Java. Debugging these errors involves evaluating the following Wolfram Language code. If you cannot run Mathematica, please try running the Wolfram Language Kernel.

  1. Evaluate the following code:
     <<JLink`
    InstallJava[]

    Please note that the last character is a tick mark (`), available on most keyboards under the tilde key, and is not an apostrophe (‘). Evaluating these expressions should return a LinkObject expression like the following:

     LinkObject[ ....]

    If you receive an error message, contact Wolfram Technical Support with the output.

  2. Next, evaluate:
     JavaNew["java.lang.Object"] 

    This should create an instance of a JavaObject expression like the following:

     << JavaObject[java.lang.Object] >>

    If you receive an error message, contact Wolfram Technical Support with the error message that this produces.

  3. Finally evaluate:
    <<PacletManager`
     PacletManager`Package`startPacletManager[]

    Please note that the last character is a tick mark (`), available on most keyboards under the tilde key, and is not an apostrophe (‘). This should not return any value.

    If you receive an error message, contact Wolfram Technical Support with the error message that this produces.

Is this article helpful?
Yes
No

Any comments?

Thank you for your feedback.

Submit

Contact Support

Whether you have a question about billing, activation or something more technical, we are ready to help you.

1-800-WOLFRAM (+1-217-398-0700 for international callers)

Customer Support

Monday–Friday
8am–5pm US Central Time

  • Product registration or activation
  • Pre-sales information and ordering
  • Help with installation and first launch

Advanced Technical Support (for eligible customers)

Monday–Thursday
8am–5pm US Central Time

Friday
8:30–10am & 11am–5pm US Central Time

  • Priority technical support
  • Product assistance from Wolfram experts
  • Help with Wolfram Language programming
  • Advanced installation support