Bluefish and BlueJ installation on Fedora 16
In this topic I’m not covering installation of any Linux distribution, however, you can find a very useful and easy to follow guides on HowtoForge.com website. The system I’m using is Linux Fedora 16 i686 (32 bit), but very similar instructions should apply for other Red Hat based Linux distributions, such as CentOS, Red Hat or Yellow Dog Linux.
Web Development
Installing Bluefish
It’s very easy to install Bluefish editor on Fedora. For me it was important to be able to manage HTML5 and CSS3, so you will be able to do it with this application and much more.
- Navigate to Applications > System Tools > Add/Remove Software
- In a search field type bluefish and press Find
- Select “GTK2 web development application for experienced users” (bluefish-2.0.3-4-fc16) package and press Apply. Required package will be downloaded and installed on system.
- You will find Bluefish application on a top menu Applications > Programming > Bluefish Editor
Programming
Installing Java SE Development Kit 7
In order to use BlueJ, we need to have JDK6 or JDK7 installed on our system. Fedora has it’s native Java package OpenJDK 6 installed, but as long as I now, it is not recommended to use it with BlueJ. But you might try and comment here later 😉 So, here are the installation steps:
- Download JDK 7 package here: http://download.oracle.com/otn-pub/java/jdk/7u1-b08/jdk-7u1-linux-i586.rpm. First you must accept the Oracle Binary Code License Agreement for Java SE to download this software. Because my system is Red Hat based and it uses 32 bit architecture, I have to choose first package on a list “Linux x86 RPM”. To check what Linux distribution and architecture are you running, simply open Terminal (Applications > System Tools > Terminal) and type command uname -a. You will get something like this “Linux localhost.localdomain 3.1.0-7.fc16.i686 #1 SMP Tue Nov 1 21:00:16 UTC 2011 i686 i686 i386 GNU/Linux”, where fc16 stands for Fedora 16 and i686 basically means that this distribution runs on x86 machine.
- After clicking this link you should get download dialogue asking what you want to do next. Choose “Open with: Software install (default)”and press OK. You also will be asked for a superuser password once download finishes and installation process will take a place. You should know it or al least the person who installed the system will.
- Executable JDK 7 files will be placed here /usr/java/jdkversion/bin/. I.e., my path is this: /usr/java/jdk1.7.0_01/bin/.
Installing BlueJ on Linux
Since BlueJ does not provide Linux installation instructions for us, we will use Unix ones:
- Download BlueJ .jar file (al other systems): http://www.bluej.org/download/download.html, in my case it was version 3.06. Save it wherever you want. By default it will go to /home/yourusername/Downloads directory.
- Open Terminal (Applications > System Tools > Terminal) and run installation using this command : /usr/java/jdkversion/bin/java -jar /path/to/bluejjarfile/bluej-version.jar. In my case it was /usr/java/jdk1.7.0_01/bin/java -jar /home/donatas/Downloads/bluej-306.jar
- You will see BlueJ Installer window. Check that paths are correct and press Install.
- To run BlueJ and to check if it works use these commands on your Terminal:
- To get to folder where BlueJ is installed: cd /home/yourusername/bluej. I. e. cd /home/donatas/bluej
- To run BlueJ execution script: sh ./bluej. If you don’t want to run applications this way, then you can check this tutorial how to add or remove menu items on Fedora.
This is it! It should be enough to study Web Development and Java programming at University of Brighton at first semester 😉
There is also a Database module and you can setup LAMP (Linux, Apache, MySQL and PHP) on your machine fairly easy. One of many articles how to achieve this can be found here: http://www.howtoforge.com/installing-apache2-with-php5-and-mysql-support-on-fedora-15-lamp
Enjoy your studies!
Comments
Share your opinion by posting or replying to others comments.
SanjeevG –
June 8, 2013 at 19:23 - 11 years ago
To have a nice icon in applications menu
# touch /usr/bin/bluej
# chmod 755 /usr/bin/bluej
You can write /usr/bin/bluej with your favourite writer I am using nano.
# nano -w /usr/bin/bluej
Assuming the installation directory is /opt/bluej following is the content of /usr/bin/bluej:
#!/bin/sh
export BLUEJ_HOME=”/opt/bluej”
$BLUEJ_HOME/bluej $*
We need to have a bluej.desktop file under /usr/share/applications directory. My /usr/share/applications/bluej.desktop file goes like
[Desktop Entry]
Encoding=UTF-8
Name=BlueJ
Comment=BlueJ Interective JAVA Editor
Exec=bluej
Icon=/opt/bluej/icons/bluej-icon-512-embossed.png
Terminal=false
Type=Application
Categories=GNOME;Application;Development;
StartupNotify=true
We are good to run BlueJ from either terminal or the avalable applications menu. For terminal / konsole simply enter:
$ bluej