BlueJ
BlueJ is a development environment that allows you to develop Java programs quickly and easily. This is a bug-fix release for users who still need to use Java 6. In the absence of any major issues, it will be the last version of BlueJ which will work with Java 6.

Its main features are that it is:
  • Simple
  • Designed for teaching
  • Interactive
  • Portable
  • Mature
  • Innovative

System requirements
  • Minimum SDK 1.6.0 Build 22 GA (2011-06-27)


BlueJ on an eComStation machine with Open JDK


Installing BlueJ
Download bluej-317.jar (10,2Mb). Also download the manual (version 2.0) bluej-ref-manual.pdf. Create a folder (directory) "bluej". Copy the file "bluej-317.jar" to the subdirectory. That's it.

The bluej-installer.cmd file
The file "bluej-317.jar" is een installer distribution file. I have made a bluej-installer.cmd file with the following contents;
@echo off
set path=[drive: java]\JAVA160\bin
set BEGINLIBPATH=[drive: java]\JAVA160\bin
set CLASSPATH=
[drive: bluej]
cd [drive: bluej]\bluej
java -Duser.home=[drive: bluej]\bluej -jar bluej-317.jar 2>bluej-bugs.txt
I use 2 separate folders (directories), one for Java and one for BlueJ with the files created by this program. The references used in the cmd file;

  • [drive: java] = drive with Java
  • [drive: bluej] = drive with BlueJ

should be replaced with real drive letters. Edit and save the file "bluej-installer.cmd" from the distribution. This file is copied to the "bluej" folder (directory). Furthermore, different paths?, adjust according to your needs.
As it is a one time use, run the command file from the command prompt in an eComStation session.

Parameters / options explained
  • The addition "2>bluej-bugs.txt" ensures that errors are saved in the file "bluej-bugs.txt". The 2 in "2>" is not a typo!
  • The specification "-Duser.home=[drive: bluej]\bluej" ensures that BlueJ will save all necessary files in own directory instead of saving them in the home directory.

The bluej.cmd file
With this file the program BlueJ is started. I have made a bluej.cmd file with the following contents;
@echo off
set path=[drive: java]\JAVA160\bin
set BEGINLIBPATH=[drive: java]\JAVA160\bin
set CLASSPATH=
set APPBASE=[drive: bluej]\bluej
set JAVAPATH=[drive: java]\JAVA160
[drive: bluej]
cd [drive: bluej]\bluej
java -Dawt.useSystemAAFontSettings=on -Duser.home=[drive: bluej]\bluej 
-cp [drive: bluej]\bluej\lib\bluej.jar;[drive: java]\JAVA160\lib\tools.jar bluej.Boot 2>bluej-bugs.txt
The line beginning with "java ...." is broken into two lines for the sole purpose of this page. The lines "java..." and "-cp ..." are one line. I use 2 separate folders (directories), one for Java and one for BlueJ with the files created by this program. The references used in the cmd file;

  • [drive: java] = drive with Java
  • [drive: bluej] = drive with BlueJ

should be replaced with real drive letters. Edit and save the file "bluej.cmd" from the distribution. This file is copied to the "bluej" folder (directory). Furthermore, different paths?, adjust according to your needs. Create a new program object. Specify the path and file name: "[drive: bluej]\bluej\bluej.cmd". In the tabpage Session check the boxes "OS/2 window", "Running as an icon" and "Close Window to end program". In the tabpage General you can enter the name "BlueJ". You find enclosed in the file a suitable OS/2 icon. In the picture you can see that the program works, I had compiled the classic "Hello" program, if you can call it a program.

Parameters / options explained
  • The addition "2>bluej-bugs.txt" ensures that errors are saved in the file "bluej-bugs.txt". The 2 in "2>" is not a typo!
  • The specification "-Dawt.useSystemAAFontSettings=on" ensures that BlueJ uses the fonts from OS/2-eCS.
  • The specification "-Duser.home=[drive: bluej]\bluej" ensures that BlueJ will save all necessary files in own directory instead of saving them in the home directory.

Download
In the file you can find the above command files (all driveletters are set to C:) and an two OS/2 BlueJ icons: bluej-ecs.zip.

revision June 4, 2017