title: How do i get the absolute path of .java file from inside the file?
body: <p>I want to create a new file at the same package of the current class. <br></p>
  
  <pre><code>FileOutputStream fileOut = new FileOutputStream(YYY);
  ObjectOutputStream out = new ObjectOutputStream(fileOut);
  out.writeObject(this);
  </code></pre>
  
  <p>what are the correct YYY for that purpose? <br></p>
  
  <p>I tried this:</p>
  
  <pre><code>FileOutputStream fileOut = new FileOutputStream("myObject");
  ObjectOutputStream out = new ObjectOutputStream(fileOut);
  out.writeObject(this);
  </code></pre>
  
  <p>but the "myObject" file was created at: c:\program files\eclipse</p>
  
  <p>help please!
  thanks</p>
  
  <p>EDIT: maybe it is worth mentionnig that this is a SVN project. maybe it has something to do with that</p>