资源预览内容
第1页 / 共16页
第2页 / 共16页
第3页 / 共16页
第4页 / 共16页
第5页 / 共16页
第6页 / 共16页
第7页 / 共16页
第8页 / 共16页
第9页 / 共16页
第10页 / 共16页
亲,该文档总共16页,到这儿已超出免费预览范围,如果喜欢就下载吧!
资源描述
Lesson,Downloading the Java Compiler,What is the Java development environment? 2. If you see the message“Bad command or file name”, what will you do next?,Warm-up Exercises,documentation 文件编制 install 安装 temp 临时 directory 目录 install 安装 unpack解压缩包 install安装 unzip解压 path variable 路径变量 prompt提示 demo 演示 kit 工具库,Word Preparation,In order to get a Java development environment set up on your machine - you “develop“ (write) computer programs using a “development environment“ - you will have to complete the following steps: 1. Download a large file containing the Java development environment (the compiler and other tools). 2. Download a large file containing the Java documentation. 3. If you do not already have WinZip (or an equivalent) on your machine, you will need to download a large file containing WinZip and install it.,4. Install the Java development environment. 5. Install the documentation. 6. Adjust several environment variables. 7. Test everything out. Before getting started, it would make things easier if you create a new directory in your temp directory to hold the files we are about to download. We will call this the download directory.,开始之前,最好先在临时目录中建立一个新目录,保存要下载的文件,Step 1 - Download the Java development environment Go to the page http:/java.sun.com/j2se/1.4.2/download.html. Download the SDK software by clicking on the “Download J2SE SDK“ link. You will be shown a licensing agreement. Click Accept. Select your operating system and download the file to your download directory. This is a huge file, and it will take several hours to download over a normal phone-line modem. The next two files are also large. Step 2 - Download the Java documentation Download the documentation by selecting your operating system and clicking the SDK 1.4.1 documentation link.,可以看到许可证协议,单击Accept按钮,Step 3 - Download and install WinZip If you do not have a version of WinZip or an equivalent on your machine, go to the page http:/www.winzip.com/ and download an evaluation copy of WinZip. Run the EXE you get to install it. We will use it in a moment to install the documentation. Step 4 - Install the development kit Run the j2sdk-1_4_1-*.exe file that you downloaded in step 1. It will unpack and install the development kit automatically.,Step 5 - Install the documentation Read the installation instructions for the documentation. They will instruct you to move the documentation file to same directory as that containing the development kit you just installed. Unzip the documentation and it will drop into the proper place. Step 6 - Adjust your environment You need to change your path variable. This is most easily done by opening an MS-DOS prompt and typing PATH to see what the path is set to currently. Then open autoexec.bat in Notepad and make the changes to PATH specified in the instructions.,Step 7 Test Now you should be able to open another MS-DOS window and type javac. If everything is set up properly, then you should see a two-line blob of text come out that tells you how to use javac. That means you are ready to go. If you see the message “Bad Command or File Name“ it means you are not ready to go. Figure out what you did wrong by rereading the installation instructions. Make sure the PATH is set properly and working. Go back and reread the Programmers Creed above and be persistent until the problem is resolved.,You are now the proud owner of a machine that can compile Java programs. You are ready to start writing software! By the way, one of the things you just unpacked is a demo directory full of neat examples. All of the examples are ready to run, so you might want to find the directory and play with some of the samples. Many of them make sounds, so be sure to turn on your speakers.,这样,你就可以骄傲地拥有能够编译Java程序的计算机了,In computer program and software product development, the development environment is the set of processes and programming tools used to create the program or software product. The term may sometimes also imply the physical environment. An integrated development environment is one in which the processes and tools are coordinated to provide developers an orderly interface to and convenient view of the development process (or at least the processes of writing code, testing it, and packaging it for use). An example of an IDE product is Microsofts Visual Studio .NET. The term computer-assisted software environment (CASE) is generally used to describe a set of tools and practices that facilitate management of a software development project.,Development environment,Development kits provide a complete, high-quality design environment for engineers. A wide variety of kits help simplify the design process and reduce time-to-market. Development kits include software, reference designs, cables, and programming hardware. It may be something as simple as an application programming interface (API) in the form of some files to interface to a particular programming language or include sophisticated hardware to communicate with a
收藏 下载该资源
网站客服QQ:2055934822
金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号