레이블이 Java tutorials인 게시물을 표시합니다. 모든 게시물 표시
레이블이 Java tutorials인 게시물을 표시합니다. 모든 게시물 표시

2012년 10월 10일

Lesson: The "Hello World!" Application(레슨: "Hello World!" 응용프로그램)


The sections listed below provide detailed instructions for compiling and running a simple "Hello World!" application. The first section provides information on getting started with the NetBeans IDE, an integrated development environment that greatly simplifies the software development process. The NetBeans IDE runs on all of the platforms listed below. The remaining sections provide platform-specific instructions for getting started without an integrated development environment. If you run into problems, be sure to consult the common problems section; it provides solutions for many issues encountered by new users.
"Hello World!" for the NetBeans IDE These instructions are for users of the NetBeans IDE. The NetBeans IDE runs on the Java platform, which means that you can use it with any operating system for which there is a JDK 7 available. These operating systems include Microsoft Windows, Solaris OS, Linux, and Mac OS X. We recommend using the NetBeans IDE instead of the command line whenever possible.
"Hello World!" for Microsoft Windows These command-line instructions are for users of Windows XP Professional, Windows XP Home, Windows Server 2003, Windows 2000 Professional, and Windows Vista.
"Hello World!" for Solaris OS and Linux These command-line instructions are for users of Solaris OS and Linux. Common Problems (and Their Solutions) Consult this page if you have problems compiling or running your application.

2012년 8월 3일

How Will Java Technology Change My Life?(자바 테크놀로지는 나의 삶을 어떻게 바꾸는가?)

수정 중


How Will Java Technology Change My Life?

We can't promise you fame, fortune, or even a job if you learn the Java programming language. Still, it is likely to make your programs better and requires less effort than other languages. We believe that Java technology will help you do the following:
저희는 자바 프로그래밍 언어를 배우는 것으로 부, 명성 또는 직업을 얻게 돼는 것을 보장하지 않습니다. 하지만, 당신의 프로그램이 개선 될 가능성이 있으며, 다른 언어보다 (배우는데) 적은 노력이 듭니다. 우리는 자바 테크놀로지를 사용하면 밑의 내용을 할 수 있을 것입니다.
  • Get started quickly: Although the Java programming language is a powerful object-oriented language, it's easy to learn, especially for programmers already familiar with C or C++.
  • 시작이 쉽습니다 :자바 프로그래밍 언어는 강력한 객체지향언어입니다. 배우기 쉽우며, 특히 C와 C++을 익힌 프로그래머들에겐 익숙합니다.

  • Write less code: Comparisons of program metrics (class counts, method counts, and so on) suggest that a program written in the Java programming language can be four times smaller than the same program written in C++.
  • 적은 코드량 : 프로그램 측정항목을 비교

  • Write better code: The Java programming language encourages good coding practices, and automatic garbage collection helps you avoid memory leaks. Its object orientation, its JavaBeans™ component architecture, and its wide-ranging, easily extendible API let you reuse existing, tested code and introduce fewer bugs.
  • 더 나은 코드 작성:

  • Develop programs more quickly: The Java programming language is simpler than C++, and as such, your development time could be up to twice as fast when writing in it. Your programs will also require fewer lines of code.
  • 프로그램 개발이 더 빨라집니다:

  • Avoid platform dependencies: You can keep your program portable by avoiding the use of libraries written in other languages.
  • 플랫폼 종속성을 피하세요:

  • Write once, run anywhere: Because applications written in the Java programming language are compiled into machine-independent bytecodes, they run consistently on any Java platform.
  • 한번 작성으로, 어디서든 실행:

  • Distribute software more easily: With Java Web Start software, users will be able to launch your applications with a single click of the mouse. An automatic version check at startup ensures that users are always up to date with the latest version of your software. If an update is available, the Java Web Start software will automatically update their installation.
  • 보다 쉽게 소프트웨어를 배포:

2012년 8월 1일

What Can Java Technology Do?(자바 테크놀로지로 어떤걸 할 수 있는가?)?

작성중입니다. 오역에 대한 태클은 언제든지 환영합니다.


What Can Java Technology Do?

자바 테크놀로지로 어떤걸 할 수 있는가?

The general-purpose, high-level Java programming language is a powerful software platform.
범용, 하이 레벨 자바 프로그래밍 언어는 강력한 소프트웨어 플랫폼입니다.

