Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Close Eclipse.
  2. Navigate to the checked-out folder (usually the name of the branch) and open the .project file in a text editor. Note that the file may be hidden on your system.
  3. Change
    Code Block
    
    <natures></natures>
    to
    Code Block
    
    <natures><nature>org.eclipse.jdt.core.javanature</nature></natures>
  4. Save and close the .project file
  5. Re-open Eclipse.

4. Set up the Eclipse build path

You'll want Eclipse to be able to find and build all your code so that you can use Autocomplete, edit-time code checking, and debugging. This requires some setup.

  1. In the Package Explorer, right-click on your project and choose Properties.
  2. Go to Java Build Path.
  3. On the Source tab, remove any existing entries, and click Add Folder.
  4. Select the agents, gameconfigs, gui, and src folders. Depending on your project, you might have additional folders that contain Java code; you should add those here.
  5. On the Libraries tab, click Add JARs
  6. Navigate to the lib/jars folder and choose all of the JAR files that it contains.
    Image Added