Results 1 to 4 of 4

Thread: Eclipse for your Java applications

  1. #1
    Join Date
    May 2008
    Posts
    184

    Eclipse for your Java applications

    Eclipse is a Java development environment free, open-source and extensible. The Java part is a set of plugins that are the first use of this base. However, other Eclipse plugins make it able to serve any development tools, whatever the language (C ++...) and file formats supported. Caution, however, Eclipse does not include the JRE (Java Runtime Environment) or Java Development Kit, which is why you need a java virtual machine JRE installed prior to installation.

    Installing Eclipse

    Once you've made on the official site, after downloading the software you will get a zip archive you simply unpack in the location you want. You can create a shortcut of "eclipse.exe" on your desktop, which will be much more convenient for you.

    Launch Eclipse

    When you run the file "eclipse.exe" you get this:


    This is your working directory, clear the place where all your projects eclipse will be saved. You can leave default or change it by clicking "Browse" is up to you. Then click "OK."

  2. #2
    Join Date
    May 2008
    Posts
    184

    Re: Eclipse for your Java applications

    Creating a Java project

    How to create a Java project in Eclipse. To do this, first click on the File menu and select "New" and "Project" as follows:

    Click on File -> New -> Select Project

    Select "Java Project" and click "Next" to get this (Note that if you want to code a java applet you must place the "Java" below then select "Java Applet"):


    Enter a name for your project, whatever you want and click "Next" without changing the default options.

    If you do this it will have to click "Finish" and your Java project is created.

    Creating a Java application

    As a first step you should add a file that will focus the extension. Java to your newly created project. Your project is located in the "Package Explorer" and must include the default JRE booksellers. To add a file right-click your mouse on your project (or go through the File menu) and choose "New" and "File".

    Then enter the name of your file followed by the extension. Java and then click "Finish". You have to code your Java application.

  3. #3
    Join Date
    May 2008
    Posts
    184

    Re: Eclipse for your Java applications

    Compilation and execution

    First know that Eclipse compiles your program automatically when you save. To check whether the default option is enabled the menu click "Project" and check the option "Build Automatically" .

    If this is enabled then save your file after your application code. This is done typically by pressing "Ctrl + S" or via the menu "File" then "Save".

    Then run the program. To do this in the menu "Run" select "Run.

    simple double click on "Java Application" will automatically display your program not yet executed. You have nothing else to do if it is select it and click on "Run" to complete.

    If you have errors in your compilation you need to solve before. To do this you specific information about errors detected in the "Problems" that you can see.

    Finally note that you will not need to always go through the menu "Run ..." to run your program. Just click on this button, it will restart the last program run: The small arrow next to contain the last few programs running that you can also restart.

  4. #4
    Join Date
    May 2008
    Posts
    184

    Re: Eclipse for your Java applications

    some small features that are used most often. For example when you have several projects created in your Eclipse environment you will have to close projects that are no longer in which case all open projects will be compiled and you will lose. To close a project is simple, make a right click above pouis select "Close Project".

    If you want to delete a project click on "Delete"

    Here you can check "Also delete contents under ..." if you also want to delete the project files saved in your workspace (workspace). Otherwise you should select "Do not delete contents".


    Conclusion

    This is a very good IDE (Integrated Development Environment) to develop open source applications in many languages. In terms of functionality, I would say it has everything that you could imagine. Auto compilation, auto-generation of code, a debugger, a very effective help on the java functions.

Similar Threads

  1. getting error while connecting Eclipse with java
    By mbangali in forum Windows Software
    Replies: 3
    Last Post: 15-09-2011, 09:56 PM
  2. Eclipse: java.lang.UnsatisfiedLinkError
    By Gadin in forum Software Development
    Replies: 5
    Last Post: 29-07-2010, 04:47 AM
  3. Eclipse not compiling my Java file
    By Valliy in forum Software Development
    Replies: 4
    Last Post: 25-07-2010, 12:30 AM
  4. Java Card 2.1.1 Plugin for Eclipse
    By Marjorie in forum Software Development
    Replies: 5
    Last Post: 23-07-2010, 01:40 AM
  5. Install Eclipse for Java and Android
    By blueprats in forum Guides & Tutorials
    Replies: 4
    Last Post: 10-03-2010, 02:20 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,521,031.62454 seconds with 17 queries