Professional Documents
Culture Documents
Contents
Why BlueJ
Configuration
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 programs 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.
Only the UTF-8 code page is allowed in source files, which simplifies the transfers
among different operational systems with different localizations.
Coloring of particular types in the class diagram is extended in the following way:
The references to local variables, instance variables and class (static) variables
in the object bench are distinguished by colors.
The variables of primitive data types are placed in the object bench as well.
The main extensions are connected with the interactive mode. Since now we can:
Define the test fixture and the test methods (till now it was the only possibility).
Define and/or delete the standard methods including the interface default methods.
Declare and/or delete the abstract methods in abstract classes and interfaces.
The BlueJ environment can be now directly integrated into NetBeans as its plugin.
Configuration
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 http://bluej.org/.
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!
3. Now find the folder where you have installed the BlueJ.
The following steps differ according the used operating system.
If you use Windows or Linux, open the subfolder lib in the found folder.
If you use an Apple, it will be a little bit more complicated (however I expect,
that you have become accustomed to it during communicating with the non-apple rest of the world).
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).
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.
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.
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.