How do relative file paths work in Eclipse?

前端 未结 6 1336
后悔当初
后悔当初 2020-11-29 01:10

So my 2009 new years resolution is to learn Java. I recently acquired \"Java for Dummies\" and have been following along with the demo code in the book by re-writing it usi

6条回答
  •  情歌与酒
    2020-11-29 01:52

    Paraphrasing from http://java.sun.com/javase/6/docs/api/java/io/File.html:

    The classes under java.io resolve relative pathnames against the current user directory, which is typically the directory in which the virtual machine was started.

    Eclipse sets the working directory to the top-level project folder.

提交回复
热议问题