Tokyo-Jogging is a mashup project using wiimote and google street view.
You’ve already had this one, haven’t you? And you can also use your nunchuk and blance wii board.
You need a Blue stack to run Tokyo-Jogging.
On Mac OSX, You’ll have no problems. You can use a default Bluetooth stack.
But on Windows, you MUST obtain a separate Bluetooth stack. Theoretically, BlueSoleil(*) should work, but it will be better with WIDOMM for most people.
I developed and built Tokyo-Jogging on Mac OSX, so I don’t know much about how to build on Windows. If you succeeded to build it, let me know it, please.
You need JDK 1.5 or higher version to build and run Tokyo-Jogging.
On Mac OSX, you can use default JDK. On Windows, you need to install and add the Java executable to your Command Prompt path.
You can run Tokyo-Jogging without using Eclipse. But it’s very useful for building and running itand I recommend it. Eclipse is a very handy (and free!) IDE that has a special place in the hearts of many Java programmers.
And I wrote how to run Tokyo-Jogging without using Eclise below.
-
You can download source code files or archived file from github. Type this command and you’ll get source code files. git clone git@github.com:katsuma/tokyo-jogging.git
Or You can download archived file from here. github.com/katsuma/tokyo-jogging/downloads
-
Open Eclipse and select “New > Java Project” from the File menu. “Project name” is a free name, for example,“MyTokyoJogging”.
-
Click “Finish” button.
-
Copy the src and lib directory in unzipped directory and paste to your project(it may named “MyTokyoJogging”) at Package Explorer.
-
Right-click on your package root directory and select “Propertied”.
-
Select “Java Build Path”.
-
Click the Libraries tab. Add in all JAR files in “lib” directory by clicking on Add External JARs. And after that Eclipse will re-build your project automatically.
-
Open Terminal and change the unzipped location. (ex: cd /Users/YOUR_NAME/Desktop/Tokyo-Jogging/)
-
Enter this command. ./start-jogging.sh
-
Press the “SYNC” button on your back of Wiimote. If Tokyo-Jogging finds your Wiimote, the message will be displayed on Eclipse console.
-
Open your web browser and go to www.tokyo-jogging.com/start/.
-
Put your Wiimote to your pocket and clean up around you.
-
Have fun! :-)
-
On Eclipse, right-click on your package root directory and select “Run As > Java Application”.
-
Select “TokyoJogging - tv.katsuma.jog” and click “OK” button. And it will run the program.
-
Press the “SYNC” button on your back of Wiimote. If Tokyo-Jogging finds your Wiimote, the message will be displayed on Eclipse console.
-
Open your web browser and go to www.tokyo-jogging.com/start/.
-
Put your Wiimote to your pocket and clean up around you.
-
Have fun! :-)
If you use Snow Leopard, check your Java version. You need use JRE 32bit version. If you use Eclipse, set VM arguments -d32. It launches your JRE 32-bit version.
Got an exception, java.lang.IllegalArgumentException: PCM values restricted by JAR82 to minimum 4097¶ ↑
When you run the program and if you got an exception “java.lang.IllegalArgumentException: PCM values restricted by JAR82 to minimum 4097”, you need to set the JVM option. If you use Eclipse, set VM arguments -Dbluecove.jsr82.psm_minimum_off=true.