liverare Posted October 25, 2017 Share Posted October 25, 2017 (edited) Here, you're going to learn how to set up your Eclipse for the following: Automatically compile and save your scripts to script folder folder each time you save your work. Share the same script files across many projects. Recompile everything in the event of script conflicts or corruptions. Let's start: Automatically compile and save your scripts to script folder folder each time you save your work 1. Open Eclipse and navigate to Window > Preferences. 2. Navigate to General > Workspace > Linked Resources 3. Click "New..." and create a new resource, then give the new path a name and set the location to OSBot script folder 4. Click "Ok" and the new resource will be listed 5. Navigate to Java > Compiler > Building, then under "Output Folder" untick the "Scrub output folders when cleaning projects" 6. Apply and close your preferences then make a new script project 7. Name the project and click "Next" 8. Where it says "Default output folder:" click browse 9. Very important: select the project! Then click the "Create New Folder..." button 10. Open the advanced options and select the variable you created earlier. 11. Select the new folder path and click "OK" Your OSBot folder will now be used to compile and save your scripts directly to. 12. Time to test. Click on the "Libraries" tab, then click the "Add External JARs..." button and add OSBot, then click "Finish". 13. Create a new script 14. Add a script manifest and some code 15. Launch OSBot and check to see if your script appears in the list Share the same script files across many projects 1. Create a new framework project 2. Right click your script project, go to "Properties", click on the "Projects" tab and add your framework to the list Recompile everything in the event of script conflicts or corruptions Note: you should only really need to do this if you've been messing with the files in OSBot/scripts without using Eclipse, or if you've got multiple Eclipse workspaces all outputting to the same folder, or you've deleted some Eclipse projects that are being used by other projects. 1. Go to "Project" and "Clean..." 2. Select all (or some) of the projects you want to totally recompile Edited October 25, 2017 by liverare 6 2 Quote Link to comment Share on other sites More sharing options...
TheWind Posted October 25, 2017 Share Posted October 25, 2017 Wow, fantastic. I never really dug into any of the helpful features eclipse offers. This is much more efficient than what I was doing before! Quote Link to comment Share on other sites More sharing options...
Muffins Posted October 25, 2017 Share Posted October 25, 2017 You forgot to add the part where you show how to install the Darcula theme so you don't get eye cancer Other than that, nice guide! Helpful for new users. 1 Quote Link to comment Share on other sites More sharing options...
Aqua Posted October 25, 2017 Share Posted October 25, 2017 Good guide ! Quote Link to comment Share on other sites More sharing options...
marialove138 Posted October 25, 2017 Share Posted October 25, 2017 thanks for this ! Quote Link to comment Share on other sites More sharing options...
Theminis Posted October 25, 2017 Share Posted October 25, 2017 Thanks A LOT for this, have a kiss on the forehead Quote Link to comment Share on other sites More sharing options...
PerryThePlatypus Posted October 25, 2017 Share Posted October 25, 2017 "Eclipse For Dummies" - I'll take it! Thank you for the information. Quote Link to comment Share on other sites More sharing options...