0

Can I use Python code in Java on App Engine? What I mean is I am using Java to develop my App Engine cloud, but I need to include some Python code in it. How might I do that?

Why?

I need to Generate Dynamic Content using Jinja2. There is no equivalent in Java. So I was hoping to be able to just do it in Python and include it in my Java code.

3
  • did you try JSP or GSP? Commented May 3, 2016 at 13:59
  • No I have never used JSP but I will look into it. With Jinja2 I get a String back and I can do whatever I want with it, such as saving the String to my data store and then serve my html from my datastore (sort of like a deep memcache) can I do the same with JSP? Commented May 3, 2016 at 14:08
  • I didn't try, but I'm sure it's possible. For strings there're better alternatives, such as StringTemplate and Apache Velocity, and actually many others Commented May 3, 2016 at 14:14

1 Answer 1

1

No you can't run Python code if you are using Java, or vise versa, since App Engine is running in a sandbox and you are not allowed to run anything else other than Java in your case.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.