In this section, we show you how to compile a program with Eclipse, an integrated development environment that is freely available from http://eclipse.org. Eclipse is written in Java, but because it uses a nonstandard windowing library, it is not quiteas portable as Java itself. Never the less, versions exist for Linux, Mac OS X, Solaris,and Windows.
There are other popular IDEs, but currently, Eclipse is the most commonly used. Hereare the steps to get started:
New Project dialog in Eclipse
Configuring an Eclipse project
Editing a source file with Eclipse
Running a program in Eclipse
Locating Compilation Errors
Presumably, this program did not have typos or bugs. (It was only a few lines of code,after all.) Let us suppose, for the sake of argument, that your code occasionally containsa typo (perhaps even a syntax error). Try it out—ruin our file, for example, by changing the capitalization of String as follows:
public static void main(string args)
Now, run the compiler again. You will get an error message that complains about an unknown string type. Simply click on the error message. The cursor moves to the matching line in the edit window, where you can correct your error. This behavior allows you to fix your errors quickly.
Error messages in Eclipse
TIP: Often, an Eclipse error report is accompanied by a lightbulb icon. Click on the light bulbto get a list of suggested fixes.
Core Java Related Interview Questions
|J2EE Interview Questions||Core Java Interview Questions|
|JDBC Interview Questions||JSP Interview Questions|
|Android Interview Questions||JavaServer Faces (JSF) Interview Questions|
|Java collections framework Interview Questions||Java 8 Interview Questions|
|Java Collections Interview Questions||Java Exception Handling Interview Questions|
|Java Concurrency Interview Questions||Java Serialization Interview Questions|
|Java Programmer Interview Questions||Java Inheritance Interview Questions|
|Java IO Interview Questions||Object Oriented Programming in PHP Interview Questions|
Core Java Tutorial
An Introduction To Java
The Java Programming Environment
Fundamental Programming Structures In Java
Objects And Classes
Interfaces And Inner Classes
User Interface Components With Swing
Deploying Applications And Applets
Exceptions, Logging, Assertions, And Debugging
All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd
Wisdomjobs.com is one of the best job search sites in India.