I have set up a new project and hooked it up with Heroku:
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>
转到Project->Properties->Java Build Path->Source->Add Folder
,然后添加您的源文件夹
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.