0

Eclipse has a nice feature that builds your codes on the fly.

However, for some reason, I have had a source .java developed in Emacs under some directory, say, ˜/mycode. Now I want to use the auto builds functionality of Eclipse, but I do prefer to develop the .java file under its original ˜/mycode directory. So apparently, I CANNOT use "import" of Eclipse because that means the file will be henceforth developed under some Eclipse Workspace.

This is the reason why I have to use Eclipse's menu's "open a file" to open my file from ~/mycode.

Then the problem comes, no more auto-build for this .java file!! For example, if I write one line like "abcd;;;;;" I will not get this line underlined by the syntax checker of Eclipse.

In summary, I would like to continue developing a code under its original directory, and also benefit from the auto-build functionality of Eclipse. What can i do? Thanks.

zell
  • 8,807
  • 8
  • 50
  • 99
  • 2
    As I understand it, if you only open file, it's not part of a java project. And that's what gets built, not a single source file. You should probably be able to create an eclipse project in your existing directory. – dbrank0 Apr 17 '12 at 06:36
  • Thank you. I didnot know we could create an eclipse project in an existeing directory. – zell Apr 17 '12 at 08:47
  • I think the answer for this question can be found at [this site][1] [1]: http://stackoverflow.com/questions/2637735/what-is-src-directory-created-by-eclipse – zell Apr 20 '12 at 06:21

0 Answers0