setting the CLASSPATH

I read Kev Glasses Invaders 102 and was interested in using the GAGE timer he mentioned. I downloaded it, but there is no documention on how to implement it. I know how to set classpaths, but what i’ve done hasn’t worked. If someone could give me the exact line i need to add to the environment variables, (I’m on XP so all i need to do is add the variable to the “Environment Variables” section of the System Control Panel, right?), I would really appreciate it. My GAGE timer files are located in :

C:\Program Files\Java\gagetimer\

Thanks in advance.

You’ll need both to set the classpath to compile and run, and to set the native library path (assuming you’re on windows) when running:

javac -cp

running:

java -Djava.library.path= -cp

Kev

Hmmm… that’s what i’d call really annoying. There isn’t just a one time thing that you have to do to compile? This would be especially annoying when trying to distribute something you make with a GAGE timer too.

Um, think I must of said that wrong.

There is only one thing you need to do to compile, thats set the classpath.

When you’re running you need to set the classpath AND make the native library, thats giving you the extra functionality, available to the VM.

Kev

I think I wasn’t being clear enough at the beginning of this post - sorry. I want to be able to compile this with JCreator, as all this cmd-line crap is really annoying. Does this change things?

Ah, JCreator. Anyone who uses it around? It’ll just be project/ide config menus.

Just to note, you don’t have to use the command line, JCreator will provide you dialogs somewhere to setup the classpath and the exectution parameters.

Myself, I’d recommend moving to Eclipse :wink:

Kev

I figured it out. Not nearly as annoying as I was making this out to be. Thanks for your kind treatment of my Newbieness though.

On a side note - I use JCreator because it is the IDE that my Comp Sci class uses. I’ll look into Eclipse, (just Google for it?). Thx very much!