Jump to content

Setting Up Eclipse


liverare

Recommended Posts

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.

K7IeXwS.png

2. Navigate to General > Workspace > Linked Resources

gb20l2G.png

3. Click "New..." and create a new resource, then give the new path a name and set the location to OSBot script folder

kfTyjjs.png

4. Click "Ok" and the new resource will be listed

Pv9d3fZ.png

5. Navigate to Java > Compiler > Building, then under "Output Folder" untick the "Scrub output folders when cleaning projects"

9ZhUfKY.png

6. Apply and close your preferences then make a new script project

p78b1km.png

7. Name the project and click "Next"

yIbbTaT.png

8. Where it says "Default output folder:" click browse

Hvc0ma2.png

9. Very important: select the project! Then click the "Create New Folder..." button

WDXvwfK.png

10. Open the advanced options and select the variable you created earlier.

9jK5lMO.png

11. Select the new folder path and click "OK"

9akK437.png

Your OSBot folder will now be used to compile and save your scripts directly to.

W9ZB8dS.png

12. Time to test. Click on the "Libraries" tab, then click the "Add External JARs..." button and add OSBot, then click "Finish".

gCL9eeO.png

13. Create a new script

9ptgikI.png

14. Add a script manifest and some code

OmqXo80.png

15. Launch OSBot and check to see if your script appears in the list

9bu72Mi.png

 

 

Share the same script files across many projects

1. Create a new framework project

P0cWrGG.png

2. Right click your script project, go to "Properties", click on the "Projects" tab and add your framework to the list

BvGMxo6.png

 

 

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..."

R94wQBD.png

2. Select all (or some) of the projects you want to totally recompile

P6aa8RZ.png

Edited by liverare
  • Like 6
  • Heart 2
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...