• Complain

Steve Holzner - Eclipse Cookbook

Here you can read online Steve Holzner - Eclipse Cookbook full text of the book (entire story) in english for free. Download pdf and epub, get meaning, cover and reviews about this ebook. year: 2004, publisher: OReilly Media, genre: Computer. Description of the work, (preface) as well as reviews are available. Best literature library LitArk.com created for fans of good reading and offers a wide selection of genres:

Romance novel Science fiction Adventure Detective Science History Home and family Prose Art Politics Computer Non-fiction Religion Business Children Humor

Choose a favorite category and find really read worthwhile books. Enjoy immersion in the world of imagination, feel the emotions of the characters or learn something new for yourself, make an fascinating discovery.

Steve Holzner Eclipse Cookbook
  • Book:
    Eclipse Cookbook
  • Author:
  • Publisher:
    OReilly Media
  • Genre:
  • Year:
    2004
  • Rating:
    5 / 5
  • Favourites:
    Add to favourites
  • Your mark:
    • 100
    • 1
    • 2
    • 3
    • 4
    • 5

Eclipse Cookbook: summary, description and annotation

We offer to read an annotation, description, summary or preface (depends on what the author of the book "Eclipse Cookbook" wrote himself). If you haven't found the necessary information about the book — write in the comments, we will try to find it.

Youve probably heard the buzz about Eclipse, the powerful open source platform that gives Java developers a new way to approach development projects. Its like a shiny new car-no longer content to just admire Eclipse, youre now itching to get in and drive. Eclipse is to Java developers what Visual Studio is to .NET developers-its an integrated development environment (IDE) that combines a code editor, compiler, debugger, text editor, graphical user interface (GUI) builder, and other components into a single, user-friendly application. It provides a solid foundation that enables Java developers to construct and run integrated software-development tools for web development, application design, modeling, performance, testing, and much more. As with any extensive programming tool, however, theres a lot to learn. And there s no better guy than well-known Java expert Steve Holzner to teach you. An award-winning and best-selling author who has been writing about Java topics since the language first appeared, Holzner delivers just the kind of targeted, practical, everyday knowledge you need to hone your mastery of Eclipse. Perfect as a companion to an Eclipse programming tutorial (such as Holzners own Eclipse, OReilly, April 2004) or an ideal stand-alone for all those developers who either dont want or dont need the tutorial approach, the Eclipse Cookbook contains task-oriented recipes for more than 800 situations you may encounter while using this new Java platform-from deploying a web application automatically to reverse engineering compiled code, from re-naming all references to a class across multiple packages to initializing the SWT JNI libraries. Each recipe in the ever-popular and utterly practical problem-solution-discussion format for OReilly cookbooks contains a clear and thorough description of the problem, a brief but complete discussion of a solution, and in-action examples illustrating that solutio

Steve Holzner: author's other books


Who wrote Eclipse Cookbook? Find out the surname, the name of the author of the book and a list of all author's works by series.

Eclipse Cookbook — read online for free the complete book (whole text) full work

Below is the text of the book, divided by pages. System saving the place of the last page read, allows you to conveniently read the book "Eclipse Cookbook" online for free, without having to search again every time where you left off. Put a bookmark, and you can go to the page where you finished reading at any time.

Light

Font size:

Reset

Interval:

Bookmark:

Make
Introduction

If you're a Java programmer,Eclipse is the best thing since sliced bread. Eclipse not only takesthe rough edges off Java development better than any other product,but also it's a free download!

Even if you develop with just the Java compiler, javac , Eclipse can make life easier for you. Infact, Eclipse's Integrated Development Environment(IDE) makes the development process as close to fun as it can get:the first time that Java programmers fire up Eclipse and start to useit, they often find themselves thinking, This isgreat!

As with any extensive programming tool, however, Eclipse has alearning curve. In this chapter, we will brush up on fundamentalEclipse skills, from installing Eclipse to creating a simple Javaapplication. Some of these skills are covered for the sake ofreference, and you already might be adept at them, while others mightbe new to you. The goal with this book is to push the Eclipseenvelope; to do that, you must have the solid foundation this chapterprovides.

Recipe 1.1 Getting Eclipse
1.1.1 Problem

You want to tryoutEclipse.

1.1.2 Solution

Eclipse is a free download, and you can pick it up at http://www.eclipse.org. Just click the Downloads link located on theleft side of that page.

1.1.3 Discussion

The current download URL is .

Figure 1-1. The Eclipse download page
Click a mirror site close to you choose the version of Eclipse youwant and - photo 1

Click a mirror site close to you, choose the version of Eclipse youwant, and then select your operating system (Eclipse works witheverything from Linux to AIX to Windows). The download startsautomatically.

You can download fourdifferent versions of Eclipse:


Release builds

