It is currently Sat Jan 20, 2018 7:11 am Advanced search

Dumb question about the command line

Code won't compile? Found a bug? Post here!

Dumb question about the command line

Postby GraharG » Tue Oct 26, 2010 8:05 pm

Hi

when im using the PlayGame.jar to run my file I seem to have to be in the same directory to do it. that is if i go to /bin where my bot is stored i can use "java MyBot" to run it succesfully.

but if i try to run it from a different folder and give the path it doesnt work.

even "java ../bin/MyBot" doesnt work(i.e. go up one and back down).
anyone know why?

(i want to run a different version of my bot against itself from a diferent folder and my computer doesnt like jars, so this would be very useful to know)

Thanks
GraharG
Cadet
 
Posts: 7
Joined: Tue Feb 09, 2010 8:02 pm

Re: Dumb question about the command line

Postby Roamboater » Tue Oct 26, 2010 8:11 pm

try something like
java -cp ../bin MyBot
Roamboater
Lieutenant
 
Posts: 13
Joined: Mon Oct 18, 2010 7:11 pm

Re: Dumb question about the command line

Postby Janzert » Tue Oct 26, 2010 8:21 pm

Locking as it's a duplicate post.
Janzert
Contest Organizer
 
Posts: 271
Joined: Sun Feb 07, 2010 1:59 am


Return to Technical Issues

Who is online

Users browsing this forum: No registered users and 1 guest