BlueJ and its Configuration

The last update:
2016-07-21 – 01:56


Why BlueJ

In my books for beginners I use the development environment BlueJ,
because I consider it as the best teaching tool for the serious entrance
into the world of the object oriented programming.

Until now it is the only one development environment which allows – even in the beginner
courses – to think up firstly the program’s architecture in a simple class diagram
whereas the coding of the designed program is left for the integrated code generator.
Thus we may take care about the syntax only after the students have learnt and acquired
the basic architectonical constructions.

It is the environment, which immediately automatically projects all changes of the code into
the class diagram and vice versa all changes in the class diagram into the generated code.
Moreover, it is so simple that even the absolute beginners are able to learn
how to use it in a moment.

The enhancements description

The BlueJ authors did not incorporate there all the functionalities,
which their environment is able to offer. Therefore I have prepared some modifications
with my students. These modifications better utilize the possibilities of
this development environment and meet the requirements of the methodology
Architecture First, according to which all my programming textbooks
are designed. Compared to the standard edition we added the following changes:


If you would like to use the above described enhancements,
go on in the following way:
  1. Firstly, install BlueJ for your operating system from the
    Mind you install the version 3.1.6! The extension does not work with other versions.
    During installation you should pay attention to install it into such folder in which the operating system
    would enable to make the required changes, i.e. to replace certain existing files and add the new ones.
    Do not forget to remember, where you have installed it!
  2. Download the configuration file
  3. Now find the folder where you have installed the BlueJ.
    The following steps differ according the used operating system.
      You can recognize that you have opened the proper folder according to the fact that
    the files bluej.defs, bluej.jar and bluejcore.jar
    are put there (among others).
  4. Copy the content of the configuration file into this folder.
    Several files will be replaced (among others the above mentioned ones)
    and certain files and folders will be added.
Since this time BlueJ will be configured in the way as the text of the my textbooks assumes
and the appearance of all windows should correspond to the pictures in the book.

The localization of the configured BlueJ is set to the fictitious language English_RP,
which is the original English localization with modified source code templates
and some additional texts used in the enhancement.

Install BlueJ as NetBeans plugin

If you want to install BlueJ as a NetBeans plugin, keep the following steps:
  1. Configure the BlueJ IDE in the way described above in the section Configuration
  2. Run the NetBeans IDE and enter the Tools → Plugins command.
    The Plugins dialog opens.
  3. Press the Add Plugins button on the Downloaded card.
    The Add Plugins file chooser dialog opens.
  4. Find the folder to which you have copied the configuration files. Mark the
    cz-vse-bj2nbv2.nbm file in it and press OK.
    The information about the marked plugin appears.
  5. Mark the plugin item and press Install to start the installation.
    NetBeans firstly announce that another auxiliary plugin should be installed.
  6. Confirm the system requests now as well as during the following installation.
    At the end NetBeans explain that plugin will be working only after the restart
    and ask, if you want to restart immediately or later on. If you postpone the restart,
    the plugin will be working after the next NetBeans activation.
  7. After installing the plugin and restarting the NetBeans enter the Tools → Options command.
    The Options dialog with BJ2NB icon on its toolbar appears.
  8. Click at this icon and enter the path to the BlueJ folder with configuration files
    into the BlueJ Installation FilePath input field.
    Then save this option by pressing OK and thus close the window.
Since this moment you can utilize all the BlueJ functionalities also in the NetBeans IDE.

Question and Problem Reports

This section is determined for answers to your most frequent questions.
If you meet any problem with the modification of the configuration
or if you have any question connected, please, send me an
e-mail with a subject starting BlueJ_Config_Question:.
If the question will deal with something more general,
the response will be published at this place.