These releases are for general use. In most cases, when youdownload Eclipse you'll use one of the releaseversions. These builds have been tested, and the chance of comingacross serious bugs is minimal. If Eclipse were for sale, this is theversion that would be selling.


Stable builds

Stable builds are much like beta versions. The Eclipse teamtreats this build as relatively stable, but you might run acrossproblems, as in any beta version. If you'reinterested, this is where you'll find forthcomingEclipse features.


Integration builds

These are a step below stable builds; their components have beenfairly well tested, but the way they operate together still might beproblematic. If things work out OK for an integration build, it mightbe made into a stable version.


Nightly builds

The most experimental and risky of all publically availableEclipse builds, these are created every night by the Eclipse team,and they come with virtually no guarantee. My experience with thesebuilds suggests that you can run into substantial problems, so bewarehere.

Usually, you'll pick the most recent release versionof Eclipse. Allow some time for the download; depending on youroperating system, most current release versions are more than 60 MB.

1.1.4 See Also

Chapter 1 of Eclipse (O'Reilly); the Eclipse site, http://www.eclipse.org; the technicalarticles at www.eclipse.org/articles/index.html; thenewsgroups at http://www.eclipse.org/newsgroups/index.html;the current and upcoming versions page at http://www.eclipse.org/eclipse/development/main.html.

Recipe 1.10 Running Your Code
1.10.1 Problem

How do you run Java codefrom Eclipse?

1.10.2 Solution

Select RunPicture 2 Run As. In the list that appears, select one ofthe following items: Java Applet, Java Application, JUnit Test, orRun-time Workbench.

1.10.3 Discussion

To run the code developed over the previous few recipes, selectRunPicture 3 Run AsPicture 4 Java Application (Eclipse will promptyou to save the file if you haven't already doneso). shows the results, with the outputof our code, Stay cool ., appearing in the Consoleview at the bottom.

Picture 5

Before running a Java program for the first time,it's a good idea to check if Eclipse is using theJRE or JDK you want it to use. By default, Eclipse locates aninstalled JRE or JDK, but it might not be the one you want to use(for example, Eclipse might have located the JRE installed for abrowser you're using). To check which JRE or JDKEclipse is using, select WindowPicture 6 Preferences to open theworkbench preferences. Select JavaPicture 7 Installed JREs in thetree pane on the left to display the Installed Java RuntimeEnvironments preference page. The JRE or JDK Eclipse is using ischecked; you can check other JREs or JDKs to make Eclipse use theminstead. We'll discuss adding other JREs and JDKs inthe next chapter.

Figure 1-13. Running Java code
And thats ityouvedeveloped and run your first Java example Recipe 111 - photo 8

And that's ityou'vedeveloped and run your first Java example.

Recipe 1.11 Running Code Snippets
1.11.1 Problem

You want to test just asection of code, without having to get awhole program to run.

1.11.2 Solution

There's another convenient way to runJava code inEclipse: you can use a scrapbook page. Scrapbookpages enable you to execute code, even partial programs, on the fly.Using scrapbook pages isn't an essential skill inEclipse, but it's a useful thing to know.

1.11.3 Discussion

After you've created a scrapbook page, you can copyand paste code to that page and run it. Create a scrapbook page byselecting FilePicture 9 NewScrapbook Page Enter a namefor the page such as ScrapPage in the File - photo 10 Scrapbook Page. Enter a namefor the page, such as ScrapPage , in the File box,and click Finish. The new scrapbook page is stored in the PackageExplorer as ScrapPage.jpage, as shown in .

Figure 1-14. Using a scrapbook page
Enter the code you want to run in this new page For instance to runthe - photo 11

Enter the code you want to run in this new page. For instance, to runthe example code in the FirstApp project we justran, enter the following code in the scrapbook page; note that toreach the main method of our example, you have toqualify its name with the name of the package it'sin:

String[] args = {};org.cookbook.ch01.FirstApp.main(args);

You select the code you want to run in the scrapbook page byhighlighting it. In this case, select all the code in the scrapbookpage, right-click it, and click Execute, or select RunPicture 12Execute. (If you need imports for the code in the scrapbook page,right-click the scrapbook's code, and select SetImports in the context menu.)

Picture 13

Execute runs the code in a scrapbook page, but another option alsoexists. If you select Display instead, the net return value of thecode you've selected appears in the scrapbook. Thistechnique is useful if you don't want to stud yourcode with println statements.

Next page
Light

Font size:

Reset

Interval:

Bookmark:

Make

Similar books «Eclipse Cookbook»

Look at similar books to Eclipse Cookbook. We have selected literature similar in name and meaning in the hope of providing readers with more options to find new, interesting, not yet read works.


Reviews about «Eclipse Cookbook»

Discussion, reviews of the book Eclipse Cookbook and just readers' own opinions. Leave your comments, write what you think about the work, its meaning or the main characters. Specify what exactly you liked and what you didn't like, and why you think so.