1

We are "extending" a product developed by a third party and working with them on that. There's a small problem though. They have some functions (written in java) that they use in their Android mobile app and we need to use these functions in our development too. The other side is not too sure on what is the best way to share the functions/code. Ultimately we need to use those functions in one of our python scripts. Any suggestions on how this should be done? Should we ask them for a java library; a .jar file or something?

I am not sure if I have explained the question clearly but we never had to do any such integration before and so this is new to us and hence the doubts. thanks

  • 2
    Create an service / API. Perhaps something like this. – whatever Jun 14 '18 at 15:40
  • 1
    But ya there is a definite advantage of using a web service. We no longer have to worry from where we call the service - be it php, c++, python etc – R.W Jun 14 '18 at 15:59
  • 2
    My friend, you misunderstand what this website is for, and that's OK - there is a learning curve to this website. I found a post that explains exactly why you've been downvoted: please read it here. Also, you said I should have mentioned... yes, you should have and you can edit your question and mention everything that you have to. And check out this framework is asking for an outside resource, which is one of the reasons why questions are being downvoted and closed. – whatever Jun 14 '18 at 17:33
  • 2
    Thanks Alex, yes I could have phrased that question in a better way ... probably add a bit of what I had tried already. I know of no native way of making calls or using the java stuff and hence the use of the word "framework" :) – R.W Jun 14 '18 at 17:38
  • 2
    I have to ask whether you are aware of Jython? Calling Java code from Python scripts in Jython is stupid simple. – JimmyJames Jun 14 '18 at 19:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.