Every full implementation of the Java platform gives you the following features:
Java 플랫폼의 완벽한 구현은 당신에게 다음과 같은 기능을 제공합니다 :
  • Development Tools: The development tools provide everything you'll need for compiling, running, monitoring, debugging, and documenting your applications. As a new developer, the main tools you'll be using are the javac compiler, the javalauncher, and the javadoc documentation tool.
  • 개발자용 도구 : 개발자용 도구는 컴파일, 실행,  모니터링, 디버깅, 그리고 응용 프로그램을 문서화를 위해 필요한 모든 것을 제공합니다.  새로운 개발자로, 당신이 사용하게뒬 것은 javac  컴파일러, 자비 런처, 그리고 javadoc 문서 도구입니다.

  • Application Programming Interface (API): The API provides the core functionality of the Java programming language. It offers a wide array of useful classes ready for use in your own applications. It spans everything from basic objects, to networking and security, to XML generation and database access, and more. The core API is very large; to get an overview of what it contains, consult the Java Platform Standard Edition 7 Documentation.
  • 응용프로그램 프로그래밍 인터페이스(API) : API는 Java 프로그래밍 언어의 핵심 기능을 제공합니다. API는 자신의 응용 프로그램에서 사용할 수 있는 유용한 클래스들의 다양한 배열을 제공합니다. 이 것은 기본 오브젝트, 네트워킹과 보안, XML 생성 및 데이터베이스 엑세스 전반에 걸쳐 있습니다. 핵심 API는 매우 방대합니다; 어떤 내용을 가지고 있는지 개요를 보시고 싶으시면 자바 플랫폼 스탠다드 에디션 7 설명서를 참조하세요.

  • Deployment Technologies: The JDK software provides standard mechanisms such as the Java Web Start software and Java Plug-In software for deploying your applications to end users.
  • 개발 테크놀로지 : JDK 소프트웨어는 자바 웹 스타트 소프트웨어 및 최종사용자에게 배포하기 위한 자바 플러그인 소프트웨어같은 표준 메커니즘을 제공합니다.

  • User Interface Toolkits: The Swing and Java 2D toolkits make it possible to create sophisticated Graphical User Interfaces (GUIs).
  • 유저 인터페이스 툴킷: 스윙과 자바 2D 툴킷은 정교한 그래픽 유저 인터페이스(GUIs)의 제작을 가능하게 합니다.

  • Integration Libraries: Integration libraries such as the Java IDL API, JDBC™ API, Java Naming and Directory Interface™ (JNDI) API, Java RMI, and Java Remote Method Invocation over Internet Inter-ORB Protocol Technology (Java RMI-IIOP Technology) enable database access and manipulation of remote objects.
  • 통합 라이브러리

About the Java Technology(자바 테크놀로지 소개)

영어 문장과 밑에 개인적으로 번역한걸 같이 올려놓습니다.(대충 번역기 돌리고 뜻 찾아서 짜맞춘 거라 오역이 많을 수 있습니다. 틀린 부분 있으면 고치겠습니다.)



About the Java Technology
자바 테크놀로지 소개

Java technology is both a programming language and a platform.
자바 테크놀로지는 프로그래밍 언어와 플랫폼 모두를 뜻합니다..


The Java Programming Language

자바 프로그래밍 언어

The Java programming language is a high-level language that can be characterized by all of the following buzzwords:
자바 프로그래밍 언어는 아래의 단어(전문적인 단어)의 특징을 지니고 있는 하이-레벨 언어입니다.
  • Simple 간단하다
  • Object oriented 객체지향
  • Distributed 분산
  • Multithreaded 멀티 스레드
  • Dynamic 동적이다.
  • Architecture neutral 아키텍처에 중립적이다.
  • Portable 이식성(다른 기기로의)
  • High performance 고성능이다.
  • Robust 강력하다.
  • Secure 안전하다(혹은 안정적이다.)


Each of the preceding buzzwords is explained in The Java Language Environment , a white paper written by James Gosling and Henry McGilton.
앞의 단어들은 James GoslingHenry McGilton이 작성한 “자바 언어 환경” 백서에서 설명합니다.

In the Java programming language, all source code is first written in plain text files ending with the .java extension.
자바 프로그래밍 언어에서, 모든 소스 코드는 .java 확장자로 끝나는 텍스트 파일에 기록합니다.

Those source files are then compiled into .class files by the javaccompiler.
그 원시 파일은 javac 컴파일러에 의해 .class 파일로 컴파일 됩니다.

.class file does not contain code that is native to your processor; it instead contains bytecodes —the machine language of the Java Virtual Machine1 (Java VM).
.class 파일은 당신이 가진 프로세서의 네이티브 코드를 포함하지 않습니다 ; 대신 바이트코드들을 포함합니다.-- (바이트 코드)자바 가상 머신의 머신 랭귀지(Java VM).

