문제

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?

도움이 되었습니까?

해결책

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>

다른 팁

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top