Advertisement
illpastethat

Mac Compiling Tutorial

Mar 23rd, 2011
306
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.33 KB | None | 0 0
  1. ={trees}' Guide on How to Compile a Script on Mac OS X=
  2.  
  3. ## What you'll need
  4.  
  5. - The Java Developer's Kit
  6. - The latest version of RSBot
  7.  
  8. ## Steps
  9.  
  10. 1. Find your desired script.
  11.  
  12. 2. Open TextEdit
  13. a. You can open this by going to your Applications folder and finding it
  14. b. You can alternatively hit Command (the Apple key) and Spacebar to open Spotlight and type TextEdit
  15.  
  16. 3. Paste the entire script into TextEdit.
  17.  
  18. 4. Click Format > Make Plain Text
  19. a. Alternatively, use the shortcut Shift - Command - T
  20.  
  21. 5. Go to File > Save As (Shift - Command - S)
  22.  
  23. 6. Save it as the scripts name (as told by the author).java
  24. a. If my script is supposed to be Conderoga's Chopper, and I am told to name the file CChop, I'll save as "CChop.java"
  25.  
  26. 7. Move your [name].java into the RSBot > Scripts > Sources folder. This can be found by going to ~/Users/[YourUsername]/RSBot/Scripts/Sources
  27.  
  28. 8. Open Terminal [NOTE: You must have installed the JDK prior to this step]
  29.  
  30. 9. Type into terminal "javac -cp" then a space.
  31.  
  32. 10. Drag your RSBot onto the Terminal window.
  33.  
  34. 11. Drag your [name].JAVA folder onto the Terminal window.
  35.  
  36. 12. Hit Enter in the Terminal window
  37.  
  38.  
  39. ##Congratulations! You've successfully compiled an RSBot script on your Mac!
  40.  
  41. Want a tutorial from the forums? see http://www.powerbot.org/vb/showthread.php?t=483732
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement