Setting Up SpaceSmasher in BlueJ

Java Version Required: 1.8

Game Version: SpaceSmasher 4.0 CS1 Functional API

Authors: Kelvin Sung, Mike Panitz, and Rob Nash.

 

Description: Macintosh HD:Users:robnash:Desktop:Screen Shot 2014-09-06 at 7.36.13 PM.png

 

1.     Install BlueJ.  Our game works best with the BlueJ IDE, so you’ll need it to get started.

a.     If not, download BlueJ at here

2.     Install Java 1.8 or newer. 

a.     If you get an error message that states: “Unsupported major/minor version 52 and you have 51”, this means you need a newer version of java.

3.     Download “SpaceSmasherInBlueJ.zip” from this website, which is a compressed “zip” archive.

a.     You’ll need to extract or unzip the compressed zip folder before you can begin to work on its contents.

                                  i.     In Windows, you can right click and choose “extract” or “unzip”; feel free to watch a “YouTube video” for more details.

                                ii.     On the Mac/Unix, you can double-click the compressed folder and the expanded contents will appear in the same directory

4.     After unzipping, delete the original zip file “SpaceSmasherInBlueJ.zip”, as you’ll be working with the files you just extracted.

1.     Never work from within a zip file.

5.     Click on the “setupForMac” or “setupForPC.bat” to get started on a Mac/Unix system or a PC system, respectively.  These files are in the new “SpaceSmasherInBlueJ” directory you just unzipped.

a.     This may ask for your permission before copying the needed SpaceSmasher library files into BlueJ.

 

Troubleshooting

Error

Meaning

Solution

This browser doesn’t accept cookies, blocking your file download.

Catalyst requires a UWNetID and a browser that is configured to allow cookies.

Use a different browser – Chrome works great.

“Package SpaceSmasher does not exist”

You’re SpaceSmasher library isn’t correctly loaded.

Follow the directions above and make sure you run “setupForMac” or “setupForPC.bat” before opening BlueJ.

Error on “import SpaceSmasher.Ball

BlueJ cannot find the Ball class located in the library because your library isn’t correctly loaded.

Follow the directions above and make sure you run “setupForMac” or “setupForPC.bat” before opening BlueJ.

“Incompatible types:  MouseClicksEnum cannot be converted to KeysEnum

Java is trying to convert one enumerated type to another and failing.

Replace the import statement for MouseClicksEnum with KeysEnum , as in:  “import static SpaceSmasher_FunctionalAPI.KeysEnum.*”

Can’t declare a local variable of type ‘Ball’

Java cannot find the Ball class, which is part of the SpaceSmasher library.

Add an import statement to the top of your TODO:

import SpaceSmasher.Ball

Unsupported Major/Minor Version 51

 Java needs access to certain files only in the 1.8 JDK or newer.

Install Java 1.8 (JDK) or newer from www.java.sun.com

Your problem here.

Describe your problem to me in an email and if it is undocumented, you may win reaper points.

Email all problems to rynn@uw.edu