Is there a tutorial on Embedding processing code in JAVA in Eclipse?

It was very easy, just had to export it into application.
One problem still persist though, it cannot locate the associated files like images and tsv data files. Any idea?