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:

자바 (Java) 가 정상적으로 작동합니까?

자바가 제대로 설치되었는지 아래의 예제를 컴파일하여 바이코드 (bycode) 로 만든뒤 자바 VM 을 사용해 실행시켜 보시기 바랍니다. 아래와 같이 HelloWorld.java 파일을 편리한 텍스트 에디터를 이용해 만듭니다.

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

C:\ 디렉토리로 위의 파일을 옮깁니다.

2.

DOS 프롬프트를 실행합니다.

3.

프롬프트에서 디렉토리를 C:\ 로 바꿉니다.

4.

아래와 같이 HelloWorld.java 를 컴파일한뒤 실행합니다.

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

Hello World! 를 보실수 없거나 뭔가 잘못된 메시지가 나온다면 Sun 웹사이트를 방문하셔서 문제를 해결하시기 바랍니다.

Download this FAQ as a Mathematica 5.2 Notebook






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