Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (499)
Games in Android Showcase (118)
games submitted by our members
Games in WIP (567)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  setting the CLASSPATH  (Read 1317 times)
0 Members and 1 Guest are viewing this topic.
Offline allan_s

Senior Newbie




pwned


« Posted 2004-08-29 02:20:22 »

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.

Online kevglass

JGO Kernel


Medals: 171
Projects: 23
Exp: 18 years


Coder, Trainee Pixel Artist, Game Reviewer


« Reply #1 - Posted 2004-08-29 05:23:13 »

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 <classpath here> <java files here>

running:

java -Djava.library.path=<gage DLL location> -cp <classpath here> <classes here>

Kev

Offline allan_s

Senior Newbie




pwned


« Reply #2 - Posted 2004-08-29 13:35:14 »

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.

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Online kevglass

JGO Kernel


Medals: 171
Projects: 23
Exp: 18 years


Coder, Trainee Pixel Artist, Game Reviewer


« Reply #3 - Posted 2004-08-29 13:39:07 »

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

Offline allan_s

Senior Newbie




pwned


« Reply #4 - Posted 2004-08-29 14:12:23 »

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?

Online kevglass

JGO Kernel


Medals: 171
Projects: 23
Exp: 18 years


Coder, Trainee Pixel Artist, Game Reviewer


« Reply #5 - Posted 2004-08-29 14:23:02 »

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

Offline allan_s

Senior Newbie




pwned


« Reply #6 - Posted 2004-08-29 14:25:33 »

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!

Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

Pippogeek (39 views)
2014-09-24 16:13:29

Pippogeek (30 views)
2014-09-24 16:12:22

Pippogeek (19 views)
2014-09-24 16:12:06

Grunnt (45 views)
2014-09-23 14:38:19

radar3301 (27 views)
2014-09-21 23:33:17

BurntPizza (63 views)
2014-09-21 02:42:18

BurntPizza (33 views)
2014-09-21 01:30:30

moogie (41 views)
2014-09-21 00:26:15

UprightPath (50 views)
2014-09-20 20:14:06

BurntPizza (54 views)
2014-09-19 03:14:18
List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!