# helloIPC in java

**URL:** <https://forum.legato.io/t/helloipc-in-java/3683>\
**Category:** Legato Application Framework\
**Created:** [September 20, 2018, 11:08am UTC](https://forum.legato.io/t/helloipc-in-java/3683 "2018-09-20T11:08:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![marerl](https://avatars.discourse-cdn.com/v4/letter/m/ecccb3/32.png) [@marerl](https://forum.legato.io/u/marerl)\
**Post date:** [September 20, 2018, 11:08am UTC](https://forum.legato.io/t/helloipc-in-java/3683/1 "2018-09-20T11:08:40Z")

</div>

Hello,

I have been trying to make a java API server and a client running as two different applications as described here: [https://docs.legato.io/17\_08/apiFiles.html](https://docs.legato.io/17_08/apiFiles.html)

Is this implemented and possible to do in Java? I have looked at the helloIPC example and attempted to do the same thing. I have one Server and one Client application. In the server project there is a file called API.api. In the server cdef I have:

`
provides: {
```
api: {

	API = API.api

}

```
`

`}
`

In the server adef i have

`
extern: {
```
    api = Server.ServerComponent.API

```
`

`}
`

An interface and an implementing class is correctly generated, however when trying to install the application on the target I get an error: **error: incompatible types: ServerComponent cannot be converted to API**

This occurs in the factory.java file on the line: **instanceAPI = new APIServer(component);**

I’ve tried various tricks to get it working but nothing so far. Any ideas on why this occurs and how it can be solved?

---

<div class="post-metadata">

**Author:** ![daav](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/daav/32/64_2.png) [@daav](https://forum.legato.io/u/daav)\
**Post date:** [October 3, 2018, 6:09am UTC](https://forum.legato.io/t/helloipc-in-java/3683/2 "2018-10-03T06:09:02Z")

</div>

Hi @marerl

please can you attach a small sample project, to help highlighting the problem?

Thanks
