Upgrading from v1.0:
Make sure you have the master checked out by typing into a bash terminal
git co master
Pull down the latest updates, overwriting your version (
--rebasecauses the overwrite)
git pull --rebase origin master
Download the latest version of Processing and unpack it
Create a boids directory in your root (/) folder
sudo mkdir /boids
Copy the unpacked processing folder to the directory you just created
sudo cp -r ~/your_downloads/processing-1.5.1/ /boids/
You can delete the core.jar from your root, it's now in that new boids folder
sudo rm /core.jar
NOTE: If you are NOT using a 64-bit Linux distribution, you must copy your respective shared libraries over to where Eclipse expects to find them. In the following command, replace
windows64/*. Note the * in
cd /boids/processing-1.5.1/modes/java/libraries/opengl/library/ cp [YOUR OS]/* linux64/
[Depreciated, to be updated] How to get started:
The Boids simulation was written in Java using Eclipse and this repository is set up to make it easy for you to get up and running in Eclipse as well.
- Open a terminal window and navigate to your Eclipse workspace.
- Once there, clone the repository into your workspace with the command git clone email@example.com:toddbernhard/Boids.git This will copy all of the files over.
- Open Eclipse and go to "File"->"Import...," then "General"->"Existing Projects into Workspace"
- At the next screen, select the "Select root directory" and "Browse," and select the directory in your workspace named "Boids" that Git just downloaded for you.
- Make sure the checkbox next to the Boids project is checked and click "Finish."
- Eclipse show that there are errors in the project and that it can't locate the processing.core library (core.jar), because it expects to find it in the root (/) directory, so we must copy it over there.
- Copy core.jar from the project directory to your root directory.
- DONE! The errors should be gone, just run it as an Applet, and you're good to go!
I know keeping core.jar (it's Processing's core library) in the root directory is an ugly fix, but we need an absolute path that everyone can use. If you move core.jar, you'll change the .classpath file and we will end up in an edit war over that path. So, sorry, but it's quick and dirty and works. Let me know if you know of a more elegant solution!