The java launcher tool then runs your application with an instance of the Java Virtual Machine.
자바 런처 도구는 그 후에(.class 파일, 혹은 바이트 코드를 만든 후에) 자바 가상 머신의 인스턴스와 응용프로그램을 실행합니다.
An overview of the software development process.
소프트 웨어 개발 과정 개요

Because the Java VM is available on many different operating systems, the same .classfiles are capable of running on Microsoft Windows, the Solaris™ Operating System (Solaris OS), Linux, or Mac OS.
하지만 자바 VM은 다양한 종류의 운영체제에서 사용가능하기 때문에, 같은 .class 파일들은 마이크로 소프트 윈도우즈, 솔라리스 운영체제(Solaris OS), 리눅스, 맥OS에서 실행시킬 수 있습니다.

Some virtual machines, such as the Java SE HotSpot at a Glance, perform additional steps at runtime to give your application a performance boost.
몇몇 가상 머신들은, 예를 들어 자바 SE 핫 스팟 둘러보기와 같이, 응용 프로그램 성능 향상을 제공하기 위해 런타임에서 추가 단계를 수행합니다.

This include various tasks such as finding performance bottlenecks and recompiling (to native code) frequently used sections of code.
여기에는 성능 병목 현상을 발견하고 코드를 자주 사용하는 부분을 다시 컴파일하는(원시 코드로) 등 다양한 작업이 포함됩니다.

Figure showing source code, compiler, and Java VM's for Win32, Solaris OS/Linux, and Mac OS
Through the Java VM, the same application is capable of running on multiple platforms.
자바 VM을 통해, 같은 응용프로그램이 다양한 플랫폼에서 동작 가능합니다.

The Java Platform

바 플랫폼

platform is the hardware or software environment in which a program runs.
플랫폼은 프로그램이 실행되는 하드웨어 또는 소프트웨어 환경입니다.

We've already mentioned some of the most popular platforms like Microsoft Windows, Linux, Solaris OS, and Mac OS.
우리들은 이미 마이크로 소프트 윈도우즈, 리눅스, 솔라리스 OS 및 맥OS와 같은 가장 인기있는 플랫폼의 일부를 언급했습니다.

Most platforms can be described as a combination of the operating system and underlying hardware.
대부분의 플랫폼들은 운영 체제와 기본적인 하드웨어의 조합이라고 할 수 있습니다.

The Java platform differs from most other platforms in that it's a software-only platform that runs on top of other hardware-based platforms.
자바 플랫폼은 하드웨어 기반 하에 동작하는 전용 소프트웨어 플랫폼과 다릅니다.

The Java platform has two components:
자바 플랫폼은 두가지 구성요소를 가지고 있습니다:
  • The Java Virtual Machine
    자바 가상 머신
  • The Java Application Programming Interface (API)
    자바 응용 프로그래밍 인터페이스(API)
You've already been introduced to the Java Virtual Machine; it's the base for the Java platform and is ported onto various hardware-based platforms.
여러분에겐 이미 자바 가상머신을 소개했습니다;Java 플랫폼의 기본적인 것과, 다양한 하드웨어 기반 플랫폼에 포팅하고 있습니다.

The API is a large collection of ready-made software components that provide many 
useful capabilities.
API는 다양하며 유용한 기능을 제공하는, 미리 만들어진 소프트웨어 구성 요소의 모음입니다.

It is grouped into libraries of related classes and interfaces; these libraries are known as packages.
API는 관련된 글래스와 인터페이스 라이브러리로 그룹화 되어 있습니다: 이 라이브러리들은 '패키지'로 알려져있습니다.

The next section, What Can Java Technology Do? highlights some of the functionality provided by the API.
다음 섹션, 자바 테크놀로지는 뭘 할수 있지? 는 API에서 제공하는 기능 중 일부를 강조합니다.
Figure showing MyProgram.java, API, Java Virtual Machine, and Hardware-Based Platform
The API and Java Virtual Machine insulate the program from the underlying hardware.
API와 자바 가상머신은 하드웨어 하의 프로그램과 떨어져 있습니다.

As a platform-independent environment, the Java platform can be a bit slower than native code.
플랫폼에 독립적인 환경인 자바 플랫폼은 네이티브 코드보다 약간 느려질 수 있습니다.

However, advances in compiler and virtual machine technologies are bringing performance close to that of native code without threatening portability.
하지만, 컴파일러와 가상 머신 기술의 발전은 이식하는데 문제 없이 네이티브 코드에 가까운 성능을 보여줍니다.

The terms"Java Virtual Machine" and "JVM" mean a Virtual Machine for the Java platform.
"자바 가상머신"과 "JVM"은 자바 플랫폼의 가상 머신을 뜻하는 말입니다.