Thilo
Thilo

Reputation: 262794

Can I write parts of the Google App Engine code in Java, other parts in Python?

Google App Engine supports both Python and Java application development.

Can I have both in the same application?

Upvotes: 9

Views: 2176

Answers (3)

Devesh
Devesh

Reputation: 897

Just to have an updated answer for this question,

From this answer on GAE google groups, it looks like it is possible to have different modules in different languages.

Upvotes: 3

puzz
puzz

Reputation: 756

As far as I know, there are two ways:

  • Write another app in java, publish it as a web services and call it from python (but that's not what you are looking for)
  • Make a java application but write it in jython. Then your app will be written in python, it will run on JVM, and calls to java API are trivial.

Upvotes: 5

Daniel Vassallo
Daniel Vassallo

Reputation: 344511

Can I run Java and Python code in the same app?

Each version of the app must specify a runtime language and it is possible to have version x of your app running Java, while version y is running Python. It would also be possible to use Jython.

Source: Google App Engine for Java FAQ

Upvotes: 10

Related Questions