Skip to main content

alphaWorks  >  Forums  >  CodeRally  >  developerWorks

Running under DrJava    Point your RSS reader here for a feed of the latest messages in this thread


     

 
 

My developerWorks
 Welcome, Guest
Sign in or register
Permlink Replies: 1 - Pages: 1 - Last Post: Jan 6, 2007 3:59 AM Last Post By: Threads: [ Previous | Next ]

Posts: 1
Registered: Dec 28, 2006 04:14:11 PM
Running under DrJava
Posted: Jan 02, 2007 10:21:19 PM
Click to report abuse...   Click to reply to this thread Reply
Greetings,
I would like to use CodeRally in an introductory high school Java course with DrJava. The docs talk about running CodeRally outside of Eclipse and refer to documentation that does not exist in the zip. Please help!

Thanks,
Asha_man

Posts: 1
Registered: Jan 06, 2007 03:17:19 AM
Re: Running under DrJava
Posted: Jan 06, 2007 03:59:09 AM   in response to: in response to: 's post
Click to report abuse...   Click to reply to this thread Reply
Hi,

I'm one of the developers of DrJava. I'm not at all familiar with CodeRally, but I just tried to take a look at it.

1) One thing you definitely need is the osgi.core.jar file from this website:
http://osgi.org/osgi_technology/download_specs2.asp?section=2

You'll have to enter your information, and then you'll get an email with a download address. This OSGi code is apparently some kind of library that Eclipse uses and DrJava doesn't, so you need to get it separately.

2) In the DrJava Preferences, you should add the osgi.core.jar and the com.ibm.games_3.1.0.jar to the "Extra Classpath" (Preferences, Resource Locations; here's a link to the corresponding section in DrJava's Quick Start Guide: http://drjava.org/quickstartdocs/preferences.html#RESOURCELOCATIONS ).

3) You should probably also add the com.ibm.games.coderally_3.1.0.jar to the "Extra Classpath".

Steps 1 and 2 allow you to do the following:

4) Now you can type the following in the "Interactions Pane":

> java com.ibm.jgfw.Launcher

You'll get an error message from IBM's gaming software:

IBM Gaming v3.1.0
Usage:
java -jar games.jar mode
where mode is one of:
-spectate path
-playlist path
>

Since I have no idea what this project is even supposed to do, how it should be started in Eclipse, and since I don't have the source code from IBM, I cannot help you further. I'm sorry.

If you manage to get the instructions about how to run CodeRally outside of Eclipse (e.g. on the command line) from IBM, then I'm sure I or someone else on the DrJava development team can help you. In that case, please contact us directly at javaplt@rice.edu. I just stumbled across this post by accident.

Good luck!

Yours,

Mathias Ricken

Point your RSS reader here for a feed of the latest messages in all forums