Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > running jaimbot on OS X

running jaimbot on OS X
Thread Tools
macvillage.net
Addicted to MacNN
Join Date: Sep 2000
Status: Offline
Reply With Quote
Sep 1, 2003, 03:10 PM
 
http://jaimbot.sourceforge.net/

Got this little toy compiled and configured. But it doesn't run as per:
http://jaimbot.sourceforge.net/start/run.html

I get the following
Code:
Exception in thread "main" java.lang.NoClassDefFoundError: com/levelonelabs/aimbot/AIMBot
Any ideas? Is it the fault of Mac OS X? Or jaimbot? Anyone know how to get it working?

It's java, so I thought it wouldn't need to be ported.
     
Arkham_c
Mac Elite
Join Date: Dec 2001
Location: Atlanta, GA, USA
Status: Offline
Reply With Quote
Sep 1, 2003, 07:44 PM
 
It's a java classpath issue. The jar that you run has to be in your classpath.
Mac Pro 2x 2.66 GHz Dual core, Apple TV 160GB, two Windows XP PCs
     
Arkham_c
Mac Elite
Join Date: Dec 2001
Location: Atlanta, GA, USA
Status: Offline
Reply With Quote
Sep 1, 2003, 11:49 PM
 
Ok, so I looked into it. It does not work because the example uses semicolons in the classpath -- which works fine on Windows. But on OSX or Linux or UNIX you use colons instead. This shell script works perfectly:

Code:
#!/bin/sh java -classpath "jaimbot-1.3.jar:lib/rdf-1.0.jar:lib/megahal-1.0.jar:conf" com.levelonelabs.aimbot.AIMBot
[edit: forgot to close my code block]
( Last edited by Arkham_c; Sep 2, 2003 at 09:23 AM. )
Mac Pro 2x 2.66 GHz Dual core, Apple TV 160GB, two Windows XP PCs
     
macvillage.net  (op)
Addicted to MacNN
Join Date: Sep 2000
Status: Offline
Reply With Quote
Sep 9, 2003, 12:22 PM
 
Originally posted by Arkham_c:
Ok, so I looked into it. It does not work because the example uses semicolons in the classpath -- which works fine on Windows. But on OSX or Linux or UNIX you use colons instead. This shell script works perfectly:

Code:
#!/bin/sh java -classpath "jaimbot-1.3.jar:lib/rdf-1.0.jar:lib/megahal-1.0.jar:conf" com.levelonelabs.aimbot.AIMBot
[edit: forgot to close my code block]
Cool, thanks.

For my knowledge...

Is this a Java issue. Or is this a shell issue? Is it Java that doesn't like the semicolons... or the OS shell?
     
fitter
Senior User
Join Date: Jan 2000
Status: Offline
Reply With Quote
Sep 9, 2003, 01:13 PM
 
Originally posted by macvillage.net:
Cool, thanks.

For my knowledge...

Is this a Java issue. Or is this a shell issue? Is it Java that doesn't like the semicolons... or the OS shell?
The shell. Notice what happens when you do:

% cd /etc; ls -la

The semi-colon is a delimiter between commands.
     
macvillage.net  (op)
Addicted to MacNN
Join Date: Sep 2000
Status: Offline
Reply With Quote
Sep 9, 2003, 05:28 PM
 
Originally posted by fitter:
The shell. Notice what happens when you do:

% cd /etc; ls -la

The semi-colon is a delimiter between commands.
makes sense.

thanks
     
   
 
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Top
Privacy Policy
All times are GMT -4. The time now is 05:15 AM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,