Java RedSquare

RedSquare is an classic 2D action game. Click and hold the red square. Now, move it so that you neither touch the walls nor get hit by any of the blue blocks. If you make it to 31 seconds, you are doing brilliantly! Special thanks to my family for their support during the development of this game.

Key Features:
– 2D gameboard with special graphical effects
– Game player score is shared on internet
– Easy menu system
– Nice background music
– Several nice sound effects

Release Notes

Click here for the release notes.




  redsquare.jar (2.7 MiB, 1,040 hits)

Source Code

The source code can be found here.

Windows Installation

### Step 1. Download RedSquare
– Download RedSquare.jar from

### Step 2. Start playing.
– Start the game by clicking on the redsquare.jar file

### Step 3. If the game reports that your Java version is outdated. Download latest Java version (for example 1.8-111) from the Oracle website ( and install it. Then it will working fine!

Linux Installation

The game is only working with the official Oracle Java HotSpot release because this version contain the nessary JavaFX libraries.

### Step 1 – Check current Java version
java –version

If above command return something with OpenJDK the wrong version is installed.

### Step 2 – Download official JDK from oracle
Go to
and download the correct versions 32 or 64 bits

### Step 3 – Remove OpenJDK and install it
sudo bash
cd /usr/lib/jvm
rm -rf *
cp /home//Downloads/*.gz .
gunzip *.gz
tar xvf *.tar
rm *.tar
rm /etc/alternatives/java
ln -s /usr/lib/jvm/jdk1.8.0_111/bin/java /etc/alternatives/java

### Step 4 – Check new version
java -version
It must response with Java HotSpot …

### Step 5 – Install missing audio codecs
sudo apt-get install libav-tools

### Step 6 – Download RedSquare
– Download RedSquare.jar from

### Step 7 – Start playing.
– Start the game by clicking on the redsquare.jar

OpenHub Statistics


This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see