BlueJ - java IDE for beginners

    A couple of years ago, I began to study programming. I studied in a field not related to IT at all. Therefore, he taught everything himself. Articles on the hub, various tutorials and video tutorials. After a long googling, I firmly decided that I wanted to learn Java. The reason for this choice was commonplace. I found a great online course that I understood.
    As with most courses, the Eclipse IDE was used there. There were no fellow programmers who could help me. And I remember with horror how hard I had to. Reading the book and watching the lessons, I understood everything. But for some reason, it did not start in eclipse. Those things that seem so simple to me now, at that time were unbearable. Sometimes, while studying one part of something, I want to completely abstract from the other. At that moment, my task was to understand what a variable is, to learn how to write loops, to try the if-else construct. And I had to decide what kind of project I am creating. Run as a program or applet. Import libraries and add them to the classpath. And here there are often moments that are missed in the classroom. And if you make a small mistake, your application may not start at all.

    The conclusion is that it is not easy for a complete beginner to understand a full-fledged IDE such as Eclipse, NetBeans, or IDEA. I know many people who rejected the idea of ​​programming after the first attempts. Not due to the fact that they did not understand the concepts of development, but precisely because of the difficult settings and various configuration issues that they encountered at the very beginning.
    So recently, on the Oracle site, I saw an advertisement: Bluej - Java IDE for beginners. It became interesting, downloaded, tried ... And I agreed with the advertisement that with such an IDE it would certainly be easier for a beginner to learn the basics of the Java language. Consider this article a small introduction to this product.

    What it is?

    BlueJ is a free Java IDE that was created for elementary programming by specialists from the British University of Kent, Australian Monash University and Sun Microsystems. This product is not new at all; its development began in 1999. In 2009, it was made open source. There are three main versions of BlueJ: Windows, Mac OS X, Ubuntu. The BlueJ interface has been translated into many languages, including Russian.

    How to work with BlueJ?

    Let's create a small program, a la "Hello World" for a visual demonstration of the product.

    1. Download BlueJ from of. site . There are versions already with the JDK, which will also facilitate the work. You can install the JDK separately.
    Launch the IDE (I have version 3.1.1) and see such a picture.


    2. Click on Project-New Projectand add / the name of your project. I called Birds.


    3. Click the New Class button , a window pops up. Enter the class name (Zoo) in the text field, select the class type and click ok. We have a rectangle with the name of our class.


    4. Double-click on the rectangle - and the class is already open. In the finished class, the IDE immediately inserted an example code: comments, field, constructor, and method. We are replacing it as shown in the picture.


    5. Click Compile (The bottom should say: Class compiled - no syntax errors.). Click Close .

    6. Right-click on our class and select our main method: void showBirds () . A terminal window should appear with the result of our code.


    You can immediately run any static method. Or first we create the essence of our class (right-click new Main ()), and then right-click on any method. The word public can be skipped. If you use the main (String [] args) method, you need to pass {} the form of the parameter.

    What else?

    The project is shown as a UML diagram. You can add packages directly in the main window, set inheritance, or specify which class uses what. You can set the font size and various little things in the editor. And also set keyboard shortcuts. BlueJ even has its extensions.
    I did not find code completion, which is probably even good for specialists of the level that BlueJ is designed for. It will be possible to better remember the names of the methods and the syntax of the language. There is a pretty decent debugger.

    Personally, I really liked using BlueJ (it once hung under Ubuntu, but restarting quickly solved the problem without losing data). I think you can safely recommend this IDE to newbies who have decided to learn Java. For those who are already familiar with programming and just decided to learn a new language, this will not be the best choice. BlueJ can also be useful for experienced developers to quickly solve some narrow tasks. BlueJ is an innovative project, and even Microsoft once brazenly wanted to patent their developments.

    Also popular now: