Thinking in Java 3th

Source: Internet
Author: User

I. Establishment of the programming environment

The best way to learn a good programming language is to read more code and code. To this end, we should build a programming environment at the beginning of learning Java, so that while reading the book knowledge, we can practice more, experience the code style and programming process, and deepen our understanding of the language. Based on the experience of programmers on the Forum, I decided to use command line programming as a programming environment for beginners in Java. In this way, you do not need to spend too much time studying the use of the programming platform, and can experience the programming process under the command line (relatively primitive programming environment ). The specific configuration steps are as follows:

1. Download jdk-6u27-ea-bin-b03-windows-i586-27_may_2011.exe from the network,

2. Double-click jdk-6u27-ea-bin-b03-windows-i586-27_may_2011.exe and install it in the c: \ Program Files \ Java path. (You can select a path based on your needs)

3. Configure environment variables:

Under the XP system, right-click "my computer", select "properties", select "advanced", and click "environment variables" in "system variables (s )".

Create: java_home: C: \ ProgramFiles \ Java \ jdk1.6

New: classpath:.; % java_home % \ lib remarks: At the beginning, I found the variable named class_path from the network, but later I found that I could not find some libraries and then changed it to classpath, which is not clear here

Edit: Path: Add % java_home % \ bin at the beginning;

4. Finally, test whether the installation and configuration are correct, start-> Run-> enter "cmd"-> enter "Java" in the command line-> If the prompt "Java is not an internal or external command... it indicates that there is a problem with the installation, and you need to reinstall and configure it.

Ii. Add com. bruceeckel. simpletest Library

When studying thinking in Java 3th, you will encounter the following statements in the book: Import com. bruceeckel. simpletest. *; this is the class prepared by the author. If you want to use it, you need to download it from the original book's CD or on the Internet. Because I am using an e-book downloaded from the Internet (PDF format), I can only download the com package or folder from the Internet (I'm not sure how to call it ). This is really a difficult process. I downloaded four such files from the Internet and finally found a usable one. There are some errors, but I am a beginner in Java, so there are not many ways to test the errors of each file. It is useless anyway. For beginners like me, my advice is not to spend too much time on com. bruceeckel. the simpletest library is focused on learning books and spending more time on exercises after each chapter.

The download path for my com folder is: http://www.pudn.com/downloads149/ebook/detail643909.html

This is the summary of this article. In the future, with the deepening of the study, we will update new content and learning experiences.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.