← Back to team overview

rohc team mailing list archive

Re: [Question #249351]: calling ROHC library from java project in eclipse

 

Question #249351 on rohc changed:
https://answers.launchpad.net/rohc/+question/249351

    Status: Open => Answered

Didier Barvaux proposed the following answer:
Hello,

> I am able to get the packet content n eclipse (using java), how can i use the ROHC
> library to perform compression? i saw that i can use JNI (Java Native Interface) to
> call a c library for example.
>
> Is it possible with ROHC or hard ? do you have any suggestions?

It should be definitely possible to use the ROHC library in a Java
application with JNI. I didn't know JNI well enough however, so I cannot
comment about the difficulty level.

In practice, I recommend you to use the main dev branch as a starting
point. I recommend you also to work step by step. Start with the
rohc_version() function, it is very basic, so it is the best target to
test your JNI setup. Then continue with the compression API (compressor
creation/deletion, packet compression). Finally, add the same functions
for decompression API.

Having a Java binding for the ROHC library would be great, so don't
hesitate to ask me questions if needed :)

Regards,
Didier

-- 
You received this question notification because you are a member of ROHC
Team, which is an answer contact for rohc.