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
Addicted to MacNN
Join Date: Sep 2000
Status: Offline
Reply With Quote
Sep 1, 2003, 02: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.
I always use protection when fscking my Mac... Do you?
     
Mac Elite
Join Date: Dec 2001
Location: Atlanta, GA, USA
Status: Offline
Reply With Quote
Sep 1, 2003, 06: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
     
Mac Elite
Join Date: Dec 2001
Location: Atlanta, GA, USA
Status: Offline
Reply With Quote
Sep 1, 2003, 10: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 08:23 AM. )
Mac Pro 2x 2.66 GHz Dual core, Apple TV 160GB, two Windows XP PCs
     
Addicted to MacNN
Join Date: Sep 2000
Status: Offline
Reply With Quote
Sep 9, 2003, 11:22 AM
 
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?
I always use protection when fscking my Mac... Do you?
     
Senior User
Join Date: Jan 2000
Status: Offline
Reply With Quote
Sep 9, 2003, 12: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.
     
Addicted to MacNN
Join Date: Sep 2000
Status: Offline
Reply With Quote
Sep 9, 2003, 04: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
I always use protection when fscking my Mac... Do you?
     
   
Thread Tools
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
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 02:21 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2