Domanda

I have set up a new project and hooked it up with Heroku:

enter image description here

I'm able to make changes and upload them to my dyno at Heroku but when trying to add new classes in eclipse I get **Source folder is not a Java project **. Have I missed anything?

È stato utile?

Soluzione

Ok found it, needed to tell eclipse that this was a java project by adding:

<natures>
    <nature>
         <name></name>
     </nature>
     <nature>org.eclipse.jdt.core.javanature</nature>
 </natures>

So that the .project file look like this:

<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
    <name>morning-garden-3028</name>
    <comment></comment>
    <projects>
    </projects>
    <buildSpec>
    </buildSpec>
    <natures>
    <nature>
      <name></name>
    </nature>
    <nature>org.eclipse.jdt.core.javanature</nature>
  </natures>
</projectDescription>

Altri suggerimenti

Go to Project->Properties->Java Build Path->Source->Add Folder, and add your source folder

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top