# Importing assets when using Processing in another IDE

**URL:** <https://discourse.processing.org/t/importing-assets-when-using-processing-in-another-ide/6874>\
**Category:** Processing\
**Created:** [December 24, 2018, 1:02pm UTC](https://discourse.processing.org/t/importing-assets-when-using-processing-in-another-ide/6874 "2018-12-24T13:02:31Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![gsaga](https://avatars.discourse-cdn.com/v4/letter/g/7bcc69/32.png) [@gsaga](https://discourse.processing.org/u/gsaga)\
**Post date:** [December 24, 2018, 1:02pm UTC](https://discourse.processing.org/t/importing-assets-when-using-processing-in-another-ide/6874/1 "2018-12-24T13:02:31Z")

</div>

Hi everyone,

I wanted to know where do I need to place the data files ( like `ttf`, `png` etc) if I’m using processing with another IDE. I’ve setup gradle as the build system and am using intellij to code.

---

<div class="post-metadata">

**Author:** ![hamoid](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/hamoid/32/58_2.png) [@hamoid](https://discourse.processing.org/u/hamoid)\
**Post date:** [December 24, 2018, 1:31pm UTC](https://discourse.processing.org/t/importing-assets-when-using-processing-in-another-ide/6874/2 "2018-12-24T13:31:11Z")

</div>

Hi! I have them like this:

```auto
CurrentProject.iml
data/ *.jpg *.png *.ttf *.frag *.vert
src/com/hamoid/ *.java

```

---

<div class="post-metadata">

**Author:** ![Architector\_4](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/architector_4/32/813_2.png) [@Architector\_4](https://discourse.processing.org/u/Architector_4)\
**Post date:** [December 24, 2018, 4:40pm UTC](https://discourse.processing.org/t/importing-assets-when-using-processing-in-another-ide/6874/3 "2018-12-24T16:40:49Z")

</div>

I think the most simple way would be to first write a line in your code that prints the path, like this: `println(dataPath(""));`, observe the result, and use that.

---

<div class="post-metadata">

**Author:** ![monkstone](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/monkstone/32/64_2.png) [@monkstone](https://discourse.processing.org/u/monkstone)\
**Post date:** [December 24, 2018, 6:35pm UTC](https://discourse.processing.org/t/importing-assets-when-using-processing-in-another-ide/6874/4 "2018-12-24T18:35:30Z")

</div>

I think that @Architector_4 best idea (prefer absolute paths in java) except:-

```java
println(dataPath(""));

```

Expects a string input. I encountered problems with ruby-processing and JRubyArt, so developed a `data_path` wrapper to return absolute path (using ruby).

---

<div class="post-metadata">

**Author:** ![Architector\_4](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/architector_4/32/813_2.png) [@Architector\_4](https://discourse.processing.org/u/Architector_4)\
**Post date:** [December 24, 2018, 9:33pm UTC](https://discourse.processing.org/t/importing-assets-when-using-processing-in-another-ide/6874/5 "2018-12-24T21:33:22Z")

</div>

Oh, yes, right. I’ll correct my original comment.

Also, if that doesn’t prove too useful, you could also try  
`println(dataFile("").getAbsolutePath());`  
or  
`try{println(dataFile("").getCanonicalPath());}catch(IOException e){}`

You know, in case you want to have 3 different ways to do the same thing, each more complex than the last one. :v
