Wolfram ResearchProductsPurchasingServices & ResourcesAbout UsOur Sites
webMathematica Technical FAQs Services & Resources / webMathematica
-----
 /
Windows
*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:

Is Java working?

Verify that your installation of Java was successful by compiling the following Java example. Create a file, HelloWorld.java, containing the following:

public class HelloWorld {
  public static void main ( String[] args) {
    System.out.println( "Hello World!");
  }
} 
1.

Place it into C:\.

2.

Run a DOS prompt.

3.

Change directories to C:\.

4.

Compile HelloWorld.java and run it as follows.

C:\> javac HelloWorld.java 
C:\> java HelloWorld 
Hello World! 
C:\> 

If you do not see the line Hello World, or see messages then something is wrong with your installation. Please refer to Sun's website for assistance. The Java Tutorial might prove quite useful in troubleshooting any of these problems.

Download this FAQ as a Mathematica 5.2 Notebook






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