# Using Processing in Eclipse

**URL:** https://discourse.processing.org/t/using-processing-in-eclipse/3328
**Category:** Processing
**Created:** [September 6, 2018, 5:15pm UTC](https://discourse.processing.org/t/using-processing-in-eclipse/3328 "2018-09-06T17:15:49Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![gust](https://avatars.discourse-cdn.com/v4/letter/g/90db22/32.png) [@gust](https://discourse.processing.org/u/gust)
#### Post date: [September 6, 2018, 5:15pm UTC](https://discourse.processing.org/t/using-processing-in-eclipse/3328/1 "2018-09-06T17:15:49Z")

</div>

![19%20AM](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/c/cafec1f855033ce18676e3597d6f832d5859e81e.png)

I am trying to use processing in java in eclipse and importing it after adding the processing jar file to eclipse but getting this error on eclipse about expecting android

---

<div class="post-metadata">

### Author: ![Kevin](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kevin/32/2297_2.png) [@Kevin](https://discourse.processing.org/u/Kevin)
#### Post date: [September 6, 2018, 5:21pm UTC](https://discourse.processing.org/t/using-processing-in-eclipse/3328/2 "2018-09-06T17:21:12Z")

</div>

Couple things I notice:

- You have 3 files named `Main.java`. Hopefully they’re in different packages?
- The two files on the right are unsaved. Sometimes Eclipse errors go away when you save the file.
- Maybe try cleaning your project?

If none of those work, then please provide more information. Please show us what your classpath looks like, as well as your project structure.

Shameless self-promotion:

> **[Processing in Java](https://happycoding.io/tutorials/java/processing-in-java)**
>
> Learn how to use Processing as a Java library.

---

<div class="post-metadata">

### Author: ![gust](https://avatars.discourse-cdn.com/v4/letter/g/90db22/32.png) [@gust](https://discourse.processing.org/u/gust)
#### Post date: [September 7, 2018, 1:38pm UTC](https://discourse.processing.org/t/using-processing-in-eclipse/3328/3 "2018-09-07T13:38:20Z")

</div>

I tried cleaning but it didn’t help. I saved the other Main.javas but didn’t help either. The processing jar file i added is processing-core.jar. Eclipse seems to complain that when I extend PApplet  
`"The type android.app.Activity cannot be resolved. It is indirectly referenced from required .class files"` and tells me to configure build path so i click it and it takes me to here but idk what it wants me to change

 ![47%20AM](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/b/b7d76e4ec51477aaf12697402252975f4c992904.png) I feel its gettig confused by thinking processing is some other android library for some reason

---

<div class="post-metadata">

### Author: ![EnhancedLoop7](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/enhancedloop7/32/1040_2.png) [@EnhancedLoop7](https://discourse.processing.org/u/EnhancedLoop7)
#### Post date: [September 7, 2018, 4:39pm UTC](https://discourse.processing.org/t/using-processing-in-eclipse/3328/4 "2018-09-07T16:39:27Z")

</div>

Are you trying to do anything Android related in your code? Maybe you need more libraries, especially if you are going to use the Processing language to accomplish certain goals?

I looked online about your problem, and this is what I found:

[Setting a Class Path in Eclipse](https://stackoverflow.com/questions/31936254/how-to-set-the-class-path-in-eclipse-and-android-studio)

So hopefully this helps you out?

EnhancedLoop7

---

<div class="post-metadata">

### Author: ![gust](https://avatars.discourse-cdn.com/v4/letter/g/90db22/32.png) [@gust](https://discourse.processing.org/u/gust)
#### Post date: [September 7, 2018, 6:50pm UTC](https://discourse.processing.org/t/using-processing-in-eclipse/3328/5 "2018-09-07T18:50:35Z")

</div>

I am not trying to do anything android related, which is why its weird thats its giving a android related complaint, and as far as i know eclipse doesn’t have much android support either so idk how/why this error is coming about.

 ![15%20PM](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/4/471261e6812a857def6ca6a6f525f11bd048852b.png)

processing jar file seems to be loaded correctly i think

---

<div class="post-metadata">

### Author: ![gust](https://avatars.discourse-cdn.com/v4/letter/g/90db22/32.png) [@gust](https://discourse.processing.org/u/gust)
#### Post date: [September 7, 2018, 7:43pm UTC](https://discourse.processing.org/t/using-processing-in-eclipse/3328/6 "2018-09-07T19:43:46Z")

</div>

ok i resolved it turns out i had downloaded the processing android jar file which extended a android class

---

<div class="post-metadata">

### Author: ![EnhancedLoop7](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/enhancedloop7/32/1040_2.png) [@EnhancedLoop7](https://discourse.processing.org/u/EnhancedLoop7)
#### Post date: [September 7, 2018, 7:44pm UTC](https://discourse.processing.org/t/using-processing-in-eclipse/3328/7 "2018-09-07T19:44:18Z")

</div>

There you go 😃

Glad that got figured out!
