⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 your first cup of java (for win32).mht

📁 Your First Cup of Java
💻 MHT
📖 第 1 页 / 共 5 页
字号:
From: <由 Microsoft Internet Explorer 5 保存>
Subject: Your First Cup of Java (for Win32)
Date: Fri, 6 Sep 2002 23:06:33 +0800
MIME-Version: 1.0
Content-Type: multipart/related;
	boundary="----=_NextPart_000_0000_01C255FA.0B238F60";
	type="text/html"
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000

This is a multi-part message in MIME format.

------=_NextPart_000_0000_01C255FA.0B238F60
Content-Type: text/html;
	charset="gb2312"
Content-Transfer-Encoding: quoted-printable
Content-Location: http://java.sun.com/docs/books/tutorial/getStarted/cupojava/win32.html

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Your First Cup of Java (for Win32)</TITLE>
<META http-equiv=3DContent-Type content=3D"text/html; charset=3Dgb2312">
<SCRIPT language=3DJavaScript>=0A=
<!-- hide=0A=
function openWin(term) {=0A=
  url=3D"../../information/glossary.html#" + term;=0A=
  myWin=3D window.open(url, "Glossary",=0A=
              =
"width=3D400,height=3D150,scrollbars=3Dyes,status=3Dno,toolbar=3Dno,menub=
ar=3Dno");=0A=
  myWin.focus();=0A=
}=0A=
//-->=0A=
</SCRIPT>

<META content=3D"MSHTML 6.00.2600.0" name=3DGENERATOR></HEAD>
<BODY link=3D#000099 bgColor=3D#ffffff><B><FONT size=3D-1>The =
Java</FONT><SUP><FONT=20
size=3D-2>TM</FONT></SUP> <FONT size=3D-1>Tutorial</FONT></B> <BR>
<TABLE width=3D550>
  <TBODY>
  <TR>
    <TD vAlign=3Dcenter align=3Dleft><A=20
      =
href=3D"http://java.sun.com/docs/books/tutorial/getStarted/cupojava/index=
.html"=20
      target=3D_top><IMG height=3D26 alt=3D"Previous Page"=20
      =
src=3D"http://java.sun.com/docs/books/tutorial/images/PreviousArrow.gif" =

      width=3D26 align=3Dcenter border=3D0></A> <A=20
      =
href=3D"http://java.sun.com/docs/books/tutorial/getStarted/TOC.html#cupoj=
ava"=20
      target=3D_top><IMG height=3D26 alt=3D"Lesson Contents"=20
      src=3D"http://java.sun.com/docs/books/tutorial/images/TOCIcon.gif" =
width=3D26=20
      align=3Dcenter border=3D0></A> <A=20
      =
href=3D"http://java.sun.com/docs/books/tutorial/getStarted/cupojava/unix.=
html"=20
      target=3D_top><IMG height=3D26 alt=3D"Next Page"=20
      =
src=3D"http://java.sun.com/docs/books/tutorial/images/NextArrow.gif"=20
      width=3D26 align=3Dcenter border=3D0></A></TD>
    <TD vAlign=3Dcenter align=3Dmiddle><FONT size=3D-1><A=20
      href=3D"http://java.sun.com/docs/books/tutorial/index.html"=20
      target=3D_top>Start of Tutorial</A> &gt; <A=20
      =
href=3D"http://java.sun.com/docs/books/tutorial/getStarted/index.html"=20
      target=3D_top>Start of Trail</A> &gt; <A=20
      =
href=3D"http://java.sun.com/docs/books/tutorial/getStarted/cupojava/index=
.html"=20
      target=3D_top>Start of Lesson</A> </FONT></TD>
    <TD vAlign=3Dcenter align=3Dright><FONT size=3D-1><A=20
      href=3D"http://java.sun.com/docs/books/tutorial/search.html"=20
      target=3D_top>Search</A> <BR><A=20
      =
href=3D"http://java.sun.com/docs/books/tutorial/forms/sendusmail.html">Fe=
edback=20
      Form</A> </FONT></TD></TR></TBODY></TABLE><IMG height=3D8=20
src=3D"http://java.sun.com/docs/books/tutorial/images/blueline.gif" =
width=3D550=20
align=3Dbottom NATURALSIZEFLAG=3D"3"> <BR><FONT size=3D-1><B>Trail</B>: =
Getting=20
Started <BR><B>Lesson</B>: Your First Cup of Java </FONT>
<H2>Your First Cup of Java (for Win32) </H2>
<BLOCKQUOTE><A name=3Dtop></A>
  <TABLE cellSpacing=3D0 cellPadding=3D0 width=3D680 border=3D0 NOSAVE>
    <TBODY>
    <TR NOSAVE>
      <TD NOSAVE>
        <TABLE cellSpacing=3D2 cellPadding=3D0 width=3D500 border=3D0 =
NOSAVE>
          <TBODY>
          <TR NOSAVE>
            <TD rowSpan=3D2 NOSAVE>
              <CENTER>
              <P>
              <CENTER><IMG height=3D96 alt=3D""=20
              =
src=3D"http://java.sun.com/docs/books/tutorial/figures/getStarted/butlers=
m.gif"=20
              width=3D86 align=3Dbottom NATURALSIZEFLAG=3D"3"></CENTER>
              <P></P></CENTER></TD>
            <TD>
              <BLOCKQUOTE><B><FONT face=3D"Arial, Helvetica"><FONT=20
                color=3D#707070>Detailed Instructions <BR>for Your First =

                Program</FONT></FONT></B>=20
                <P>The following instructions will help you write your =
first=20
                program. These instructions are for users of Win32 =
platforms,=20
                which include Windows 95/98/2000/ME/XP/NT 4.0. We start =
with a=20
                checklist of what you need to write your first program. =
Next, we=20
                cover the steps to creating an application, steps to =
creating an=20
                applet, and explanations of error messages you may =
encounter.=20
                </P></BLOCKQUOTE></TD></TR></TBODY></TABLE>
        <TABLE cellSpacing=3D0 cellPadding=3D10 border=3D0 NOSAVE>
          <TBODY>
          <TR NOSAVE>
            <TD vAlign=3Dtop NOSAVE><B><FONT face=3D"Arial, =
Helvetica"><FONT=20
              color=3D#0000ff>1. </FONT></FONT></B><A=20
              =
href=3D"http://java.sun.com/docs/books/tutorial/getStarted/cupojava/win32=
.html#1">A=20
              Checklist</A></TD>
            <TD vAlign=3Dtop NOSAVE><B><FONT face=3D"Arial, =
Helvetica"><FONT=20
              color=3D#ff0000>2. </FONT></FONT></B><A=20
              =
href=3D"http://java.sun.com/docs/books/tutorial/getStarted/cupojava/win32=
.html#2">Creating=20
              Your First Application</A> <BR>&nbsp;<FONT=20
              size=3D-1>&nbsp;&nbsp;&nbsp; a. <A=20
              =
href=3D"http://java.sun.com/docs/books/tutorial/getStarted/cupojava/win32=
.html#2a">Create=20
              a Java Source File</A></FONT> <BR>&nbsp;<FONT=20
              size=3D-1>&nbsp;&nbsp;&nbsp; b. <A=20
              =
href=3D"http://java.sun.com/docs/books/tutorial/getStarted/cupojava/win32=
.html#2b">Compile=20
              the Source File</A></FONT> <BR>&nbsp;<FONT=20
              size=3D-1>&nbsp;&nbsp;&nbsp; c. <A=20
              =
href=3D"http://java.sun.com/docs/books/tutorial/getStarted/cupojava/win32=
.html#2c">Run=20
              the Program</A></FONT></TD></TR>
          <TR NOSAVE>
            <TD vAlign=3Dtop NOSAVE><B><FONT face=3D"Arial, =
Helvetica"><FONT=20
              color=3D#990099>3.</FONT><FONT color=3D#ff00ff> =
</FONT></FONT></B><A=20
              =
href=3D"http://java.sun.com/docs/books/tutorial/getStarted/cupojava/win32=
.html#3">Creating=20
              Your First Applet</A></TD>
            <TD vAlign=3Dtop NOSAVE><B><FONT face=3D"Arial, =
Helvetica"><FONT=20
              color=3D#009900>4. </FONT></FONT></B><A=20
              =
href=3D"http://java.sun.com/docs/books/tutorial/getStarted/cupojava/win32=
.html#4">Where=20
              to Go from Here</A></TD></TR></TBODY></TABLE>
        <H2>
        <HR align=3Dleft>
        <BR><A name=3D1></A><FONT face=3D"Arial, Helvetica, =
sans-serif"><FONT=20
        color=3D#0000ff>1. </FONT>A Checklist&nbsp;</FONT> <IMG =
height=3D35 alt=3D""=20
        =
src=3D"http://java.sun.com/docs/books/tutorial/figures/getStarted/check.g=
if"=20
        width=3D31></H2>To write your first program, you need:=20
        <OL>
          <LI><B>The Java<SUP><FONT size=3D-2>TM</FONT></SUP> 2 =
Platform, Standard=20
          Edition.</B> You can <A=20
          href=3D"http://java.sun.com/j2se/1.4/download.html" =
target=3Dother><FONT=20
          color=3D#009bbb>download the SDK now </FONT></A><A=20
          href=3D"http://java.sun.com/j2se/1.4/download.html"><IMG =
height=3D11=20
          alt=3D"(outside of the tutorial)"=20
          =
src=3D"http://java.sun.com/docs/books/tutorial/images/otherIcon.gif"=20
          width=3D11 align=3DabsMiddle border=3D0></A> and consult the =
<A=20
          href=3D"http://java.sun.com/j2se/1.4/install-windows.html"=20
          target=3Dother><FONT color=3D#009bbb>installation=20
          instructions</FONT></A><A=20
          =
href=3D"http://java.sun.com/j2se/1.4/install-windows.html"><IMG=20
          height=3D11 alt=3D"(outside of the tutorial)"=20
          =
src=3D"http://java.sun.com/docs/books/tutorial/images/otherIcon.gif"=20
          width=3D11 align=3DabsMiddle border=3D0></A>. (Make sure you =
download the=20
          SDK, <I>not</I> the JRE.)=20
          <LI><B>A text editor.</B> In this example, we'll use NotePad, =
the=20
          simple editor included with the Windows platforms. To find =
NotePad,=20
          from the <FONT color=3D#990099>Start</FONT> menu select <FONT=20
          color=3D#990099>Programs</FONT> &gt; <FONT=20
          color=3D#990099>Accessories</FONT> &gt; <FONT=20
          color=3D#990099>NotePad</FONT>. You can easily adapt these =
instructions=20
          if you use a different text editor.&nbsp; </LI></OL>These two =
items are=20
        all you need to write your first Java program.=20
        <BLOCKQUOTE>
          <HR>
          <STRONG>Note:</STRONG>&nbsp;You may want to consider using an =
IDE to=20
          help you write your programs. Java 2 SDK, Standard Edition v. =
1.4, is=20
          available bundled with an IDE, the Forte<FONT=20
          size=3D-2><SUP>TM</SUP></FONT> for Java<FONT=20
          size=3D-2><SUP>TM</SUP></FONT>, Community Edition. Select the=20
          <EM>Forte<FONT size=3D-2><SUP>TM</SUP></FONT>/SDK</EM> option =
on the <A=20
          href=3D"http://java.sun.com/j2se/1.4/download.html" =
target=3Dother><FONT=20
          color=3D#009bbb>1.4 download page</FONT></A><A=20
          href=3D"http://java.sun.com/j2se/1.4/download.html"><IMG =
height=3D11=20
          alt=3D"(outside of the tutorial)"=20
          =
src=3D"http://java.sun.com/docs/books/tutorial/images/otherIcon.gif"=20
          width=3D11 align=3DabsMiddle border=3D0></A>.=20
          <HR>
        </BLOCKQUOTE>
        <H2>
        <HR align=3Dleft>
        </HR>
        <TABLE cellSpacing=3D0 cellPadding=3D0 width=3D"100%" =
border=3D0>
          <TBODY>
          <TR>
            <TD vAlign=3Dtop>
              <H2><A name=3D2></A><FONT face=3D"Arial, Helvetica, =
sans-serif"><FONT=20
              color=3D#ff0000>2. </FONT>Creating Your First=20
            Application</FONT></H2></TD>
            <TD rowSpan=3D2>
              <TABLE cellSpacing=3D2 cellPadding=3D5 width=3D"100%" =
border=3D0>
                <TBODY>
                <TR>
                  <TD>&nbsp;</TD></TR></TBODY></TABLE></TD>
            <TD vAlign=3Dtop rowSpan=3D2>
              <TABLE cellSpacing=3D0 cellPadding=3D10 width=3D"100%" =
border=3D1>
                <TBODY>
                <TR vAlign=3Dtop bgColor=3D#ccffff>
                  <TD vAlign=3Dtop bgColor=3D#dbe3f7><B><FONT=20
                    face=3D"Arial, Helvetica, sans-serif"><FONT =
color=3D#990000>Why=20
                    Bytecodes are Cool</FONT></FONT></B>=20

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -